Re: How to get the tomcat internal log out?

2011-11-25 Thread Pid *
On 25 Nov 2011, at 03:15, 飞翔鸟 fxbird1...@163.com wrote: Hello : Why tomcat 7? Are there some features which can make classes updated without restart tomcat? Thanks . Please post your replies below the question. 5.5 is very old and will soon stop being supported. The latest release

Re: How to get the tomcat internal log out?

2011-11-25 Thread Kurt
Hello guy: Tc7 is good, but I've no choice cause our projects are designed to run on tc 5 or 6. The point is how to make the tomcat internal log out, whatever version it is. Nice day. Kurt 在 Fri, 25 Nov 2011 16:29:32 +0800,Pid * p...@pidster.com 写道: On 25 Nov 2011, at 03:15, 飞翔鸟

RE: How to get the tomcat internal log out?

2011-11-25 Thread Caldarale, Charles R
From: Kurt [mailto:fxbird1...@163.com] Subject: Re: How to get the tomcat internal log out? our projects are designed to run on tc 5 or 6. Then they should run on 7 just as well. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for

Mysterious request edirect with value exchange

2011-11-25 Thread Uwe . Hellmann
Hello together, I recently ran into an issue which probably has nothing to do with tomcat. But because I don't know how to get rid of it or what the cause for this issue is I want to make sure that I have taken all chances. Just a short architecture overview. We have a Loadbalancer which

Re: How to get the tomcat internal log out?

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/25/11 3:37 AM, Caldarale, Charles R wrote: From: Kurt [mailto:fxbird1...@163.com] Subject: Re: How to get the tomcat internal log out? our projects are designed to run on tc 5 or 6. Then they should run on 7 just as well. +1 Any

Re: Mysterious request edirect with value exchange

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Uwe, On 11/25/11 7:43 AM, uwe.hellm...@t-systems.com wrote: We have a Loadbalancer which roundrobin addresses 2 Apache 2.2. which passes their requests via mod_proxy balancer to 2 tomcat 5.5.26 servers which are configured identical and have also

Re: Babysitting ThreadLocals

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 11/23/11 1:21 PM, Konstantin Kolinko wrote: 2011/11/23 Christopher Schultz ch...@christopherschultz.net: On 11/23/11 11:29 AM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject:

Re: Babysitting ThreadLocals

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chema, On 11/23/11 1:10 PM, Chema wrote: The string of the date format is constant. However the SimpleDateFormat class is not threadsafe, so you will hit intermittant issues when sharing across threads Do you mean that read operations

Re: Babysitting ThreadLocals

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terrence, On 11/23/11 8:13 PM, Terence M. Bandoian wrote: Adding Thread.yield() eliminated the error message from the log. No, this is a legitimate leak. In order to fix it, I'd have to clean all the threads in the thread pool (because it's a

Re: Babysitting ThreadLocals

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sylvain, On 11/24/11 4:02 PM, Sylvain Laurent wrote: I don't think this ThreadLocal creates a real leak of classloader. It would if dayFormat was static. IIRC, ThreadLocal essentially puts a key/value pair in a Map in the Thread. I dunno what

Re: Tomcat user roles

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 11/24/11 11:42 PM, Bill Wang wrote: Thanks, with your help, I find out this link: http://onjava.com/onjava/2001/07/24/tomcat.html, seems you need me setup MemoryRealm, then setup security constraint in webapps/manager/WEB-INF/web.xml

Re: Single war file - multiple hosts - can't get log4j to log to different files

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/23/11 3:42 PM, Pid wrote: You could just run separate instances of Tomcat. It would be less hassle easier to manage. Separate CATALINA_HOME CATALINA_BASE, so you can use the same core code just create some separate instances.

Re: Mysterious request edirect with value exchange

2011-11-25 Thread Konstantin Kolinko
2011/11/25 uwe.hellm...@t-systems.com: So what we have is a redirected response from a failed login process. Is it FORM authentication, or some custom implemented login process? As example we have an login mask and while tryinig to login we put the username Tester in the username

Re: Tomcat user roles

2011-11-25 Thread Mark Thomas
On 25/11/2011 15:10, Christopher Schultz wrote: Bill, On 11/24/11 11:42 PM, Bill Wang wrote: Thanks, with your help, I find out this link: http://onjava.com/onjava/2001/07/24/tomcat.html, seems you need me setup MemoryRealm, then setup security constraint in

Multi-level context with #

2011-11-25 Thread Adil Munir
we are trying to work with multi-level context we have tried tomcat 6.24, 7 with JDK 6 update 17,18, 19, 25 server 2008 64 bit we have the xml and war file as follows: S:\Server\x\servers\xxx\tomcat\conf\Catalina\localhost\ws#management.xml webapps/ws/management.war error:

