Re: high cpu load; memory use is fine.

2006-09-26 Thread atomi
try this atomi. http://mail-archives.apache.org/mod_mbox/tomcat-users/200604.mbox/[EMAIL PROTECTED] or this might help https://moskito.dev.java.net/ On 9/12/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: I would just make a thread dump and look which thread is hanging in a infinite loop and c

Re: connection pooling in Linux using Tomcat 5.0.x and MYSQL

2006-09-26 Thread prakash shanmugam
hai david, thank for sending those help files.now we are using tomcat 5.0.x. our database is mysql and the Driver is com.sql.jdbc.Driver. when i am calling the jsp pages in my project its working fine,if i am trying to communicate with database errorpage is thrown. ** i had trie

Diff behaviors for relative-path resource mapping in TC4 and TC5

2006-09-26 Thread Xiao Xiao
Hi,    Saying i have the following web-app structure:   WEB-INF/web.xml   html/logo.gif   html/welcome.html   logo.gif    in the web.xml, html/welcome.html is defined as one of the welcome-file, which includes an image defined as src="" My question is which logo will be shown when

RE: java heap size

2006-09-26 Thread Caldarale, Charles R
> From: John [mailto:[EMAIL PROTECTED] > Subject: RE: java heap size > > Your figures are indeed how it used to be pre-1.5 I've just dug through the 1.5 code and found that the use of 1/4 of the total physical memory is dependant on several other factors, such as the category of machine and whet

RE: java heap size

2006-09-26 Thread John
Your figures are indeed how it used to be pre-1.5 http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html#0.0.0.%20Total%2 0Heap%7Coutline John -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 12:51 PM To: Tomcat Users List Subje

Re: hi, where can I find the DispatchAction.class file?

2006-09-26 Thread Wendy Smoak
On 9/26/06, Peng Li <[EMAIL PROTECTED]> wrote: I found the DispatchAction.java in the struts cource package, but there is no class file. Anyone could hlep me? The Struts user list would be a better place to ask. You can find subscription information here: http://struts.apache.org/mail.html

RE: java heap size

2006-09-26 Thread Caldarale, Charles R
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Subject: RE: java heap size > > The default is 64m for 32-bit environments, 128m for 64-bit. Sorry, the 64-bit Sun JVM default is really 83m, not 128m. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MA

RE: java heap size

2006-09-26 Thread Caldarale, Charles R
> From: John [mailto:[EMAIL PROTECTED] > Subject: RE: java heap size > > By default Java 1.5 defines the maximum heap size to physical > system memory divided by 4. ??? Not sure where you dug that one up, but it's certainly not true for the Sun JVM. The default is 64m for 32-bit environments,

RE: java heap size

2006-09-26 Thread John
By default Java 1.5 defines the maximum heap size to physical system memory divided by 4. You can change this on the java command line by using: java -xmx512m Sets maximum heap size (the largest the heap can grow to - where objects reside), to 512 meg. John -Original Message- From: an

RE: How set a default context

2006-09-26 Thread Caldarale, Charles R
> From: Angelov, Rossen [mailto:[EMAIL PROTECTED] > Subject: RE: How set a default context > > What I wrote was extracted from the same doc, the URL you > pasted in your response. Yes, but you didn't continue to read the rest of the page, which states how to do it properly in 5.5. - Chuck T

RE: java heap size

2006-09-26 Thread Caldarale, Charles R
> From: antarix [mailto:[EMAIL PROTECTED] > Subject: java heap size > > I´ve searching for a solution (change parameters, etc), > but at the moment I can´t find a "how to" or something > like that give me first why or what produce this error > or a clear answer. Tried looking at the FAQ? http:

RE: How set a default context

2006-09-26 Thread Angelov, Rossen
What I wrote was extracted from the same doc, the URL you pasted in your response. "You may define as many Context elements as you wish. Each such Context MUST have a unique context path, which is defined by the path attribute. In addition, you MUST define a Context with a context path equal to

java heap size

2006-09-26 Thread antarix
Hi there!!! Suddenly I have this error log in apache tomcat and my system make denial of service... "java.lang.OutOfMemoryError: Java heap space" I´ve searching for a solution (change parameters, etc), but at the moment I can´t find a "how to" or something like that give me first why or wh

RE: How set a default context

2006-09-26 Thread Caldarale, Charles R
> From: Angelov, Rossen [mailto:[EMAIL PROTECTED] > Subject: RE: How set a default context > > - a Context that has an empty PATH attribute will become the > default web application for the virtual host. This definitely > works on Tomcat 5.5 Definitely not true. Read the doc: http://tomcat.apa

RE: How set a default context

2006-09-26 Thread Angelov, Rossen
I know two ways to define a default context in Tomcat: - a Context that has an empty PATH attribute will become the default web application for the virtual host. This definitely works on Tomcat 5.5 - DefaultContext element in the Host is the other way to define a default context, but this may work

Tomcat As A Service

2006-09-26 Thread Douglas Ferguson
I have a few questions about tomcat as an NT service. 1) I found this page, http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.html. It talks about how to set all the settings, but is there a way to view the settings? 2) When JVM is set to auto what does it use? JAVA_HOM

RE: How set a default context

2006-09-26 Thread Ivan Balashov
I think it should be configurable from somewhere. Moving directories or writing some custom apps for this IMHo is not quite right. -Ivan -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 11:54 AM To: Tomcat Users List Subject: Re: How s

hi, where can I find the DispatchAction.class file?

2006-09-26 Thread Peng Li
Hi I found the DispatchAction.java in the struts cource package, but there is no class file. Anyone could hlep me? Looking forward to heraing from you Cheers Lee

Tomcat vs Apache virtual host declarations

2006-09-26 Thread Gormley, Josh
Hello, I'm a little confused about how Apache and Tomcat handle virtual hosts. I have a server which hosts 3 subdomains, each of which is a Tomcat webapp. With my current setup, if I go to http://rtv.mydomain.com I can see my app running. But if I undeploy the a

Re: Changing default index.jsp

2006-09-26 Thread Hassan Schroeder
On 9/25/06, Roger Mori-Tuesta <[EMAIL PROTECTED]> wrote: I'd like to change the default index.jsp/index.html page with my /tomcat-5-15-home/webapps/obc/myindex.jsp. See the Servlet spec for HTH, -- Hassan Schroeder [EMAIL PROTECTED] ---

Re: New session PER REQUEST

2006-09-26 Thread Hassan Schroeder
On 9/25/06, Maurice Yarrow <[EMAIL PROTECTED]> wrote: So, (apropos of the issues I saw with my setup) were there multiple hosts, one or more of which required both http and https access ? This particular installation had no https requirements. If that's not a complete deal-breaker, I could pro

RE: Tomcat, MyFaces and JSP 2.1

2006-09-26 Thread Tracy Nelson
| From: Döring Markus [mailto:[EMAIL PROTECTED] | Subject: Tomcat, MyFaces and JSP 2.1 | | If not can I use only the JSP 2.1 | implementation of GlassFish without changing the other parts of the JEE | implementation? You mean just use GlassFish as the web container, and continue to use JBoss as

webapps directory permissions question

2006-09-26 Thread jason
I have apache-tomcat-5.5.17 installed on a solaris 10 box. When my users create their applications, they end up in /var/local/user/apache-tomcat-5.5.17/webapps with drwxr-r-x permissions on the directory under webapps. what I want, it for it to show up as drwxrwr-x (group writable). In the star

RE: Precompiled JSPs after Tomcat restart

2006-09-26 Thread Tracy Nelson
I'm not sure how long Tomcat will cache the JSP, I would assume that it's dependent on how you've got your site configured (how much heap space you have allocated), how many servlets/JSPs you have and what kind of usage patterns you see. I would guess that Tomcat will unload servlets if memory get

logging status code

2006-09-26 Thread Edward Quick
Hi, In Apache, you can specify directives <%s of >%s in the logformat to get the original status code, and the actual status code returned for an http request. I use this for my error page which returns back a code 200, but also gives me a log with the real return code. Now I am trying to se

Is there a way to change browser URL using response?

2006-09-26 Thread Dave
During a HTTP request-response cycle, is there a way to change Browser URL using response? Redirect can that. But it cause performance/network traffic issue. For JSF page navigation(non-redirect case), page has been changed but browser still shows the old URL. Sometimes it makes more sen

Re: Tomcat, MyFaces and JSP 2.1

2006-09-26 Thread Mark Thomas
Döring Markus wrote: > Is it possible to use MyFaces and JSP 2.1 together? No idea. Ask the MyFaces folks. Don't see why not though... > Is there any tutorial how to setup tomcat with JSP 2.1? Use Tomcat 6.x (still in development). First release expected around the time the final spec is release

Re: Dev Environment Setup can't find WEB-INF/lib

2006-09-26 Thread Barclay Curtis
Hi, Does anybody have any other ideas on what the problem could be? I've been trying to figure it out for days now. My brain is starting to short circuit!! Any suggestions appreciated. Thanks Barclay Barclay Curtis wrote: Thanks David, 1. Yup, tomcat has permission to read the folder and xal

Re: tomcat nstallation issue on AIX

2006-09-26 Thread Mark Thomas
[EMAIL PROTECTED] wrote: > sorry for missing information > jakarta-tomcat-4.1.31 is installed on AIX 5.3 Did you use a GNU compatible version of TAR as per the read me? Mark - To start a new topic, e-mail: users@tomcat.apache.o

Re: HTTP 304

2006-09-26 Thread Mark Thomas
Paul Wallace wrote: > If however the client and server have no knowledge of these assets, > would it not request a fresh copy from the server and return HTTP 200 > for example? 1. Check to see if the file is in your client's cache. 2. Tomcat does nothing with these tags. Your client may ignore the

Re: Is there a way to change browser URL using response?

2006-09-26 Thread David Smith
Not that I know of. The browser URL address is the one requested. Changing it requires the browser to fetch a new page. --David Dave wrote: During a HTTP request-response cycle, is there a way to change Browser URL using response? Redirect can that. But it cause performance/network traffic

Re: connection pooling in Linux using Tomcat 5.0.x and MYSQL

2006-09-26 Thread David Smith
This is well documented on the tomcat site. What you've included below works on tomcat 5.0, but not 5.5. See the online docs: Tomcat 5.5 -- http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html Tomcat 5.0 -- http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-example

Re: Dev Environment Setup can't find WEB-INF/lib

2006-09-26 Thread Barclay Curtis
In my server.xml as below. So I should be able to see the site on testsite.mydomain.co.uk:4001. It renders part of the page but has the NoClassDefFoundError: org/apache/xpath/XPathException in the error log. debug="0"> Thanks Barclay Mark Thomas wro

Re: Dev Environment Setup can't find WEB-INF/lib

2006-09-26 Thread Mark Thomas
Barclay Curtis wrote: > I have the latest version, Apache Tomcat 5.5.17, and have set it up to > use /home/myUser/myWebapps/ as the webapps dir. How did you do this? Mark - To start a new topic, e-mail: users@tomcat.apache.org T

Re: How set a default context

2006-09-26 Thread Mark Thomas
Ivan Balashov wrote: > But that means the context of application will change, as opposed to making > it default. I'm not sure if this change is harmful to the application, but > if it uses e.g. context name for some reason it might be failing. > > -Ivan If this is the case then you have a badly w

Tomcat, MyFaces and JSP 2.1

2006-09-26 Thread Döring Markus
Hello, I'm currently developing an web-application with JSP 2.0, MyFaces 1.1.4, Trinidad M1 All this is running on JBoss 4.0.3 SP1 and Tomcat 5.5 I have to include some functions included in JSP 2.1 and searched the web for it, but didn't find much information. Is it possible to use MyFaces and

RE: How set a default context

2006-09-26 Thread Ivan Balashov
But that means the context of application will change, as opposed to making it default. I'm not sure if this change is harmful to the application, but if it uses e.g. context name for some reason it might be failing. -Ivan -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROT

Re: Tomcat 5.5 Clustering Problem

2006-09-26 Thread Peter Rossbach
Strange! mcastClusterDomain is set a McastService constructor public McastService() { properties.setProperty("mcastClusterDomain", "catalina"); } Please don't use a real loadbalancer like apache with mod_jk instead the crazy redirect thing at http://www.onjava.com/pub/a/onj

Re: connection pooling in Linux using Tomcat 5.0.x and MYSQL

2006-09-26 Thread prakash shanmugam
hai Li, ur gussing is correct, i am using JNDI DS, here by i had pasted the code which is appended in the *server.xml. * *server.xml* maxWait 5000 maxActive 200

tomcat nstallation issue on AIX

2006-09-26 Thread Abhishek.X.Jha
Hi all, I have installed jakarta-tomcat-4.1.31 when i start the tomcat, it doesnt give any error, but when i try to access it from some browser in windows machine (eg: http://dvdb2.wil.fusa.com:8080) , its says page cannot be displayed. and when i type the shutdown.sh, i get the following error

RE: tomcat nstallation issue on AIX

2006-09-26 Thread Abhishek.X.Jha
sorry for missing information jakarta-tomcat-4.1.31 is installed on AIX 5.3 -Original Message- From: Jha, Abhishek X (Card Services) Sent: Tuesday, September 26, 2006 3:43 AM To: users@tomcat.apache.org Subject: tomcat nstallation issue on AIX Hi all, I have installed jakarta-tomcat-4.

Re: connection pooling in Linux using Tomcat 5.0.x and MYSQL

2006-09-26 Thread Li
depends on what pool you use ... If use JNDI DS, you have to create a resource section in your server.xml: ... if you use other data source like hibernate's ... see their manual good luck On 9/26/06, prakash shanmugam <[EMAIL PROTECTED]> wrote: hai all, can u do one help ... i