Leak in Tomcat 7.0.11: a java.util.Timer seems to leave a timerThread in the JVM, and Tomcat says "...has failed to stop it. This is very likely to create a memory leak"

2011-07-29 Thread Brian Braun
Hi, I'm using Tomcat 7.0.11 and I'm experiencing a leak problem. This is what I find in the log: Jul 29, 2011 7:36:51 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/admin] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregiste

Re: Getting an absolute path into a servlet's context-param value w/o hardcoding in web.xml

2011-07-29 Thread chris derham
> > As part of the "configuration" of the servlet to be deployed into an > environment, it wants a directory path passed as a servlet context > parameter: > > (WEB-INF/web.xml) > > >3rd-party-app.home >/path/to/directory > > > > In our environments, "/path/to/directory" will b

Getting an absolute path into a servlet's context-param value w/o hardcoding in web.xml

2011-07-29 Thread Jason Pringle
Hi all, We have a 3rd party application that is deployed into our environment. As it is 3rd party we have no control over changing the servlet code itself. As part of the "configuration" of the servlet to be deployed into an environment, it wants a directory path passed as a servlet context pa

Re: Support for a jarsToInclude property?

2011-07-29 Thread Konstantin Kolinko
2011/7/30 Michael Youngstrom : > I'm working with Tomcat 7 using web xml fragements and Servlet annotations. >  When metadata-complete="false" startup time is bad.  It can be improved by > excluding jars using tomcat.util.scan.DefaultJarScanner.jarsToSkip.  This is > great except now everytime I ad

Support for a jarsToInclude property?

2011-07-29 Thread Michael Youngstrom
I'm working with Tomcat 7 using web xml fragements and Servlet annotations. When metadata-complete="false" startup time is bad. It can be improved by excluding jars using tomcat.util.scan.DefaultJarScanner.jarsToSkip. This is great except now everytime I add a jar I need to add it to this list t

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread André Warnier
Alejandro Henao González wrote: I'm not sure that the problem is this. And, many JSPs have this line. Well, that would certainly multiply the problem, wouldn't it ? Do you have any idea what these "system.gc()" were meant to achieve ? Anyway, nothing that find and grep and a good text editor

Re: Question: Tomcat SSL configuration issue

2011-07-29 Thread Sammaiah Kyatham
Hello Felix, Thanks for the response. I have received new certificated based on new CSR generated. While importing cert in to key, I'm getting the following error: java.lang.Exception: Failed to establish chain from reply Here is the keytool command that I used for this: keytool -import -alias

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Alejandro Henao González
I'm not sure that the problem is this. And, many JSPs have this line. may be origin of problem is the hashmap static, because the method HTMLEncoder.encode not is static and the construct of HTMLEncoder initialize the object. - Mensaje original - De: "André Warnier" Para: "Tomcat Users

Re: Missing files for Apache and Log4J

2011-07-29 Thread Mark Eggers
> From: A Df > Dear All: > > I have created a Java web application and I want to have logging to ensure > that > the appropriate messages are stored in log files instead of to standard > output. > I found a link at http://tomcat.apache.org/tomcat-6.0-doc/logging.html and > was > following

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread André Warnier
Alejandro Henao González wrote: ummm... The option -XX:-DisableExplicitGC not solves the problem, may be with the +DisableExplicitGC, i will try it. ummm.. A mystery for me is : since you have the source, why do you not just comment out the system.gc(); line, and see what your Tomcat is the

RE: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-07-29 Thread Sudeep Pradhan
Pid, I tried Tomcat 6.0.32.. no luck yet. Even ERROR event is not raised. Also, I am seeing something weird (may not be related to this problem, but think its worth mentioning). I am seeing stale response on a new connection from curl. I validated this by changing the Accept Header from applica

Re: Missing files for Apache [Tomcat] and Log4J

