Re: Sharing session between different webapps under same tomcat

2011-08-04 Thread Chema
I think it is possible to share sessions across contexts. Portal applications need to do this. Try http://jee-bpel-soa.blogspot.com/2009/06/session-sharing-in-apache-tomcat.html But this solution shares information between contexts , not creates an unique shared session per user (session

Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5

2011-08-04 Thread Javed
I was using Tomcat 5.0.28 before using Tomcat 7.0.16. The application was working perfectly fine. Recently, we have migrated from Tomcat 5 to Tomcat 7. The application works fine for most of the part but gives problem with URLRewriteFilter. I have used URLRewriteFilter to convert Capital case

Re: Log ownership when running Tomcat using jsvc

2011-08-04 Thread Mladen Turk
On 08/03/2011 10:11 PM, Jorge Medina wrote: I run Tomcat in a Solaris 10 SPARC machine using jsvc through a init script. jsvc is started by root, but I specify the -user option to change to the application user. I use the option -outfile and -errfile to specify where to direct stdout and

Re: 503 error - service not available

2011-08-04 Thread Pid
On 04/08/2011 03:38, Igor Cicimov wrote: Obviously apache can't connect to tomcat. Any firewall/load balancer changes maybe done last night between apache and tomcat? Can you access tomcat apps bypassing apache? Can you telnet to tomcat server on the tomcat port from the apache? Any errors in

Re: Sharing session between different webapps under same tomcat

2011-08-04 Thread Ron McNulty
Sorry, I think you are missing something :) The session is per user across multiple contexts. Portlet apps are typically compiled into separate .war files, but can share a single session object at runtime. Regards Ron - Original Message - From: Chema demablo...@gmail.com To: Tomcat

Who ate my Connection reset by peer SocketException?

2011-08-04 Thread Debashis Roy
Hi, Trying something which involves catching the Connection reset by peer SocketException. Below is the code snippet from my servlet with explanatory comments. Does anyone have any idea as to what is happening? try { byte [] bytes = getContentBytes(); //read the actual bytes of the content

Re: Sharing session between different webapps under same tomcat

2011-08-04 Thread Chema
OK, I got it Use context scope to store a HashMap object indexing by JSESSIONID I guess , this way you have to free manually all per-user session data from the context when user session is finished ( by example, closing browser). Or your context scope datastore could be full of information of

Re: Different behavior between Tomcat service installation Tomcat console mode

2011-08-04 Thread Alexandre Terrasson
Hi, thanks guys, I finally resolved the problem, thanks to Mladen Turk : I tried to run the service with my local account (which is a admin account) instead of the Local Service account and it works!! Thansk guys for your help :) Alex. 2011/8/3 Mladen Turk mt...@apache.org On 08/03/2011

Modular Deployment

2011-08-04 Thread spring
Hi, I have an application which has a core app, some optional modules and config files. Until now I deploy the app into /webapps (NOT as war-File), copy needed optional modules into WEB-INF/classes or lib and maintain config files outside of the tomcat directory by adding the config directory as

Re: Re: 503 error - service not available

