RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > Scenario 1: > log4j.jar is in Tomcat/lib directory > log4j.jar is NOT in WEB-INF/lib directories Have you added *anything* else to T

RE: Memory leak in Tomcat 5.5.16

2010-05-04 Thread KT2010
Hello Tom, I am facing a similar issue. Could you please send that piece of code that was causing you this error, just that snippet should be good. Thanks Tom Price-3 wrote: > > Hi all, > > No more help required - I traced back all the references to the Request > objects and it did turn out

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
This thread has grown too long. For anyone following this thread, here's the summary: Two web applications, each with a Virtual Host entry in server.xml file. Tomcat/webapps-abc Tomcat/webapps-xyz These two web applications have different log4j.properties files. These log4j property files log to

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread André Warnier
Joe Hansen wrote: Chuck, please note that when commons-logging.jar is present only in the WEB-INF/lib directory, I get the following error: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory So, either I get a) Invalid class loader hierarchy. You have more than one version of

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Chuck, please note that when commons-logging.jar is present only in the WEB-INF/lib directory, I get the following error: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory So, either I get a) Invalid class loader hierarchy. You have more than one version of 'org.apache.commons

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > When commons-logging.jar is present in Tomcat/lib and WEB-INF/lib > directories, I get the following error : As you should. As Chri

Re: error with jk_module

