Re: JAR locked in Tomcat after using addUrl to dynamically add JAR to running webapp

2011-10-21 Thread Mark Thomas
On 21/10/2011 03:00, Bob DeRemer wrote: While I can appreciate the desire to never use Windows, that isn't reality in many of the industries that use our product, so running Tomcat on windows can't be considered an oddity or edge case. If it is, we better look for another app server. If that

Re: FarmWarDeployer undeploy on slave node when tomcat restart

2011-10-21 Thread Marco Betti
Tried also on Tomcat 7.0.22 Same behaviour: when i restart node1, FarmWarDeployer undeploy my war both from node1 and node2, but re-deploy it only on node1. If I touch my war in my watchDir on node1, tomcat redeploys it correctly on both nodes... Is tomcat clustering used? If so, does anybody

Re: Undeploy fails with Tomcat 7 manager application

2011-10-21 Thread Mike
Mark Thomas markt at apache.org writes: On 18/10/2011 13:02, Bjoern Raupach wrote: Hi group, we are using Tomcat 7.0.21 on Windows XP with the manager application for remote deployment. Tomcat is configured to unpack wars. Deploying works. However undeploy fails for the following

Re: [OT?] control of session timed out with tomcat

2011-10-21 Thread André Warnier
Mark Thomas wrote: On 20/10/2011 17:01, Tim Watts wrote: On Thu, 2011-10-20 at 16:35 +0100, Mark Thomas wrote: On 20/10/2011 16:22, André Warnier wrote: Hassan Schroeder wrote: On Thu, Oct 20, 2011 at 7:52 AM, André Warnier a...@ice-sa.com wrote: 1) Tomcat (probably) doesn't spend its time

Re: Undeploy fails with Tomcat 7 manager application

2011-10-21 Thread Mark Thomas
On 21/10/2011 09:58, Mike wrote: Mark Thomas markt at apache.org writes: On 18/10/2011 13:02, Bjoern Raupach wrote: Hi group, we are using Tomcat 7.0.21 on Windows XP with the manager application for remote deployment. Tomcat is configured to unpack wars. Deploying works. However

Re: [OT?] control of session timed out with tomcat

2011-10-21 Thread Mark Thomas
On 21/10/2011 10:05, André Warnier wrote: I am assuming that at each access to the application, Tomcat updates the expiration time of the session if any (that is, it sets a new date/time at which this session will be considered as expired, being now + timeout). Rather than making incorrect

docBase= and Environment/ in server.xml

2011-10-21 Thread Gianoglio Gabriele
Hy everibody, in my Tomcat 5.5 instance I'm trying to set a webapp as the root (docBase=) webapp so that when users connect to http://server:port/ will not respond manager webapp. I've done this by adding the tag Context path= docBase=myWebApp / in server.xml, but I

Re: FarmWarDeployer undeploy on slave node when tomcat restart

2011-10-21 Thread Keiichi Fujino
I checked FarmWarDeployer's code. When WAR is updated, FarmWarDeployer sends UndeployMessage and sends FileMessage after that. The node which received UndeployMessage undeploys war. The node which received FileMessage deploys war. If FileMessage is received while processing UndeployMessage, the

Re: [OT?] control of session timed out with tomcat

2011-10-21 Thread André Warnier
Mark Thomas wrote: On 21/10/2011 10:05, André Warnier wrote: I am assuming that at each access to the application, Tomcat updates the expiration time of the session if any (that is, it sets a new date/time at which this session will be considered as expired, being now + timeout). Rather than

Re: [OT?] control of session timed out with tomcat

2011-10-21 Thread Mark Thomas
On 21/10/2011 11:42, André Warnier wrote: Allright, so how about a half-way house to start with ? Keep the list in some thread-safe table, indexed by session-id, and just scan the table. Updating the corresponding session entry at each request should be cheap. Of course in all this, my

RE: JAR locked in Tomcat after using addUrl to dynamically add JAR to running webapp

2011-10-21 Thread Bob DeRemer
Hi Mark, With regard to using Tomcat in production, that was meant sarcastically - the team has done a nice job on later Tomcat 6 and Tomcat 7 32/64-bit installations - including Windows Service support, etc. - nice work. With regard to using YourKit, I have a licensed copy, but must be

Re: JAR locked in Tomcat after using addUrl to dynamically add JAR to running webapp

2011-10-21 Thread Mark Thomas
On 21/10/2011 12:22, Bob DeRemer wrote: Hi Mark, With regard to using Tomcat in production, that was meant sarcastically - the team has done a nice job on later Tomcat 6 and Tomcat 7 32/64-bit installations - including Windows Service support, etc. - nice work. That comment was more aimed

RE: JAR locked in Tomcat after using addUrl to dynamically add JAR to running webapp

