Re: Ideal way to minimize resources used by Tomcat for sessions

2012-11-19 Thread Konstantin Kolinko
2012/11/19 Baron Von Awsm baronvona...@gmail.com: My web app consists of a single servlet, no JSPs and no static content. The servlet retrieves XML from POST submissions and hands the XML and IP address of the client to an API/engine. This engine can work outside of a web container and has no

Re: Modify Cache-Control header

2012-11-19 Thread Konstantin Kolinko
2012/11/18 Terence M. Bandoian tere...@tmbsw.com: On 11/16/2012 2:38 PM, Jose María Zaragoza wrote: Hi: I'm using Tomcat 6 ( I don't remember the exact release, I hope to be forgiven by Pid ) I need to modify Cache-Control header in some responses ( forcing them to not be cached ) What

Re: Form based login authentication

2012-11-19 Thread Brian Burch
On 10/11/12 17:47, Russ Kepler wrote: On Saturday, November 10, 2012 05:14:43 PM you wrote: I thought it would helpful to let you know that I am very nearly ready to submitting a lot of new unit tests for the FormAuthenticator class. The new tests explore url path extensions to carry the

multiple tomcat instances for every application

2012-11-19 Thread Ashkan Rahmani
Hi I have a question. which way is better for my scenario? I have one server - Centos 6 x64 , 8GB ram- and 3 java web application. 1- run multiple instances of tomcat 6 for each application and configure different port in server.xml for each one. 2- run just one instance of tomcat 6 for all three

Issue with missing files while migrating to Tomcat 7.0.32

