Re: Log ownership when running Tomcat using jsvc

2011-08-04 Thread Mladen Turk
On 08/05/2011 04:46 AM, Jorge Medina wrote: Right, I can't understand why the JULI files are owned by root. any ideas? Hmm, seems like JULI creates log files before we call the org.apache.catalina.startup.Bootstrap On Solaris user is switched just before we call Bootstrap so any files created

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 t

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 reliably

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: 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 : > > 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

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" 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 503 response...

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: 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 t

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: 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 por

Defect in parsing connectionProperties in a Resource declaration?

2011-08-04 Thread Jason Pringle
We're configuring a datasource like so in server.xml: Notice that the connectionProperties attribute has leading and trailing semicolons. We've noticed that if they are not present, then the leading/trailing characters are stripped out of the value string. Moreover, additional properties

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 > Tomc

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 qu

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 "Connec

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, > t

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 o

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 > outsid

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 t

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

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 tomc

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 somethi

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 "-outf

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

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 l

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 Tom

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 tha

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 actua

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 -> St

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

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: 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 > On 08/03/2011 07:03 AM, Alexandre

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 all

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 conten

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" To: "Tomcat Users List" Sent

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

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 an

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 req