2011-10-21 Thread Bob DeRemer
Thanks Mark, I appreciate the offer. Let me dig into a bit today - based on your steps. if I can't get anywhere, I'll gladly take you up on your offer. What is the best way to communicate out-of-band if I need to get you a snapshot? -bob -Original Message- From: Mark Thomas

Regarding thread pool utilization monitoring using ThreadPool MBeans

2011-10-21 Thread akshay hiremath
Hi, I'm using Tomcat 7.0.20. I'm writing java code for automated Thread utilization monitoring and alert system. I'm struggling to find the Mbean descriptor for Mbeans under Catalina.ThreadPool. Can anyone provide any reference? The big question I've is what the currentThreadCount

Re: [OT?] control of session timed out with tomcat

2011-10-21 Thread André Warnier
Mark Thomas wrote: On 21/10/2011 11:42, André Warnier wrote: Allright, so how about a half-way house to start with ? Keep the list in some thread-safe table, indexed by session-id, and just scan the table. Updating the corresponding session entry at each request should be cheap. Of course in

JMX access through firewall

2011-10-21 Thread Thiago Moreira (timba)
Hi there, I'm trying to attach a Visualvm to a Tomcat (6.0.32) in a remote computer that only has the port 22 opened. I'm opening a ssh tunnel to bypass the firewall and access different ports but JMX over RMI it's not working. I have tried several tutorials but I didn't manage to work.

Re: [OT?] control of session timed out with tomcat

2011-10-21 Thread Mark Thomas
On 21/10/2011 13:43, André Warnier wrote: Mark Thomas wrote: On 21/10/2011 11:42, André Warnier wrote: Allright, so how about a half-way house to start with ? Keep the list in some thread-safe table, indexed by session-id, and just scan the table. Updating the corresponding session entry

Re: JMX access through firewall

2011-10-21 Thread Mark Thomas
On 21/10/2011 13:56, Thiago Moreira (timba) wrote: org.apache.catalina.mbeans.JmxRemoteLifecycleListener Read this http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html org.apache.catalina.mbeans.JMXAdaptorLifecycleListener but none of them are available in Tomcat

RE: docBase= and Environment/ in server.xml

2011-10-21 Thread Caldarale, Charles R
From: Gianoglio Gabriele [mailto:g.gianog...@eurogroup.it] Subject: docBase= and Environment/ in server.xml in my Tomcat 5.5 instance I'm trying to set a webapp as the root (docBase=) webapp Right there you have a fatal error; docBase must *never* be an empty string. Please read the FAQ

Re: FarmWarDeployer undeploy on slave node when tomcat restart

2011-10-21 Thread Marco Betti
Hi Keiichi, many thanks for your suggestion. By setting synchronous replication everything works. Unless processing updated war by one message, I think that async replication shouldn't be used (personal opinion). By the way I wander If asnyc replication couldn't lead to some other unexpected

Re: JAR locked in Tomcat after using addUrl to dynamically add JAR to running webapp

2011-10-21 Thread Mark Thomas
On 21/10/2011 13:12, Bob DeRemer wrote: Thanks Mark, I appreciate the offer. Let me dig into a bit today - based on your steps. if I can't get anywhere, I'll gladly take you up on your offer. What is the best way to communicate out-of-band if I need to get you a snapshot? Bob and I took

Re: [OT] control of session timed out with tomcat

2011-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 10/20/2011 7:01 PM, Tim Watts wrote: This was a while ago -- no HttpSessionListeners available -- so we couldn't easily persist the session and recall it when the user logged in again. Wow. What were you using, Apache JServ? Tomcat 3.x?

Re: JAR locked in Tomcat after using addUrl to dynamically add JAR to running webapp

2011-10-21 Thread Mark Thomas
On 21/10/2011 15:31, Mark Thomas wrote: On 21/10/2011 13:12, Bob DeRemer wrote: Thanks Mark, I appreciate the offer. Let me dig into a bit today - based on your steps. if I can't get anywhere, I'll gladly take you up on your offer. What is the best way to communicate out-of-band if I need

Re: FarmWarDeployer undeploy on slave node when tomcat restart

2011-10-21 Thread Mark Eggers
- Original Message - From: Marco Betti m.be...@gmail.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, October 21, 2011 7:18 AM Subject: Re: FarmWarDeployer undeploy on slave node when tomcat restart Hi Keiichi, many thanks for your suggestion. By setting

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Brian Jones
o Tried running the .bat file from the command line directly piping output to a local .txt file; all that gets piped to the .txt file is the java environment variables that are being used startup.bat is equivalent to calling catalina.bat start Try using catalina.bat run

SSI SecurityException

