Rollback in Tomcat7 under parallel deployment

2011-10-27 Thread Ellecer Valencia
Hi, If I'm using parallel deployment in Tomcat 7, and now have 2 webapps /webapps/ROOT##001.war /webapps/ROOT##002.war and then get problems in the new version and want to rollback to ROOT##001.war. If I delete the more recent version by doing rm /tomcat/webapps/ROOT##002.war What happens to

Re: HOW TO detect what app server you're running in

2011-10-27 Thread Pid *
On 26 Oct 2011, at 12:47, Konstantin Kolinko knst.koli...@gmail.com wrote: Note, that this method is unreliable. 1) The actual value can be configured by server administrator. 2) There are 3-rd party repackaged distributions of Tomcat, which may/should change the value. It would be better

Re: Rollback in Tomcat7 under parallel deployment

2011-10-27 Thread Mark Thomas
On 27/10/2011 07:41, Ellecer Valencia wrote: Hi, If I'm using parallel deployment in Tomcat 7, and now have 2 webapps /webapps/ROOT##001.war /webapps/ROOT##002.war and then get problems in the new version and want to rollback to ROOT##001.war. If I delete the more recent version by

Re: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-27 Thread Rainer Jung
On 27.10.2011 06:02, Anantaneni Harish wrote: -Original Message- From: Anantaneni Harish Sent: Wednesday, October 26, 2011 3:01 PM To: Tomcat Users List Subject: RE: cannot read complete HTTP request body. It reads only 8192 characters Thanks for your response. The issue is

RE: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-27 Thread Anantaneni Harish
Thanks for the directions the Rainer. Actually the issue is just solved. We have changed from BufferedReader in = request.getReader(); to BufferedReader in = new BufferedReader(new InputStreamReader(request.getInputStream())); Now whole body has been read at my client's environment as well.

how to properly configure tomcat 7 cluster with BackupManager

2011-10-27 Thread Jürgen Link
Hi all, I successfully did set up a tomcat cluster (3 nodes) with session replication, using the standard DeltaManager. In order to allow for more nodes, I'd like to switch to BackupManager for primary-secondary replication on a dedicated backup node. Unfortunately, the official documentation

Re: catalina_pid file contains +1 pid number instead of correct pid

2011-10-27 Thread Cooper man
Hi Raghu, My guess is that you have changed the logging to use cronolog and as such the PID being written is actually the logging process and not the catalina process. Check your catalina.sh file If you see something like this org.apache.catalina.startup.Bootstrap $@ start 21

Re: JMX access through firewall

2011-10-27 Thread Thiago Moreira (timba)
Hey all, I was able to connect! These are the steps that I took http://www.liferay.com/pt/web/thiago.moreira/blog/-/blogs/how-to-monitor-liferay-tomcat-remotely-through-firewalls-using-visualvm Thanks! Thiago Moreira On Mon, Oct 24, 2011 at 1:56 PM, Thiago Moreira (timba)

Re: how to properly configure tomcat 7 cluster with BackupManager

2011-10-27 Thread markt
Jürgen Link juergen.l...@googlemail.com wrote: Hi all, I successfully did set up a tomcat cluster (3 nodes) with session replication, using the standard DeltaManager. In order to allow for more nodes, I'd like to switch to BackupManager for primary-secondary replication on a dedicated backup

RE: Tomcat clustering session attribute is changed without request

2011-10-27 Thread Hodchenkov, Paul
Hi all, So I was not able to call cluster valve from the application, but I believe a http call to localhost with the same session id can do a trick(yeah, not an elegant solution :) ). However, it would be fine is somebody can clarify my another questions about tomcatssessions: 1) When using

Re: how to properly configure tomcat 7 cluster with BackupManager

2011-10-27 Thread Mark Thomas
On 27/10/2011 14:43, ma...@apache.org wrote: Jürgen Link juergen.l...@googlemail.com wrote: Hi all, I successfully did set up a tomcat cluster (3 nodes) with session replication, using the standard DeltaManager. In order to allow for more nodes, I'd like to switch to BackupManager for

Re: Antw.: how to properly configure tomcat 7 cluster with BackupManager

2011-10-27 Thread Mark Thomas
On 27/10/2011 16:29, juergen.l...@gmail.com wrote: Hi Mark, thanks a lot for this clarification! Is there any reference you recommend for learning about tomcat clustering (apart from the source code)? Nothing immediately comes to mind. It is an area where we could do with some better docs.

Re: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Harish, On 10/27/2011 4:58 AM, Anantaneni Harish wrote: Thanks for the directions the Rainer. Actually the issue is just solved. We have changed from BufferedReader in = request.getReader(); to BufferedReader in = new BufferedReader(new

Re: Tomcat clustering session attribute is changed without request

2011-10-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 10/24/2011 7:28 AM, Hodchenkov, Paul wrote: 2) AFAIK tomcat fires onSessionDestroyed event when some node in cluster is stopped gracefully. However, in my environment I don't observe such behavior. Is that really what you want? Taking

Re: Undeploy fails with Tomcat 7 manager application

