Session timeout problem in tomcat

2008-10-31 Thread Thangavel Sankaranarayanan
Hi All, I need the sessiontimeout for 5 hours. I already set in by webapps/myapp/web.xml file as session-config session-timeout300/session-timeout /session-config in tomcathome/conf/web.xml i can find the below config session-config session-timeout30/session-timeout /session-config Eventhough

Re: Session timeout problem in tomcat

2008-10-31 Thread Kenneth Westelinck
I have noticed that tomcat does not honor the session timeout of your webapp. It does, however, honor the timeout in tomcathome/conf/web.xml. I have seen this behaviour in Tomcat 6.0.16. I am not sure if newer versions honor the settings of the webapp's web.xml. On Fri, Oct 31, 2008 at 8:38 AM,

How to find tomcat's- window service parameters

2008-10-31 Thread Thangavel Sankaranarayanan
Hi All, I have a tomcat on a windows2000 server . It is run as a window service. I want to find the service parameters like.My main idea is that i want to increase the heap size of JVM.

Re: How to find tomcat's- window service parameters

2008-10-31 Thread Serge Fonville
Hi, All options that are passed to tomcat can be configured through catalina.bat Also, if you enable jmx you can monitor the details you specified. By executing tomcat[major]w.exe you get an application that interfaces with tomcat to show information (including a few things you asked) if all you

RE: Problem to install APR Tomcat Native Library

2008-10-31 Thread Torsten.Romer
Hi Mladen, What does ldd libtcnative-1.so says? libgcc_s.so.1 = (file not found) Thanks a lot! :-) Torsten -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: 31. oktober 2008 10:25 To: Tomcat Users List Subject: Re: Problem to install APR Tomcat Native

Jsp precompiling..

2008-10-31 Thread hergele
Hi all.. I have a jsp file for precompile all jsp's..(precompile.jsp) Like this : http://www.rgagnon.com/javadetails/java-0414.html So.. I have to send a request to this jsp before the tomcat has started. How can I do that? Is there any way to deny all requests before precompile.jsp has

Re: How to find tomcat's- window service parameters

2008-10-31 Thread Thangavel Sankaranarayanan
Hi, Thanks for the reply and i can find the following at the end of catalina.bat.. Main class- Bootstrap Classpath is in environmental varaial There is no env variable set for java_opts,catalina_opts... %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS%

Re: Problem to install APR Tomcat Native Library

2008-10-31 Thread Mladen Turk
[EMAIL PROTECTED] wrote: I am trying to install the APR Tomcat Native Library on a Solaris SPARC server. Since it has only OpenSSL installed and no build system available, I compiled libapr 1.3.3 and libtcnative 1.1.14 on another machine with the same OS. I then copied the lib folders of both

Re: 140.211.11.130

2008-10-31 Thread Pid
Philippe Couas wrote: Hi, My UNIX logs give me trace OU_PKTS_DROP DST=140.211.11.130 . It seems that is apache foundation ? Why ? Because you're viewing a page at Apache.org? Without more information it's not going to be very easy to provide much more of an insight. Perhaps you could

Re: relation between Tomcat and Apache Commons

2008-10-31 Thread Andrew Ralph Feller, afelle1
That is a good point. What is your preferred method of running Tomcat? JSVC? Startup / shutdown scripts? Front-end with Apache HTTP server? Standalone? A- On 10/30/08 3:49 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Andrew Ralph Feller, afelle1 [mailto:[EMAIL PROTECTED]

Re: relation between Tomcat and Apache Commons

2008-10-31 Thread Leon Rosenberg
On Fri, Oct 31, 2008 at 1:09 PM, Andrew Ralph Feller, afelle1 [EMAIL PROTECTED] wrote: That is a good point. What is your preferred method of running Tomcat? JSVC? Startup / shutdown scripts? Front-end with Apache HTTP server? Standalone? standalone with start/shutdown scripts as

RE: Problem to install APR Tomcat Native Library

2008-10-31 Thread Torsten.Romer
Now I finally got APR installed correctly :-) Thanks again for all the help! However I get the following warnings when starting up Tomcat: WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'minSpareThreads' to '25' did not find a matching property. Oct 31, 2008 1:04:09

