tomcat can not connect to MySql

2007-09-22 Thread fdehghani
I ues Appache tomcat as my App Server in my project but when running its service, after sometime when run my project,tomcat say that can not connect to database(SystemException) then i should restart its service to work correctly. i'm not sure thet its tomcat's problem or MySql please help me. --

RE: Basic question - Ingterating Tomcat with Apache

2007-09-22 Thread albrecht andrzejewski
Quoting Peter Crowther [EMAIL PROTECTED]: What are you doing that doesn't just need a vanilla Tomcat? Peter... I plan to have a box, and I just think about pro and cons... I think tomcat stand alone is - easier to deploy. And that's all. I think apache as a front end is a more flexible and

Re: tomcat can not connect to MySql

2007-09-22 Thread Martin Gainty
This is for mysql lists but the easiest way to check for running mysql service is go to command line netstat -a | grep 3306 or whatever port you use to start mysql configured in either in %MYSQL_HOME%\my.ini or $MYSQL_HOME/my.cnf M-- - Original Message - From: fdehghani [EMAIL

Re: How to control encoding of response.sendRedirect? (Tomcat 5.5.17)

2007-09-22 Thread Martin Gainty
good point-http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index -011206.htmlsuggests a webapp solution to embed the encoding param in web.xml e.g.context-param param-namePARAMETER_ENCODING/param-name param-valueUTF-8/param-value /context-param/*This way you can read the param

Tomcat and Eclipse working together - a mystery

2007-09-22 Thread Trond Valen
Hi! Could anyone care to tell me how Tomcat obtains the projects from Eclipse? When I create a web project, and choose run as - run on server and choose a tomcat server everything works fine, both from eclipse's internal browser and my firefox. The strange thing is that I find no references to

Re: Tomcat and Eclipse working together - a mystery

2007-09-22 Thread Markus Schönhaber
Trond Valen schrieb: The mystery is unraveling... And this catalina.base is defined somewhere in Tomcat's installation directory? No[1]. It's a system property Eclipse sets when calling Tomcat and the value of which Tomcat uses as a base path, for example when looking for the config files.

Re: Tomcat and JSTL

2007-09-22 Thread David Smith
Just as a thought, did you declare version 2.4 in your web.xml? I think that's required to get stuff like the expression language to be recognized. --David John Langan wrote: I am having difficulty in getting Tomcat to understand JSTL tags and the JSP Expression Language. As a result

Re: Tomcat and Eclipse working together - a mystery

2007-09-22 Thread Trond Valen
Thanks a lot :) -Trond On 9/22/07, Markus Schönhaber [EMAIL PROTECTED] wrote: Trond Valen schrieb: The mystery is unraveling... And this catalina.base is defined somewhere in Tomcat's installation directory? No[1]. It's a system property Eclipse sets when calling Tomcat and the value

Re: tomcat can not connect to MySql

2007-09-22 Thread Hassan Schroeder
On 9/22/07, fdehghani [EMAIL PROTECTED] wrote: but when running its service, after sometime when run my project,tomcat say that can not connect to database(SystemException) then i should restart its service to work correctly. i'm not sure thet its tomcat's problem or MySql If a TC restart

UTF8

2007-09-22 Thread Amnon Lahav
hi , i'm using tomcat 5.5 and jdk5 allso using commons.fileupload , when uploading a XML that contains hebrew fonts i can't seem to get it in utf8 in the servlet tough JSP is configured to utf8 with : %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8 % !DOCTYPE

(Sort of O/T) Re: Tomcat and Eclipse working together - a mystery

2007-09-22 Thread Martin Gainty
download the tomcat plugin from sysdeo and config these attributes make SURE you get the plugin version plugin for exact version of eclipse from here http://eclipse-plugins.2y.net/eclipse/plugin_details.jsp?id=1 attributes of org.eclipse.tomcat plug-in: Preference key Usage Default

Re: 100% cpu usage by VM Thread in tomcat

2007-09-22 Thread Lindsay Patten
Thank you to the several people who made suggestions, either on the list or by direct email! I think I have solved the problem by simply using the -server option to java when starting tomcat. By default tomcat uses the default VM, which for Sun JDK1.5 is the client VM. By default the client

Re: tomcat can not connect to MySql

2007-09-22 Thread David Smith
Can you provide some specifics of your environment? Tomcat version OS Mysql version (both driver and server) Both tomcat and mysql on the same machine? If not, any firewalls that might be timing out a connection? How long does it run before it doesn't work? Can you post the full stack trace of

Re: 100% cpu usage by VM Thread in tomcat

2007-09-22 Thread Jerome Jar
Hi, Lindsay, Sorry for my ignorance, but seeing that you were trying to locate the thread using PID, I think perhaps it's wrong. I have the same experience identifying such a CPU utilization issue on a Debian box using a 2.6.x version kernel. I cannot recall whether on a 2.4.x kernal linux box