2012-11-19 Thread George Chacko Manchimala
Hi, We are currently upgrading our Tomcat from 5.5.23 to 7.0.32. The primary hurdle we are facing is with missing files(jsp), which Tomcat 5.5.23 used to tolerate. When it encounters a page that tries to include a file that is missing (Missing because the file needs to be loaded only

Re: multiple tomcat instances for every application

2012-11-19 Thread Mikolaj Rydzewski
On 19.11.2012 14:18, Ashkan Rahmani wrote: which way is better for my scenario? I have one server - Centos 6 x64 , 8GB ram- and 3 java web application. 1- run multiple instances of tomcat 6 for each application and configure different port in server.xml for each one. 2- run just one instance

Re: Problem with tomcat and JRE1.7

2012-11-19 Thread Daniel Mikusa
On Nov 16, 2012, at 3:15 PM, Ralph Grove wrote: I stopped tomcat, deleted work and all of the application directories that were derived from war files. Same problem after restarting, though. It looks like all JSP's are failing. Couple more thoughts… 1.) Download a fresh copy of Tomcat

Re: My app stop respoding after 3 to 5 days in my Redhat server

2012-11-19 Thread Daniel Mikusa
On Nov 19, 2012, at 6:52 AM, Anuroop wrote: Hi, I am new for tomcat and linux. I have hosted my application on my redhat server, from last 1 week I am observing that its suddenly stops working after continuously running after 2 to 3days. Observation: Whenever my app

Re: multiple tomcat instances for every application

2012-11-19 Thread Ashkan Rahmani
On Mon, Nov 19, 2012 at 5:03 PM, Mikolaj Rydzewski m...@ceti.pl wrote: On 19.11.2012 14:18, Ashkan Rahmani wrote: which way is better for my scenario? I have one server - Centos 6 x64 , 8GB ram- and 3 java web application. 1- run multiple instances of tomcat 6 for each application and

RE: My app stop respoding after 3 to 5 days in my Redhat server

2012-11-19 Thread Caldarale, Charles R
From: Daniel Mikusa [mailto:dmik...@vmware.com] Subject: Re: My app stop respoding after 3 to 5 days in my Redhat server I wanted to know whether is there any configuration issue in my tomcat, because of more request coming from the client machine it is stop working? Take some thread

Re: Problem with tomcat and JRE1.7

2012-11-19 Thread Ralph Grove
The problem turned out to be one of the war files that I'm loading into Tomcat. JSP's work fine until that particular war file is deployed, but afterwards JSP's will no longer compile correctly. Only those JSP's that were previously compiled continue to work correctly. Without that war file

Re: Problem with tomcat and JRE1.7

2012-11-19 Thread André Warnier
Hi. Thanks for the update. Ralph Grove wrote: The problem turned out to be one of the war files that I'm loading into Tomcat. JSP's work fine until that particular war file is deployed, but afterwards JSP's will no longer compile correctly. So what does that mean ? compiling the JSP's in

Re: Problem with tomcat and JRE1.7

2012-11-19 Thread Ralph Grove
It seems that the war file that I was installing contains its own version of the servlet API, which evidently conflicts with the one Tomcat 7 is using. I'm not sure of the details yet, but it you're curious you can find the war file within this zip:

CATALINA_BASE/conf/Catalina/localhost/APPNAME.xml is different from application's context.xml

2012-11-19 Thread Long Thai
I've been running a web application on Tomcat, when I make some changes in the application, including context.xml, and redeploy it, I start receiving an exception: javax.naming.NamingException: Cannot create resource instance at

Re: Problem with tomcat and JRE1.7

2012-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ralph, On 11/19/12 11:30 AM, Ralph Grove wrote: The problem turned out to be one of the war files that I'm loading into Tomcat. JSP's work fine until that particular war file is deployed, but afterwards JSP's will no longer compile correctly.

Re: CATALINA_BASE/conf/Catalina/localhost/APPNAME.xml is different from application's context.xml

2012-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Long, On 11/19/12 2:38 PM, Long Thai wrote: I've been running a web application on Tomcat, when I make some changes in the application, including context.xml, and redeploy it, I start receiving an exception: javax.naming.NamingException:

Re: My app stop respoding after 3 to 5 days in my Redhat server

2012-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 11/19/12 9:13 AM, Caldarale, Charles R wrote: From: Daniel Mikusa [mailto:dmik...@vmware.com] Subject: Re: My app stop respoding after 3 to 5 days in my Redhat server I wanted to know whether is there any configuration issue in my

Re: multiple tomcat instances for every application

2012-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ashkan, On 11/19/12 9:10 AM, Ashkan Rahmani wrote: On Mon, Nov 19, 2012 at 5:03 PM, Mikolaj Rydzewski m...@ceti.pl wrote: On 19.11.2012 14:18, Ashkan Rahmani wrote: which way is better for my scenario? I have one server - Centos 6 x64 , 8GB

Re:[OT] Servlet response blocking - problems with flush

2012-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Baron, On 11/18/12 9:00 PM, Baron Von Awsm wrote: I posted my issue at http://stackoverflow.com/questions/13446483/tomcat-servlet-response-blocking-problems-with-flush then discovered this mailing list. In the post cited above, I go into

Re: Issue with missing files while migrating to Tomcat 7.0.32

2012-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 George, On 11/19/12 8:23 AM, George Chacko Manchimala wrote: We are currently upgrading our Tomcat from 5.5.23 to 7.0.32. The primary hurdle we are facing is with missing files(jsp), which Tomcat 5.5.23 used to tolerate. I would highly

Re: Delete catalina.out

2012-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, On 11/17/12 11:37 PM, Josh Gooding wrote: Moved this to the user list instead of the dev group. Hmmm strangely enough, I tried this on a CentOS system, I believe it forced me to be root over the tomcat user. It all depends upon the file

RE: multiple tomcat instances for every application

2012-11-19 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: multiple tomcat instances for every application Most JVMs use shared memory for some things like core classes, etc. Unfortunately, I don't think that's true, at least for the Sun/Oracle JVMs - only the client JVM

Re: multiple tomcat instances for every application

2012-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 11/19/12 3:58 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: multiple tomcat instances for every application Most JVMs use shared memory for some things like core classes,

Re: CATALINA_BASE/conf/Catalina/localhost/APPNAME.xml is different from application's context.xml

2012-11-19 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19/11/2012 20:10, Christopher Schultz wrote: If you need to update context.xml, you'll need to undeploy and redeploy (or edit the conf/.../[app].xml in place and bounce Tomcat). No need to bounce Tomcat (unless you have autoDeploy disabled).

TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-19 Thread Jim
Hello! My team has been having an issue wherein our application occasionally fails to start up because Tomcat claims it can't find find a dynamically-created classfile. This doesn't happen all the time, and restarting Tomcat (albeit more than once, sometimes) resolves it. For example, I

Re: Delete catalina.out

2012-11-19 Thread Josh Gooding
Chris, Yes I certainly agree with that. The init.d script should sudo -u tomcat the catalina.sh script. I believe that I have fixed all of them to correctly run as the tomcat user. - Josh On Mon, Nov 19, 2012 at 3:43 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN

*shamless plug*

2012-11-19 Thread Martin Gainty
Shameless plug for Juergens Petclinic webapp i ported to Spring Framework 3.2.x http://www.laconiadatasystems.com/Downloads.html Comments, suggestions or advice are welcome Thanks, Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und

Re: multiple tomcat instances for every application

2012-11-19 Thread bilguun bayarmagnai
If you need a thumb rule, you usually choose multiple instances over single. Downside is, I think, it only uses little more memory. But else than that multiple instance is much better choice. I ran into exactly same issue. But I changed my application instead of running it multiple times. I

I have a question about websocket in tomcat7.0.30

2012-11-19 Thread Zane_Zhang
Dears I am trying to build a chat-room in the internet by websocket based on tomcat7.0.30. the link between server and browser is not reliable. when I try to send a message to server from browser after the websocket connection having been built, the server has no respond, but this just

Re: Form based login authentication

2012-11-19 Thread Russ Kepler
On Monday, November 19, 2012 12:33:26 PM Brian Burch wrote: This issue was discussed at length on the users mailing list under this topic: AuthenticatorBase setChangeSessionIdOnAuthentication without cookies http://mail-archives.apache.org/mod_mbox/tomcat-users/201209.mbox/%3C505EDA8

Re: TC 6.0.2*: Dynamically-compiled jsps/tags not being loaded

2012-11-19 Thread Pid *
On 19 Nov 2012, at 23:58, Jim open...@gmail.com wrote: Hello! My team has been having an issue wherein our application occasionally fails to start up because Tomcat claims it can't find find a dynamically-created classfile. This doesn't happen all the time, and restarting Tomcat (albeit