2011-10-21 Thread Steve Major
Hello folks, I have a new Tomcat install, version 7.0.21 running on OS X 10.6.8 server (not using Apple's install of Tomcat, BTW), and Java 1.6.0. I've successfully setup a SSI Filter before with Tomcat 6.0 a few years ago with the help of this list, but I'm just stuck right now. I've

Re: JMX access through firewall

2011-10-21 Thread Thiago Moreira (timba)
Thanks Mark! I was able to connect visualvm to Tomcat without SSH tunneling, that is a one step forward! But I'm still struggling with SSH tunneling. Let me show what I have configured. I have a VirtualBox VM (Ubuntu-11.10) setup with a Tomcat (6.0.32) with the following configurations: -

RE: Tomcat application startup - Lifecycleexception

2011-10-21 Thread ramsri
Thanks for your guidance. Yes, I have native code and dd hence the .so file. I cannot put that in Java. It is in C++. I did put the LD_LIBRARY_PATH to point to the directory. The error I am getting is ** ERROR mycompany.site.newsp11 - The exception is of type java.io.FileNotFoundException:

Re: [OT] control of session timed out with tomcat

2011-10-21 Thread Tim Watts
On Fri, 2011-10-21 at 11:05 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 10/20/2011 7:01 PM, Tim Watts wrote: This was a while ago -- no HttpSessionListeners available -- so we couldn't easily persist the session and recall it when the user

Re: Tomcat produces empty/missing log files

2011-10-21 Thread Konstantin Kolinko
2011/10/21 Brian Jones bjone...@uwo.ca:        It would be nice to see the actual command line that starts Tomcat's Bootstrap. The JVM keys that configure  java.util.logging should be there. - I don't know what you mean by this. I mean catalina.bat purpose is to prepare and call java.exe.

Re: SSI SecurityException

2011-10-21 Thread Konstantin Kolinko
2011/10/21 Steve Major st...@themajorshome.com: Hello folks, I have a new Tomcat install, version 7.0.21 running on OS X 10.6.8 server (not using Apple's install of Tomcat, BTW), and Java 1.6.0.  I've successfully setup a SSI Filter before with Tomcat 6.0 a few years ago with the help of

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Brian Jones
The verbose file I was referring to was the original content of the logging.properties file that I pasted in the previous message. Brian J. -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Friday, October 21, 2011 2:24 PM To: Tomcat Users List Subject:

Re: SSI SecurityException

2011-10-21 Thread Steve Major
Hello, thank you for replying! Yes, that is the location I uncommented it since that is what their instructions say. I'm only deploying a single webapp, so I do not mind it being global. I do see how it would be tidier in the future, if I deploy more, to do it on a per-app basis. If this is

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Brian Jones
Please find below the context of logging.properties (updated, the 'verbose' copy, rather than the minimalized copy you had suggested previously): # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this

Re: SSI SecurityException

2011-10-21 Thread Konstantin Kolinko
2011/10/21 Steve Major st...@themajorshome.com: Hello, thank you for replying! Yes, that is the location I uncommented it since that is what their instructions say. I'm only deploying a single webapp, so I do not mind it being global. So every webapp will load that filter and thus every

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Brian Jones
Thanks again for your insight into the problem. Following your advice, I started from a fresh install of Tomcat 5.5.33. I noticed that log4j.1.2.16.jar is included in the common/lib folder by default. The only modification I made was the small addition to logging.properties:

Re: Tomcat produces empty/missing log files

2011-10-21 Thread Mark Thomas
On 21/10/2011 20:18, Brian Jones wrote: Thanks again for your insight into the problem. Following your advice, I started from a fresh install of Tomcat 5.5.33. I noticed that log4j.1.2.16.jar is included in the common/lib folder by default. No it isn't. Where are you getting this Tomcat

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Brian Jones
My mistake. The distro doesn't include the .jar by default. The project I deploy to Tomcat automatically sticks the log4j.jar file there. Sorry for the confusion; I overlooked this step. Brian J -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Friday, October 21,

Re: Tomcat produces empty/missing log files

2011-10-21 Thread Mark Thomas
On 21/10/2011 20:27, Brian Jones wrote: My mistake. The distro doesn't include the .jar by default. The project I deploy to Tomcat automatically sticks the log4j.jar file there. Sorry for the confusion; I overlooked this step. That begs the question What else is it doing? since it appears to

Re: SSI SecurityException

2011-10-21 Thread Steve Major
Thanks, I figured that out shortly before getting your reply. Moving the filter and mapping into the app's web.xml has eliminated the error from the logs, however, the ssi still won't display a result. By this I mean if I insert: Today is !--#echo var=DATE_LOCAL -- into my .jsp, when I view

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Brian Jones
Yes, it appears that the project I'm deploying is relying on log4j for logging; so when I remove the log4j.jar file, it obviously complains that it can't find it. However, what I don't understand is why Tomcat refuses to log to the log files if there is a log4j.jar file present in the common/lib

Re: Tomcat produces empty/missing log files

2011-10-21 Thread Konstantin Kolinko
2011/10/21 Brian Jones bjone...@uwo.ca: Yes, it appears that the project I'm deploying is relying on log4j for logging; so when I remove the log4j.jar file, it obviously complains that it can't find it. However, what I don't understand is why Tomcat refuses to log to the log files if there

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Brian Jones
Konstantine and Mark, Thanks to both of you for your revelations; without you two I would truly be lost. That defiantly makes sense. Are there any known workarounds for using java.util.logging instead of log4j even if the log4j.jar file is present? Thanks again for allowing me to pick your

Setting-up Tomcat in Eclipse

2011-10-21 Thread Christopher Lee
Version: Apache Tomcat-6.0-33 Operating System: Windows XP Eclipse J2EE: Version: 3.5.2 I am using Eclipse Galileo to develop web applications. I attempted to integrate Apache Tomcat as an internal (local) server to develop, debug, test, and deploy my application code but I think I am having

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Caldarale, Charles R
From: Brian Jones [mailto:bjone...@uwo.ca] Subject: RE: Tomcat produces empty/missing log files Are there any known workarounds for using java.util.logging instead of log4j even if the log4j.jar file is present? If you only want log4j for a specific webapp rather than for Tomcat itself, put

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Brian Jones
Charles, Thanks for your reply. I'm not able to do as you suggested, because the software project is not managed by me, or my parent company. It is an open source enterprise system that is managed by a community and a foundation. Also, it isn't just one project. The system I'm deploying is

Re: Tomcat produces empty/missing log files

2011-10-21 Thread David kerber
On 10/21/2011 3:53 PM, Brian Jones wrote: Charles, Thanks for your reply. I'm not able to do as you suggested, because the software project is not managed by me, or my parent company. It is an open source enterprise system that is managed by a community and a foundation. Also, it isn't just

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Brian Jones
Yes, but the dependencies are not managed locally, it's done using a remote maven repository. Thus, it would affect the entire community. No? Brian J. -Original Message- From: David kerber [mailto:dcker...@verizon.net] Sent: Friday, October 21, 2011 4:26 PM To: Tomcat Users List

Re: Tomcat produces empty/missing log files

2011-10-21 Thread Konstantin Kolinko
2011/10/21 Brian Jones bjone...@uwo.ca: That defiantly makes sense. Are there any known workarounds for using java.util.logging instead of log4j even if the log4j.jar file is present? You will need to read Commons Logging documentation for that.

RE: Tomcat produces empty/missing log files

2011-10-21 Thread Daniel Mikusa
Brian, If you can't put Log4j into WEB-INF/lib, could you try putting it into shared/lib? I believe you mentioned that it was placed into common/lib, which will make it accessible to Tomcat all of your webapps. If you put it into shared/lib it should only be accessible to your webapps, which

Re: [OT] control of session timed out with tomcat

2011-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 10/21/2011 2:10 PM, Tim Watts wrote: On Fri, 2011-10-21 at 11:05 -0400, Christopher Schultz wrote: On 10/20/2011 7:01 PM, Tim Watts wrote: This was a while ago -- no HttpSessionListeners available -- so we couldn't easily persist the

Re: JMX access through firewall

2011-10-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thiago, On 10/21/2011 1:37 PM, Thiago Moreira (timba) wrote: On my host machine I fired the tunneling with: ssh -v -L10.226.2.212/8849/localhost/8849 -L10.226.2.212/8850/localhost/8850 192.168.56.101 Is it possible that ssh is confused by your

Re: [OT?] control of session timed out with tomcat

2011-10-21 Thread André Warnier
Mark Thomas wrote: ... Of course in all this, my basic assumption is that currently, Tomcat keeps session information (including the expiration data) in some location which requires an I/O action to access. That assumption is incorrect. Which pretty much invalidates the rest of the points

Re: Tomcat application startup - Lifecycleexception

2011-10-21 Thread Pid
On 21/10/2011 00:26, ramsri wrote: I now know that there is no longer a need to mess around with setclasspath.sh. I'm not sure there ever was. p signature.asc Description: OpenPGP digital signature

tomcat error 404

2011-10-21 Thread Dave Filchak
Folks, I know I have asked about this site befor with a number of problems and one of the suggestions was to find the original programmer for help. Well I cannot find him ... he is not available unfortunately. I was originally getting some except errors but now, after my host turned off my server

RE: tomcat error 404

2011-10-21 Thread Caldarale, Charles R
From: Dave Filchak [mailto:sub...@zuka.net] Subject: tomcat error 404 I am receiving a HTTP Status 404 error. Can you tell if the 404 is coming from Tomcat or httpd? I have verified that tomcat and apache are running. By apache [sic], I presume you mean httpd. How did you verify they're