2011-07-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 7/29/2011 11:33 AM, A Df wrote: > I have created a Java web application and I want to have logging to > ensure that the appropriate messages are stored in log files instead > of to standard output. Note that log4j is not n

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Alejandro Henao González
ummm... The option -XX:-DisableExplicitGC not solves the problem, may be with the +DisableExplicitGC, i will try it. The method HTMLEncoder.encode is static and uses a HashMap static. this is the class. public class HTMLEncoder { private static Map mapChar2HTMLEntity; private final static c

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-07-29 Thread Rainer Jung
On 29.07.2011 16:34, Lataxes, Karl wrote: > I believe this may what you requested. The parameter information I extracted > from the request was contained in the request body, as well as the session ID > I mentioned previously. If we need to include additional coding in both our > servlet and c

Re: Fwd: [WARNING] Index corruption and crashes in Apache Lucene Core / Apache Solr with Java 7

2011-07-29 Thread André Warnier
Many thanks to Konstantin (and Uwe Schindler) for broadcasting this. It will probably save a lot of time to a lot of people to know this in advance. Konstantin Kolinko wrote: Forwarding from announce at apache org. I think it is better to be warned. Best regards, Konstantin Kolinko ... -

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-07-29 Thread André Warnier
Lataxes, Karl wrote: I believe this may what you requested. The parameter information I extracted from the request was contained in the request body, as well as the session ID I mentioned previously. If we need to include additional coding in both our servlet and client software, then it's bette

Missing files for Apache and Log4J

2011-07-29 Thread A Df
Dear All: I have created a Java web application and I want to have logging to ensure that the appropriate messages are stored in log files instead of to standard output. I found a link at http://tomcat.apache.org/tomcat-6.0-doc/logging.html and was following the instruction but I am unclear for

Fwd: [WARNING] Index corruption and crashes in Apache Lucene Core / Apache Solr with Java 7

2011-07-29 Thread Konstantin Kolinko
Forwarding from announce at apache org. I think it is better to be warned. Best regards, Konstantin Kolinko -- Forwarded message -- From: Uwe Schindler Date: 2011/7/29 Subject: [WARNING] Index corruption and crashes in Apache Lucene Core / Apache Solr with Java 7 Hello Apache Luc

RE: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-07-29 Thread Lataxes, Karl
I believe this may what you requested. The parameter information I extracted from the request was contained in the request body, as well as the session ID I mentioned previously. If we need to include additional coding in both our servlet and client software, then it's better we find out now.

Re: Upgrading from Tomcat 7.0.8 to 7.0.10 and higher causes Old Generation memory problems

2011-07-29 Thread Ian Marsh
Bugger thanks. I looked at this but, when I did, I simply compared the two web.xml files between Tomcat-7.0.8 and Tomcat-7.0.10 to see if a specific setting for development mode was used differently, but the two files were exactly the same, with no development mode setting mentioned. Which means t

Re: Upgrading from Tomcat 7.0.8 to 7.0.10 and higher causes Old Generation memory problems

2011-07-29 Thread Mark Thomas
On 29/07/2011 09:53, Ian Marsh wrote: > Ok thanks... so here's the trace of the 3 biggest > org.apache.jasper.servlet.JspServletWrapper objects. > > I'm just showing the path of the objects that retain the biggest sizes > at each nested level to save from overkill on detail. There are > references

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Rainer Jung
On 28.07.2011 21:20, Filip Hanik - Dev Lists wrote: > that's an academic exercise for you, in the meantime, add in this option > to your startup options > -XX:-DisableExplicitGC I think Filip wanted to suggest -XX:+DisableExplicitGC The plus or minus after the colon decides whether the switch is

Re: Upgrading from Tomcat 7.0.8 to 7.0.10 and higher causes Old Generation memory problems

2011-07-29 Thread Ian Marsh
Ok thanks... so here's the trace of the 3 biggest org.apache.jasper.servlet.JspServletWrapper objects. I'm just showing the path of the objects that retain the biggest sizes at each nested level to save from overkill on detail. There are references to parent objects at some levels which show a lar

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Pid
On 29/07/2011 08:41, André Warnier wrote: > Pid wrote: >> On 28/07/2011 20:07, Alejandro Henao González wrote: >>> I dont believe that have GC running all the time, but the GC is >>> called in the above line to HTMLEncoder.encode. as follows. >>> System.gc(); >>> resultado = htmlEncoder.encode(resu

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread André Warnier
Pid wrote: On 28/07/2011 20:07, Alejandro Henao González wrote: I dont believe that have GC running all the time, but the GC is called in the above line to HTMLEncoder.encode. as follows. System.gc(); resultado = htmlEncoder.encode(resultado); Is 'htmlEncoder' a static field, an instance f

Re: Tomocat 6.0.20 Comet END Event *NOT RAISED* when connection is terminated

2011-07-29 Thread Pid
On 28/07/2011 20:42, Sudeep Pradhan wrote: > Hi, > > I have a CometProcessor Servlet which is used for streaming system events to > a http client. I have SSL enabled on the server. I use *curl* as the http > client. I get streaming events on the console. But when I do a Ctrl-C on the > console

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-29 Thread Pid
On 28/07/2011 20:07, Alejandro Henao González wrote: > I dont believe that have GC running all the time, but the GC is called in the > above line to HTMLEncoder.encode. as follows. > > System.gc(); > > resultado = htmlEncoder.encode(resultado); Is 'htmlEncoder' a static field, an instance fie

Re: Trouble with List Application function of Tomcat Manager

2011-07-29 Thread Pid
On 28/07/2011 20:37, Beohm, Thomas wrote: > Hello! > > I'm running Tomcat 7.0.11 on Windows Server 2008 Enterprise, and recently > installed Windows Updates (to the tune of like 80 of them) on the server. > After doing so, when attempting to view the list of web apps running in > Tomcat, I get

Re: Question on mod_jk and tomcat

2011-07-29 Thread André Warnier
Hi. Some responses in the text. The responses are based on my experience, not on any thorough inspection of the code. Maybe first, a basic note : from the point of view of Apache httpd, mod_jk is an internal "content generator" or "response handler". Apache "runs" mod_jk as an internal modu