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 y

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 yo

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

(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

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" %> "htt

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 rest

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

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 ${expre

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. Ta

RE: Tomcat and Eclipse working together - a mystery

2007-09-22 Thread Caldarale, Charles R
> From: Trond Valen [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat and Eclipse working together - a mystery > > And this catalina.base is defined somewhere in > Tomcat's installation directory? For an explanation of the environment variables used by Tomcat, read the RUNNING.txt file in Tomcat's

Re: Tomcat and Eclipse working together - a mystery

2007-09-22 Thread Trond Valen
The mystery is unraveling... And this catalina.base is defined somewhere in Tomcat's installation directory? Trond On 9/22/07, Markus Schönhaber <[EMAIL PROTECTED]> wrote: > > Trond Valen wrote: > > > Could anyone care to tell me how Tomcat obtains the projects from > Eclipse? > > When I create a

Re: Tomcat and Eclipse working together - a mystery

2007-09-22 Thread Markus Schönhaber
Trond Valen wrote: > 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 f

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 ec

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. PARAMETER_ENCODING UTF-8 /*This way you can read the param for input request */ private String encoding; public void init() th

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 PROTECT

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 a

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. --