2011-08-04 Thread Dave Filchak
No changes regarding firewall or load balancers. Tomcat and apache live on the same machine in this case. On 22/07/64 2:59 PM, Igor Cicimov wrote: Obviously apache can't connect to tomcat. Any firewall/load balancer changes maybe done last night between apache and tomcat? Can you access tomcat

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-08-04 Thread Pid
On 02/08/2011 02:11, Christopher Schultz wrote: public HTMLEncoder() { mapChar2HTMLEntity= new HashMap(); int longueur = characters.length; for (int i = 0; i longueur; i++) mapChar2HTMLEntity.put(new Character(characters[i]), entities[i]); } So you have Character - String (entity

Re: Who ate my Connection reset by peer SocketException?

2011-08-04 Thread André Warnier
Debashis Roy wrote: Hi, Trying something which involves catching the Connection reset by peer SocketException. Below is the code snippet from my servlet with explanatory comments. Does anyone have any idea as to what is happening? try { byte [] bytes = getContentBytes(); //read the actual

Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Alec Swan
Hello, We are experiencing a problem on our production servers causing our HTTP clients to hang. I apologize for cross-posting with Metro forum but this is a critical problem for us. It looks like client SOAP HTTP requests get dropped/terminated by Tomcat or metro without notifying the client

Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread André Warnier
Hi. It dos not look to me like the problem is in Tomcat per se, but rather in the application running inside of Tomcat, and/or the client application. Let me explain what leads me to that supposition : - according to (1) and (2) below, the SOAP request was sent by the client, received by

Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Alec Swan
Hello, I agree that this is not a bug in Tomcat code, but I would appreciate any help with troubleshooting this. Let me tell you about our app. We have a thousands of Metro SOAP clients which hit our Tomcat server. Some SOAP HTTP requests take over an hour to process because queries take a very

Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Rainer Jung
On 04.08.2011 18:26, Alec Swan wrote: Hello, We are experiencing a problem on our production servers causing our HTTP clients to hang. I apologize for cross-posting with Metro forum but this is a critical problem for us. It looks like client SOAP HTTP requests get dropped/terminated by

Re: Log ownership when running Tomcat using jsvc

2011-08-04 Thread Rainer Jung
On 04.08.2011 09:44, Mladen Turk wrote: On 08/03/2011 10:11 PM, Jorge Medina wrote: I run Tomcat in a Solaris 10 SPARC machine using jsvc through a init script. jsvc is started by root, but I specify the -user option to change to the application user. I use the option -outfile and -errfile

RE: Who ate my Connection reset by peer SocketException?

2011-08-04 Thread Debashis Roy
Nothing in between browser and tomcat... direct connection from IE to 8080. Date: Thu, 4 Aug 2011 18:19:58 +0200 From: a...@ice-sa.com To: users@tomcat.apache.org Subject: Re: Who ate my Connection reset by peer SocketException? Debashis Roy wrote: Hi, Trying something which

Re: 503 error - service not available

2011-08-04 Thread Rainer Jung
On 04.08.2011 04:28, Dave Filchak wrote: Not sure what happened here. The app was working just fine until today. I am getting a 503 Service temporarily unavailable error when trying to connect to a tomcat site using Apache as the front end and mod_jk connectors. I have verified that tomcat

Re: Tomcat not releasing threads on Solaris 10

2011-08-04 Thread Rainer Jung
On 04.08.2011 04:28, Igor Cicimov wrote: Maybe try to use cachesize ajp13 property in worker.properties together with cache_timeout to limit the apache thread count towards tomcat. If cachesize is not set, the connection cache support is disabled. So sounds like cache_timeout doesn't have any

Re: Tomcat not releasing threads on Solaris 10

2011-08-04 Thread Dante Bell
Hi Igor Chuck, I don't think I specified, but they are running prefork 2.2 (updated blog to show this: http://wp.me/plPvN-ai) So cachesize has been deprecated and is now connection_pool_size. The notes state that when running Apache prefork, this value must be 1 ! I've asked them to try using

Re: Modular Deployment

2011-08-04 Thread Rainer Jung
On 04.08.2011 12:44, spr...@gmx.eu wrote: Hi, I have an application which has a core app, some optional modules and config files. Until now I deploy the app into /webapps (NOT as war-File), copy needed optional modules into WEB-INF/classes or lib and maintain config files outside of

Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Rainer Jung
On 04.08.2011 19:34, Alec Swan wrote: Hello, I agree that this is not a bug in Tomcat code, but I would appreciate any help with troubleshooting this. Let me tell you about our app. We have a thousands of Metro SOAP clients which hit our Tomcat server. Some SOAP HTTP requests take over

Re: Tomcat not releasing threads on Solaris 10

2011-08-04 Thread Rainer Jung
On 04.08.2011 19:44, Dante Bell wrote: Hi Igor Chuck, I don't think I specified, but they are running prefork 2.2 (updated blog to show this: http://wp.me/plPvN-ai) So cachesize has been deprecated and is now connection_pool_size. The notes state that when running Apache prefork, this

Re: Who ate my Connection reset by peer SocketException?

2011-08-04 Thread David kerber
On 8/4/2011 1:38 PM, Debashis Roy wrote: Nothing in between browser and tomcat... direct connection from IE to 8080. Not even a router? What about the windows firewall? Date: Thu, 4 Aug 2011 18:19:58 +0200 From: a...@ice-sa.com To: users@tomcat.apache.org Subject: Re: Who ate my

Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread André Warnier
Alec Swan wrote: Hello, I agree that this is not a bug in Tomcat code, but I would appreciate any help with troubleshooting this. Let me tell you about our app. We have a thousands of Metro SOAP clients which hit our Tomcat server. Some SOAP HTTP requests take over an hour to process because

RE: Modular Deployment

2011-08-04 Thread spring
Maybe the virtualWebappLoader is interesting for you: http://tomcat.apache.org/tomcat-7.0-doc/config/loader.html#Vir tualWebappLoader%20Implementation Yes, I thought that this will be the solution for tomcat 7. It already exists in Tomcat 6 but was made official and documented in Tomcat

Defect in parsing connectionProperties in a Resource declaration?

2011-08-04 Thread Jason Pringle
We're configuring a datasource like so in server.xml: Resource name=jdbc/UCPPool auth=Container factory=oracle.ucp.jdbc.PoolDataSourceImpl type=oracle.ucp.jdbc.PoolDataSource description=UCP Pool in Tomcat

Re: 503 error - service not available

2011-08-04 Thread Brendon
On 08/04/2011 04:31 AM, Pid wrote: On 04/08/2011 03:38, Igor Cicimov wrote: Obviously apache can't connect to tomcat. Any firewall/load balancer changes maybe done last night between apache and tomcat? Can you access tomcat apps bypassing apache? Can you telnet to tomcat server on the tomcat

Re: 503 error - service not available

2011-08-04 Thread Pid
On 04/08/2011 21:36, Brendon wrote: From what I gether from this thread is sounds like the Apache web server is not active and the problem is not ApacheTomcat. If HTTPD wasn't active there'd be nothing in the mod_jk log and no 503 response... p

Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Alec Swan
Thank you all for your suggestions. I've been sniffing TCP traffic all day today and noticed the following pattern: 1. Client sends an HTTP post to Tomcat 2. Tomcat receives the request and takes 15 minutes to process it 3. Tomcat eventually completes the request and attempts to write it back to

Re: Tomcat 6.0.32 ClientAbortException java.io.IOException

2011-08-04 Thread Alec Swan
Here is a little more information. Tomcat was processing HTTP request for 10 minutes sharp and was eventually ready to send the response back to the client. So, Tomcat generated a TCP [FIN, ACK] message with a valid SOAP response. However, the very next TCP message contained the following error:

Re: 503 error - service not available

2011-08-04 Thread Igor Cicimov
Anything in the system log? Running out of file descriptors maybe? Igor On Aug 5, 2011 7:07 AM, Pid p...@pidster.com wrote: On 04/08/2011 21:36, Brendon wrote: From what I gether from this thread is sounds like the Apache ... If HTTPD wasn't active there'd be nothing in the mod_jk log and no

Re: Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5

2011-08-04 Thread 刘铎
I'm using Tomcat 6.0.24. As I know, jsessionid could be returned to the tomcat by urlrewriting or cookie. Why not use cookie instead? 2011/8/4 Javed javed.at...@gmail.com: I was using Tomcat 5.0.28 before using Tomcat 7.0.16. The application was working perfectly fine. Recently, we have

Re: Log ownership when running Tomcat using jsvc

2011-08-04 Thread Jorge Medina
Right, I can't understand why the JULI files are owned by root. any ideas? If I remember correctly, Tomcat uses Java logging by default. I am trying to remember why I switched to JULI (maybe to rotate the logs), but I guess I can try to switch to log4j and see if I get a different outcome. On

RE: Who ate my Connection reset by peer SocketException?

2011-08-04 Thread Debashis Roy
Thanks for the lead guys. Looks like something is there could be the windows firewall. Both tomcat and browser are on the same machine. Tried accessing the service using localhost, got the exception. Tried using IP address, no exception :(. Any trick using which I can get this exception

Re: Log ownership when running Tomcat using jsvc

2011-08-04 Thread Rainer Jung
On 05.08.2011 04:46, Jorge Medina wrote: Right, I can't understand why the JULI files are owned by root. any ideas? If I remember correctly, Tomcat uses Java logging by default. I am trying to remember why I switched to JULI (maybe to rotate the logs), but I guess I can try to switch to