2011-10-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, On 10/26/2011 2:40 AM, Mike wrote: Understood. Thanks! I changed the logfile location to be the log folder of the tomcat server and the redeploy is working (amongst 10 redeploys only 1 failed). I am using log4j so I don't control the

Re: Tomcat clustering session attribute is changed without request

2011-10-27 Thread Hodchenkov, Paul
Hi, thx for the response. Yes, it's ok for me that sessions are not expired(session continue to live on another node) and onsessiondestroyed is not called when one node is stopped. The actual reason why i asked this question was that many folks complained that tomcat always fired

Re: ThreadLocal Memory Leak Protection - Executor threadRenewalDelay questions

2011-10-27 Thread Sylvain Laurent
Hello, On 26 oct. 2011, at 17:55, Rohit Kelapure wrote: * Reposting from the dev list as advised * Dear All, After going through the thread renewal code in /tomcat-8.0.x/java/org/apache/tomcat/util/threads/TaskQueue.java ,

context.xml not being read

2011-10-27 Thread Rajkumar Singh
Hello, I am not able to read the environment variable from the server.xml - those are also referenced in the META-INF/context.xml. I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux I am deploying my source code in some folder called /data2/www/xyz/htdocs/approot. I have

Re: ThreadLocal Memory Leak Protection - Executor threadRenewalDelay questions

2011-10-27 Thread Rohit Kelapure
Sylvain and Mark, Thank you for answering my questions! On Thu, Oct 27, 2011 at 3:16 PM, Sylvain Laurent slaur...@apache.org wrote: Hello, On 26 oct. 2011, at 17:55, Rohit Kelapure wrote: * Reposting from the dev list as advised * Dear All, After going through the thread renewal code

Re: context.xml not being read

2011-10-27 Thread Konstantin Kolinko
2011/10/28 Rajkumar Singh rajkumar.si...@digitas.com: Hello, I am not able to read the environment variable from the server.xml - those are also referenced in the META-INF/context.xml. I am using tomcat version 6.0.29. The tomcat is deployed on the OS Linux I am deploying my source code in

RE: context.xml not being read

2011-10-27 Thread Caldarale, Charles R
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Subject: Re: context.xml not being read Host name=xyz.company.com        Context path=/ docBase=/data2/www/xyz/htdocs/approot reloadable=true debug=0 override=true / /Host You choose to define it in server.xml and thus

Re: context.xml not being read

2011-10-27 Thread Rajkumar Singh
Thank you for replying. If the context.xml file is being ignored then why the variable that I have defined in the server.xml is not being read? Should I delete the META-INF/context.xml file completely? From: Konstantin Kolinko knst.koli...@gmail.com To: Tomcat Users List

RE: context.xml not being read

2011-10-27 Thread Caldarale, Charles R
From: Rajkumar Singh [mailto:rajkumar.si...@digitas.com] Subject: Re: context.xml not being read If the context.xml file is being ignored then why the variable that I have defined in the server.xml is not being read? Should I delete the META-INF/context.xml file completely? Having a

RE: context.xml not being read

2011-10-27 Thread Rajkumar Singh
Hi Chuck, Once again appreciate your response. What I did was I created a WAR file and dropped it under the tomcat webapps folder and started it. This helped in overcoming my problem. This process created conf/Catalina/[host]/[appName].xml and copied all the property from my local

Re: Rollback in Tomcat7 under parallel deployment

2011-10-27 Thread Ellecer Valencia
On Thursday, October 27, 2011, Mark Thomas ma...@apache.org wrote: Also, what happens if ROOT##001 and ##002 have the same log4j configs and are writing to the same log file?? How have people handled this situation? You'll certainly end up with both apps writing to the same file. Whether or

Tomcat 6 7 logging to rsyslog

2011-10-27 Thread John Schwartzman
Can anyone point me to some documentation about logging authentication information (login, logout, lockout) to a remote syslog in Tomcat 6 7? Many thanks! -- John Schwartzman Forte Systems, Inc. - To unsubscribe, e-mail:

Tomcat 6 7 Logging to rsyslog

2011-10-27 Thread John Schwartzman
Can anyone point me to documentation concerning logging of authentication information (login, logout, lockout) to a remote syslog in Tomcat 6 7? Many thanks! -- John Schwartzman Forte Systems, Inc. - To unsubscribe,

Re: context.xml not being read

2011-10-27 Thread jilen
On 10/28/2011 06:45 AM, Rajkumar Singh wrote: Hi Chuck, Once again appreciate your response. What I did was I created a WAR file and dropped it under the tomcat webapps folder and started it. This helped in overcoming my problem. This process created conf/Catalina/[host]/[appName].xml and

Re: catalina_pid file contains +1 pid number instead of correct pid

2011-10-27 Thread Raghu GS
Hi Cooper Man You are a genius. you have perfectly guessed our setup and problem. And I am very happy about finding the root cause finally. Is there any solution for this problem? Cooper man wrote: Hi Raghu, My guess is that you have changed the logging to use cronolog and as such the

RE: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-27 Thread Anantaneni Harish
Hi Chris, Could you please let me know, the info you required? Thanks and Regards, Harish -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, October 28, 2011 12:39 AM To: Tomcat Users List Subject: Re: cannot read complete HTTP request