Re: antioJarLocking not working

2008-10-31 Thread James Ravn
On Thu, Oct 30, 2008 at 10:52 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: James Ravn [mailto:[EMAIL PROTECTED] Subject: Re: antioJarLocking not working jruby-rack makes a call to the ServletContext's getRootPath() method No such animal; perhaps you mean getRealPath()? Yes, I

RE: How to find tomcat's- window service parameters

2008-10-31 Thread Caldarale, Charles R
From: Thangavel Sankaranarayanan [mailto:[EMAIL PROTECTED] Subject: Re: How to find tomcat's- window service parameters First off, always tell us what version of Tomcat you're using. Since you didn't bother to do that, we'll talk about Tomcat 6.0. Thanks for the reply and i can find the

RE: Jsp precompiling..

2008-10-31 Thread Caldarale, Charles R
From: hergele [mailto:[EMAIL PROTECTED] Subject: Jsp precompiling.. I have a jsp file for precompile all jsp's..(precompile.jsp) Like this : http://www.rgagnon.com/javadetails/java-0414.html So.. I have to send a request to this jsp before the tomcat has started. Why don't you pre-compile

RE: Session timeout problem in tomcat

2008-10-31 Thread Caldarale, Charles R
From: Thangavel Sankaranarayanan [mailto:[EMAIL PROTECTED] Subject: Session timeout problem in tomcat I need the sessiontimeout for 5 hours. I already set in by webapps/myapp/web.xml file as Did you really put your web.xml file in that location? If so, it will be ignored; the proper place

Re: Problem to install APR Tomcat Native Library

2008-10-31 Thread Juha Laiho
[EMAIL PROTECTED] wrote: However I get the following warnings when starting up Tomcat: WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'minSpareThreads' to '25' did not find a matching property. Oct 31, 2008 1:04:09 PM

Re: Problem to install APR Tomcat Native Library

2008-10-31 Thread Serge Fonville
In tomcat 6 you need to specify an executor to define minSpareThreads and maxSpareThreads (altough this isn't required, IIRC/AFAIK) http://tomcat.apache.org/tomcat-6.0-doc/config/http.html(search for executor) http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html Regards, Serge Fonville

Re: Sticky Session AND session duplication?

2008-10-31 Thread János Löbb
On Oct 30, 2008, at 6:58 PM, Greg Dick wrote: Hi, I know that for typical web applications one of these approaches is generally enough to achieve load balancing across nodes in a cluster, but we here with an ICEfaces application would find it useful to do both. Session duplication to

RE: Problem to install APR Tomcat Native Library

2008-10-31 Thread Caldarale, Charles R
From: Serge Fonville [mailto:[EMAIL PROTECTED] Subject: Re: Problem to install APR Tomcat Native Library In tomcat 6 you need to specify an executor to define minSpareThreads and maxSpareThreads (altough this isn't required, IIRC/AFAIK)

Re: relation between Tomcat and Apache Commons

2008-10-31 Thread Andrew Ralph Feller, afelle1
Petr, Are you executing JSVC as root or no? If you aren't, then I can understand why your non-root account cannot bind to 443. The way JSVC works is by starting up under the account that executed it and then spawning a child process that is owned by the account specified in the -user option.

Re: relation between Tomcat and Apache Commons

2008-10-31 Thread Petr Sumbera
I'm running jsvc as root. If you look in jsvc.c you will see some linux ifdefs. Particularly look for set_caps() function. Petr Andrew Ralph Feller, afelle1 wrote: Petr, Are you executing JSVC as root or no? If you aren't, then I can understand why your non-root account cannot bind to

RE: Version 6.0.18 of Tomcat -- Web.xml file and file/directory structure

2008-10-31 Thread John Byrne
It worked! Thank you all for your help! John Byrne Support Network for Battered Women 1257 Tasman Dr. Suite C Sunnyvale, CA 94089 (408) 541-6100 x 138 Fax: (408) 541- -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2008 5:27 PM To: Tomcat

Re: Problem to install APR Tomcat Native Library

2008-10-31 Thread Serge Fonville
Thanks, I didn't know that. I stand corrected Regards, Serge Fonville On Fri, Oct 31, 2008 at 6:06 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Serge Fonville [mailto:[EMAIL PROTECTED] Subject: Re: Problem to install APR Tomcat Native Library In tomcat 6 you need to

Re: Tomcat 6.0.18 clustering

2008-10-31 Thread Filip Hanik - Dev Lists
for session storage with JDBC, you don't use the Cluster element, you use the Manager element only to configure the PersistenceManager, the doc still marks this codebase as experimental Filip firefinger wrote: Hello, I would like to create a Tomcat 6.0.18. cluster with session replication

Re: Logging

2008-10-31 Thread Mohit Anchlia
Is log4j.xml or log4j.properties read dynamically? On Thu, Oct 30, 2008 at 5:30 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Logging But I quite didn't understand what tomcat-juli.jar is and how it will help with this issue.

RE: Logging

2008-10-31 Thread Martin Gainty
Mohit- yes log4j.xml and or log4j.properties are read by TC (when TC/catalina engine starts) you *can* put your config in web.xml and libs in /WEB-INF/lib to ensure log4j logs only the log4j config'ed webapp HTH, Martin __ Disclaimer and

Re: Logging

2008-10-31 Thread Mohit Anchlia
I meant to ask is it ready dynamically when catalina is already running. Also I didn't understand put your config in web.xml. I've put my config in META-INF/classes as suggested in tomcat doc. On Fri, Oct 31, 2008 at 3:19 PM, Martin Gainty [EMAIL PROTECTED] wrote: Mohit- yes log4j.xml and or

Re: Logging

2008-10-31 Thread Mohit Anchlia
typo in my earlier mail, it's read instead of ready On Fri, Oct 31, 2008 at 3:35 PM, Mohit Anchlia [EMAIL PROTECTED] wrote: I meant to ask is it ready dynamically when catalina is already running. Also I didn't understand put your config in web.xml. I've put my config in META-INF/classes as

RE: Logging

2008-10-31 Thread Caldarale, Charles R
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Logging I meant to ask is it ready dynamically when catalina is already running. I don't think the log4j config is reread after initialization, but you'd have to check the log4j doc to see if there's some trigger you can use. You

All threads (200) are currently busy

2008-10-31 Thread AD
I am trying to find out after doing some load testing why tomcat is getting hung up on some threads. Can anyone provide some info on how to track down where the blocking is happening here? I am unable to diagnose based on this dump.. http://pastie.org/305167 thanks Adam

RE: All threads (200) are currently busy

2008-10-31 Thread Caldarale, Charles R
From: AD [mailto:[EMAIL PROTECTED] Subject: All threads (200) are currently busy First, you need to provide some environmental information: Tomcat version, OS, JVM version, etc. I am trying to find out after doing some load testing why tomcat is getting hung up on some threads. Put the

Re: Logging

2008-10-31 Thread Mohit Anchlia
Thanks for answering my questions. How can I make it a watched resource? On Fri, Oct 31, 2008 at 4:07 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Logging I meant to ask is it ready dynamically when catalina is already running.

RE: Logging

2008-10-31 Thread Caldarale, Charles R
From: Mohit Anchlia [mailto:[EMAIL PROTECTED] Subject: Re: Logging Thanks for answering my questions. How can I make it a watched resource? By reading the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Nested%20Components Look at the global Context element in

Re: All threads (200) are currently busy

2008-10-31 Thread AD
Fair enough Tomcat 5.5, JVM 1.6, Redhat Enterprise 5, 8Gb Mem, 5Gb Heap. What is the best way to take a thread dump to see what processes are waiting? We have a few web apps deployed and it has proven tricky for me to narrow this down. We ran some load tests and encountered these issues.

RE: All threads (200) are currently busy

2008-10-31 Thread Caldarale, Charles R
From: AD [mailto:[EMAIL PROTECTED] Subject: Re: All threads (200) are currently busy Whats the best way to get the thread dump and find out what process is hung in the webapp ? Since you're on a 1.6 JVM, the jstack tool from the JDK is probably the easiest. (Use jps to find the pid first.)

RE: Blocked threads in tomcat

2008-10-31 Thread Caldarale, Charles R
From: emerson cargnin [mailto:[EMAIL PROTECTED] Subject: Blocked threads in tomcat Below is the JConsole result, you can see that there are a lot of blocked threads on there. Stack trace: java.lang.Object.wait(Native Method) org.apache.commons.httpclient.MultiThreadedHttpConnectionManag

RE: Problem to install APR Tomcat Native Library

2008-10-31 Thread Torsten.Romer
Hi Rainer, I got it sorted out with ldd as suggested here on the list but it is certainly good to know about truss - thank you! Torsten -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: 30. oktober 2008 23:16 To: Tomcat Users List Subject: Re: Problem to install

RE: Problem to install APR Tomcat Native Library

2008-10-31 Thread Martin Gainty
I d/l ed the APR for my OS and when compiled saw somewhere in excess of 100 errors.. in java once can determine version errors with Maven Im wondering if the same version checking capability exists for binaries? Glad to hear the solution worked for you Martin

Re: All threads (200) are currently busy

2008-10-31 Thread Litton, Tom - CEPM
If you do a kill -3 on the process it will dump the stack trace to the standard output stream. Sent from my iPhone On Oct 31, 2008, at 7:23 PM, AD [EMAIL PROTECTED] wrote: Fair enough Tomcat 5.5, JVM 1.6, Redhat Enterprise 5, 8Gb Mem, 5Gb Heap. What is the best way to take a thread dump

Re: All threads (200) are currently busy

2008-10-31 Thread AD
will it provide more info than what is in the kill -QUIT from above ? I am still struggling a bit to find out what process/library is blocking the thread in my app... Adam On Fri, Oct 31, 2008 at 9:43 PM, Litton, Tom - CEPM [EMAIL PROTECTED]wrote: If you do a kill -3 on the process it will

RE: All threads (200) are currently busy

2008-10-31 Thread Caldarale, Charles R
From: AD [mailto:[EMAIL PROTECTED] Subject: Re: All threads (200) are currently busy will it provide more info than what is in the kill -QUIT from above ? What above are you talking about? The jstack tool with the -l option provides the most information; kill -3 is very similar, but omits

JSP recompiles on every access - Tags in jar

2008-10-31 Thread Ron McNulty
I recently inherited some IBM Websphere Portal code that I wanted to run on the Apache Jetspeed portal (Which runs on Tomcat 5.5.23). To my consternation, performance was terrible, and it turned out all JSPs (and their embedded custom tags) were being recompiled on every page access. I have

Re: All threads (200) are currently busy

2008-10-31 Thread AD
the pastie link that I sent in my original post which was a kill -QUIT when the problem was happening. On Fri, Oct 31, 2008 at 10:49 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: AD [mailto:[EMAIL PROTECTED] Subject: Re: All threads (200) are currently busy will it provide

RE: All threads (200) are currently busy

2008-10-31 Thread Caldarale, Charles R
From: AD [mailto:[EMAIL PROTECTED] Subject: Re: All threads (200) are currently busy the pastie link that I sent in my original post which was a kill -QUIT when the problem was happening. Sorry, didn't realize that was a link to something useful. There are a few threads waiting for input on

RE: JSP recompiles on every access - Tags in jar

2008-10-31 Thread Caldarale, Charles R
From: Ron McNulty [mailto:[EMAIL PROTECTED] Subject: JSP recompiles on every access - Tags in jar To my consternation, performance was terrible, and it turned out all JSPs (and their embedded custom tags) were being recompiled on every page access. Check that the timestamps on the files

Re: JSP recompiles on every access - Tags in jar

2008-10-31 Thread Mark Thomas
Ron McNulty wrote: Hi Chuck File times are all OK - Tomcat is running on the same machine. I should have mentioned I have seen this on Windows 2000 and XP SP3. I have not tried it on a Unix variant. Maybe related to https://issues.apache.org/bugzilla/show_bug.cgi?id=46047 ? Try unpacking

Re: JSP recompiles on every access - Tags in jar

2008-10-31 Thread Ron McNulty
Hi Mark Thanks - that appears to be exactly the problem. I searched the bug database, but did not find that one. I will have a go at applying Cedric Mailleux's patch to our Tomcat 5.5.23 source and deploying the patch to Jetspeed. It will certainly be easier than getting permission to