Re: Multi-level context with #

2011-11-25 Thread Mark Thomas
On 25/11/2011 17:46, Adil Munir wrote: we are trying to work with multi-level context we have tried tomcat 6.24, 7 with JDK 6 update 17,18, 19, 25 server 2008 64 bit we have the xml and war file as follows: S:\Server\x\servers\xxx\tomcat\conf\Catalina\localhost\ws#management.xml

RE: Multi-level context with #

2011-11-25 Thread Adil Munir
works! thank you very much -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: November 25, 2011 12:51 PM To: Tomcat Users List Subject: Re: Multi-level context with # On 25/11/2011 17:46, Adil Munir wrote: we are trying to work with multi-level context we have tried

Re: Tomcat user roles

2011-11-25 Thread Pid *
On 25 Nov 2011, at 04:43, Bill Wang bw57...@gmail.com wrote: Hi Mark, Thanks, with your help, I find out this link: http://onjava.com/onjava/2001/07/24/tomcat.html, 2001! :) p seems you need me setup MemoryRealm, then setup security constraint in webapps/manager/WEB-INF/web.xml

Re: Tomcat user roles

2011-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 11/25/11 12:47 PM, Mark Thomas wrote: There is no such command as restart. You'll need: url-pattern/html/stop/url-pattern url-pattern/html/start/url-pattern Whoops. Thanks for catching that. You'll probably want:

[ANN] Apache Tomcat 7.0.23 released

2011-11-25 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.23 This release includes numerous bug fixes and several new features compared to version 7.0.22. The notable new features include: * The ability to start and stop child containers (primarily Contexts: i.e. web

Minimal persistent storage for a webapp

2011-11-25 Thread Benson Margulies
I'm fairly certain that I know the answer to the question here, but I want to pose it just in case I've missed something. In a web application, I'd like to store a bit of data without configuring a database, or, indeed anything that has to be edited into an XML file or typed into a

Re: Tomcat 7 not working with javax.net.ssl.keyStorePassword property

2011-11-25 Thread Konstantin Kolinko
2011/11/24 Mark Thomas ma...@apache.org: On 22/11/2011 20:42, Satish Mittal wrote: Hi All, I have observed a regression between tomcat 5 and tomcat 7. That is https://issues.apache.org/bugzilla/show_bug.cgi?id=38774 that was fixed only in the 5.5.x branch. I'm not a huge fan of using

Re: Minimal persistent storage for a webapp

2011-11-25 Thread Konstantin Kolinko
2011/11/26 Benson Margulies bimargul...@gmail.com: I'm fairly certain that I know the answer to the question here, but I want to pose it just in case I've missed something. In a web application, I'd like to store a bit of data without configuring a database, or, indeed anything that has to be

Re: Minimal persistent storage for a webapp

2011-11-25 Thread Benson Margulies
On Fri, Nov 25, 2011 at 4:36 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2011/11/26 Benson Margulies bimargul...@gmail.com: I'm fairly certain that I know the answer to the question here, but I want to pose it just in case I've missed something. In a web application, I'd like to

Tomcat 5.5 crashes after changing server IP

2011-11-25 Thread sirwiz
Hi, i recently move server to new IP, since this change ive got permanently this error, i tryed everything but im fail. [Fri Nov 25 23:56:29 2011] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_t:s0 [Fri Nov 25 23:56:29 2011] [notice] suEXEC mechanism enabled

Re: Babysitting ThreadLocals

2011-11-25 Thread Sylvain Laurent
On 25 nov. 2011, at 15:58, Christopher Schultz wrote: On 11/24/11 4:02 PM, Sylvain Laurent wrote: I don't think this ThreadLocal creates a real leak of classloader. It would if dayFormat was static. IIRC, ThreadLocal essentially puts a key/value pair in a Map in the Thread. I dunno what

RE: Tomcat 5.5 crashes after changing server IP

2011-11-25 Thread Caldarale, Charles R
From: sir...@8host.pl [mailto:sir...@8host.pl] Subject: Tomcat 5.5 crashes after changing server IP Hi, i recently move server to new IP, since this change ive got permanently this error, i tryed everything but im fail. [Fri Nov 25 23:56:29 2011] [notice] SELinux policy enabled; httpd

RE: Tomcat 5.5 crashes after changing server IP

2011-11-25 Thread sirwiz
Tomcat log: 2011-11-26 00:42:34 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:

Re: How to get the tomcat internal log out?

2011-11-25 Thread MiB
25 nov 2011 14.37 Christopher Schultz wrote: +1 Any webapp that runs on 5.5 that doesn't run on Tomcat 7 represents either a regression in Tomcat or a webapp that has been tied-into Tomcat's internal classes (which it shouldn't have been). Running is not the issue here, is it? Internal