2010-05-04 Thread André Warnier
Dave Filchak wrote: ... this : httpd: Syntax error on line 439 of /usr/local/apache2/conf/httpd.conf: API module structure `jk_module' in file /usr/local/apache2/modules/mod_jk-1.2.28-httpd-2.0.X.so is garbled - perhaps this is not an Apache module DSO? ... and this : LoadModule jk_modul

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > Oh, I forgot to mention in my other message: you should put log4j.log > into your webapp's WEB-INF/lib directory Presu

[no subject]

2010-05-04 Thread Tomcat Users List
X-zuka-RWMailScanner-ID: AEE69538190.ABB3E X-zuka-rw-MailScanner-Information: Please contact the ISP for more information Received: from Magnolia.local (unknown [70.48.209.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Au

[no subject]

2010-05-04 Thread Tomcat Users List
X-zuka-RWMailScanner-ID: AEE69538190.ABB3E X-zuka-rw-MailScanner-Information: Please contact the ISP for more information Received: from Magnolia.local (unknown [70.48.209.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Au

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thanks for the reply, Charles! When commons-logging.jar is present in Tomcat/lib and WEB-INF/lib directories, I get the following error : Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. Here's the complete stack tr

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 5/4/2010 6:15 PM, Joe Hansen wrote: > There are common classes in Tomcat/lib/ but they don't attempt to do > any logging. Are you sure? > However, the abc Spring Web application does initialize a > Quartz object which runs once every hour an

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 5/4/2010 1:59 PM, Joe Hansen wrote: > 2. But the web application logging is working wierdly.The log entries > are written to c:\Tomcat\logs\xyz.log (i.e. the xyz web application's > log) instead of writing to c:\Tomcat\logs\abc.log. . > > He

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Chuck, There are common classes in Tomcat/lib/ but they don't attempt to do any logging. However, the abc Spring Web application does initialize a Quartz object which runs once every hour and does some logging. I don't know if that has any implications. Thanks, Joe Here's the stack trace from ca

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > Initially I placed log4j-1.2.15.jar in the c:\Tomcat\lib > directory only. This resulted in abc webapp logging in the > c:\Tomcat\lo

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Chuck, Initially I placed log4j-1.2.15.jar in the c:\Tomcat\lib directory only. This resulted in abc webapp logging in the c:\Tomcat\logs\xyz.log file. When I copied the log4j-1.2.15.jar to c:\Tomcat\webapps-abc\ROOT\WEB-INF\lib and c:\Tomcat\webapps-xyz\ROOT\WEB-INF\lib directories, it created e

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > However, logging is still an issue. One webapp's log4j seems to stomp > over other webapp's log files. What could I be doing wrong?

Re: Hibernate validator in webapp?

2010-05-04 Thread Pid
On 04/05/2010 21:27, Yucca Nel wrote: > Anyone can explain if I can use hibernate validator in tomcat 6 webapp? > Current use case tests are not failing using validator annotations but is it > because it will only work in EE container? Erm, yes? Without more information I can't advise, someone

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Pid
On 04/05/2010 18:59, Joe Hansen wrote: > Many Thanks for the link Chuck! Here's what I did. > > 1. Created a directory named c:\Tomcat\abc\ROOT. > 2. Moved the previous contents of c:\Tomcat\webapps\abc to > c:\Tomcat\abc\ROOT directory. > 3. Created c:\Tomcat\abc\ROOT\META-INF\context.xml. Here's

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 5/4/2010 4:08 PM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Log4j logging doesn't work when a web application is moved >> outside Tomcat/webapps directory >> >> You want th

RE: Hibernate validator in webapp?

2010-05-04 Thread Martin Gainty
post one code sample with one validation also post version number of annotated jars and hibernate you are using and where you put them contents of hibernate.cfg.xml which container are you using..ARE you SURE you are using Tomcat..if so which version of Tomcat? Martin Gainty

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thanks Andre and Chuck. Andre, I renamed Tomcat/abc/ to Tomcat/webapps-abc/ to keep the naming consistent. The directory structure that you've advocated is exactly the same as the one Chuck told me. And I have implemented that. However, logging is still an issue. One webapp's log4j seems to stomp

Hibernate validator in webapp?

2010-05-04 Thread Yucca Nel
Anyone can explain if I can use hibernate validator in tomcat 6 webapp? Current use case tests are not failing using validator annotations but is it because it will only work in EE container?

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > You want this: > > webapps/abc > webapps/abc/ROOT <-- this is your "abc" webapp > webapps/abc/ROOT/META-INF > webapps

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 5/4/2010 1:26 PM, Joe Hansen wrote: > I have written two web applications abc and xyz. I have mapped > abc.local and xyz.local to my machine's IP Address in my Windows HOST > file. So when I visit http://abc.local, I would want the abc web > a

Re: How to force session replication per request in a Tomcat 6 cluster - SOLVED

2010-05-04 Thread Martin Grotzke
On Tue, 2010-05-04 at 16:53 +1000, Kevin Jansz wrote: > PS thanks for the responses. Martin, the session manager project > sounds awesome but the use of memcached (c-based native code server if > I read correctly) would make it a non-starter for us. The future use > of ehcache sounds promising, but

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread André Warnier
Joe Hansen wrote: Many Thanks for the link Chuck! Here's what I did. 1. Created a directory named c:\Tomcat\abc\ROOT. 2. Moved the previous contents of c:\Tomcat\webapps\abc to c:\Tomcat\abc\ROOT directory. ... Let me throw in my grain of salt. I like things organised in a logical way, with a

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Many Thanks for the link Chuck! Here's what I did. 1. Created a directory named c:\Tomcat\abc\ROOT. 2. Moved the previous contents of c:\Tomcat\webapps\abc to c:\Tomcat\abc\ROOT directory. 3. Created c:\Tomcat\abc\ROOT\META-INF\context.xml. Here's that file. 4. Changed c:\Tomcat\conf\s

Tomcat Clustering problem: Help

2010-05-04 Thread Josef Pullicino
Dear users, I am trying to setup tomcat clustering/session replication between two tomcats of version 6.0.18. The following is the cluster snippet inserted into server.xml of both servers:

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: RE: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > Looks like I have some reading to do! Will post back after > I read some Tomcat documentation. Start here: http://tomcat.apache.org/

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thanks for the reply, Mark. You made me understand the mess I have created. I have written two web applications abc and xyz. I have mapped abc.local and xyz.local to my machine's IP Address in my Windows HOST file. So when I visit http://abc.local, I would want the abc web application to be access

RE: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Caldarale, Charles R
> From: Joe Hansen [mailto:joe.hansen...@gmail.com] > Subject: Re: Log4j logging doesn't work when a web application is moved > outside Tomcat/webapps directory > > > > elements. They must be distinct. > > Second problem: a

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Mark Thomas
On 04/05/2010 17:59, Joe Hansen wrote: > Mark, Here's the server.xml before moving abc out of the webapps directory: > >unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > >

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Mark, Here's the server.xml before moving abc out of the webapps directory: On Tue, May 4, 2010 at 10:53 AM, Mark T

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Mark Thomas
On 04/05/2010 17:43, Joe Hansen wrote: > Thank you for the super quick reply Mark! We are using Java Spring. > The reason for moving the web application out of the webapps directory > was that the Spring Context Loader was loading twice. First because > its in the webapps directory. Secondly, becau

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Thank you for the super quick reply Mark! We are using Java Spring. The reason for moving the web application out of the webapps directory was that the Spring Context Loader was loading twice. First because its in the webapps directory. Secondly, because it is being referred to by the entry in the

Re: JAXBContext leaks memory

2010-05-04 Thread Mark Shifman
Thanks. I'll try Jconsole. mas On 05/04/2010 12:28 PM, Pid wrote: > On 04/05/2010 14:10, Mark Shifman wrote: >> >> On 05/03/2010 02:53 PM, Pid wrote: >>> On 03/05/2010 18:30, Mark Shifman wrote: On 05/03/2010 12:48 PM, Pid wrote: > On 03/05/2010 17:15, Mark Shifman wrote: >> I ha

Re: Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Mark Thomas
On 04/05/2010 17:32, Joe Hansen wrote: > Hey all, > > We are using Tomcat 6 on a Windows XP box. We have a web application > named abc. It was initially in the c:\Tomcat\webapps directory. I then > moved the c:\Tomcat\webapps\abc directory to c:\Tomcat\abc. I then > changed the Tomcat/conf/server.

Log4j logging doesn't work when a web application is moved outside Tomcat/webapps directory

2010-05-04 Thread Joe Hansen
Hey all, We are using Tomcat 6 on a Windows XP box. We have a web application named abc. It was initially in the c:\Tomcat\webapps directory. I then moved the c:\Tomcat\webapps\abc directory to c:\Tomcat\abc. I then changed the Tomcat/conf/server.xml file to reflect this change...

Re: JAXBContext leaks memory

2010-05-04 Thread Pid
On 04/05/2010 14:10, Mark Shifman wrote: > > On 05/03/2010 02:53 PM, Pid wrote: >> On 03/05/2010 18:30, Mark Shifman wrote: >>> >>> On 05/03/2010 12:48 PM, Pid wrote: On 03/05/2010 17:15, Mark Shifman wrote: > I have a web app running under tomcat-6.0.26 with > JreMemoryLeakPreventio

Issue with clustering

2010-05-04 Thread Marc Wilmots
Hi List, Since a few weeks now, I started to notice in the catalina.out log file messages regarding the cluster's operatability. It reports that a member or members in my cluster have disappeared, and appeared (member still alive) again. That's reasonable...the strange thing is that they occur at

mod_proxy_ajp configuration

2010-05-04 Thread Roche, Christian (EXT-Other - MA/Rabat)
Hi, I have a problem with configuring mod_proxy_ajp to access Tomcat5 through Apache2. My setup: CentOS release 5.4 (Final) httpd-2.2.3-31.el5.centos.4 tomcat5-5.5.23-0jpp.7.el5_3.2 I have in /etc/httpd/conf.d/proxy_ajp.conf: ProxyPass ajp://localhost:8009/ ProxyPassReverse

RE: Tomcat 5.5 won't do TLS

2010-05-04 Thread Caldarale, Charles R
> From: Looijmans, Mike [mailto:mike.looijm...@oce.com] > Subject: Tomcat 5.5 won't do TLS > >maxThreads="150" minSpareThreads="2" maxSpareThreads="75" > enableLookups="false" disableUploadTimeout="true" > acceptCount="10" scheme="https" secure="true" > clientAuth="false" sslProtocol="TL

Re: Tomcat 5.5 won't do TLS

2010-05-04 Thread Konstantin Kolinko
2010/5/4 Looijmans, Mike : > May 4, 2010 3:13:52 PM org.apache.coyote.http11.Http11AprProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-443 The "Apr" in the above message means that you are using APR version of the connector. > > maxThreads="150" minSpareThreads="2"

Re: Tomcat 5.5 won't do TLS

2010-05-04 Thread Peter Crowther
On 4 May 2010 14:22, Looijmans, Mike wrote: > I'm trying to enable TLS (or SSL) in a Tomcat 5.5.29 server, on a > Windows XP machine. > > Whatever I do, I always end up with a server that just delivers plain > HTML on port 443, and it doesn't even try to use TLS. [...] >     >                   ma

Tomcat 5.5 won't do TLS

2010-05-04 Thread Looijmans, Mike
I'm trying to enable TLS (or SSL) in a Tomcat 5.5.29 server, on a Windows XP machine. Whatever I do, I always end up with a server that just delivers plain HTML on port 443, and it doesn't even try to use TLS. That is, I can connect to http://localhost:443/ and get the same as http://localhost/ a

Re: JAXBContext leaks memory

2010-05-04 Thread Mark Shifman
On 05/03/2010 02:53 PM, Pid wrote: > On 03/05/2010 18:30, Mark Shifman wrote: >> >> On 05/03/2010 12:48 PM, Pid wrote: >>> On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -

Re: Failed to deploy application

2010-05-04 Thread Luís de Sousa
Hello again, Today I was able to get an application deployed with auto-deploy, by simply copying the directory into webapps. I still can't deploy an application at another disk location using the GUI or the URL call, same error: FAIL - Failed to deploy application at context path /JSPTut2 Thank

Re: Problem with downloading file over servlet

2010-05-04 Thread Pid
On 04/05/2010 10:32, André Warnier wrote: > Petr Hracek wrote: >> If I understand right then sun.net.www.protocol.http.HttpURLConnection is >> not part of any class, right / is obsolete? >> >> Or is there any other class? >> >> Sorry for that stupid question but I do not understand. Code has been >

Re: Problem with downloading file over servlet

2010-05-04 Thread André Warnier
Petr Hracek wrote: If I understand right then sun.net.www.protocol.http.HttpURLConnection is not part of any class, right / is obsolete? Or is there any other class? Sorry for that stupid question but I do not understand. Code has been really adopted. Petr, I think what they are telling you

Re: Problem with downloading file over servlet

2010-05-04 Thread Petr Hracek
If I understand right then sun.net.www.protocol.http.HttpURLConnection is not part of any class, right / is obsolete? Or is there any other class? Sorry for that stupid question but I do not understand. Code has been really adopted. 2010/5/3 Caldarale, Charles R > > From: Petr Hracek [mailto:p

Re: minSpareThreads maxSpareThreads

2010-05-04 Thread Pid
On 04/05/2010 07:51, Mario Splivalo wrote: > Christopher Schultz wrote: >> Mario, >> ... > Yes, it actually makes sense now, to use executors for desired behavior. > It's just that I somehow missed the introduction of the executors. > I still don't understand the actual benefit of using executors