RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-13 Thread Rohan Kadam
Hi All, I tried again. And still not successful, please find the stack trace below - INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect Jul 13, 2011 12:10:36 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry INFO:

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-13 Thread André Warnier
Rohan, what you have never clearly explained until now in this rather long thread, is what you are exactly trying to do. Is it : a) an external application written in Java, which is trying to connect to Tomcat ? (and the log lines below are from the logfile of that application) OR b) is

RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-13 Thread Rohan Kadam
I really apologize for the confusion created. We are having an application, which is deployed on tomcat. Rather we are shipping the application with tomcat. After extraction (complete installation), the application is placed under the webapps directory. The logs that I have shared is from the

RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-13 Thread Caldarale, Charles R
From: Rohan Kadam [mailto:roha...@cybage.com] Subject: RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14) I tried again. And still not successful, please find the stack trace below - INFO: I/O exception (java.net.ConnectException) caught when processing request:

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-13 Thread André Warnier
Rohan Kadam wrote: I really apologize for the confusion created. We are having an application, which is deployed on tomcat. Rather we are shipping the application with tomcat. After extraction (complete installation), the application is placed under the webapps directory. The logs that I

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-13 Thread André Warnier
Caldarale, Charles R wrote: From: Rohan Kadam [mailto:roha...@cybage.com] Subject: RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14) I tried again. And still not successful, please find the stack trace below - INFO: I/O exception (java.net.ConnectException) caught when

RE: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-13 Thread Rohan Kadam
Hi André, Yes, whatever your understanding is correct. And also the connector tag is inside of Tomcat B. Thanks. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Wednesday, July 13, 2011 4:52 PM To: Tomcat Users List Subject: Re: Tomcat is not able to connect to

Re: Tomcat is not able to connect to IPV4 (Tomcat Version : 7.0.14)

2011-07-13 Thread André Warnier
Rohan Kadam wrote: Hi André, Yes, whatever your understanding is correct. And also the connector tag is inside of Tomcat B. Ok, then Charles' earlier message was correct, and the problem has nothing to do with Tomcat per se. Your web application A makes its own TCP connection to webserver

Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-07-13 Thread Lataxes, Karl
We are attempting to run identical servlets under several Tomcat 7.0.8 nodes behind a load balancer (Apache 2.0.54 using mod_jk), but we have been unable to get sticky sessions to work. Initial requests are forwarded to a node as expected, but subsequent requests from the same client are being

mod_jk question about lingering close_waits

2011-07-13 Thread Edward Quick
Hi, Apologies in advance if this is the wrong mailing list. I was unable to find one specific to mod_jk and this looked the most relevant. I have the following apache tomcat server configuration set up: Apache 2.2.3 , mod_jk 1.2.32 , and tomcat 6.0.32 running HelloWorld.war If I send a

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-07-13 Thread Pid
On 13/07/2011 14:37, Lataxes, Karl wrote: We are attempting to run identical servlets under several Tomcat 7.0.8 nodes behind a load balancer (Apache 2.0.54 using mod_jk), but we have been unable to get sticky sessions to work. Initial requests are forwarded to a node as expected, but

[SECURITY] CVE-2011-2526 Apache Tomcat Information disclosure and availability vulnerabilities

2011-07-13 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2011-2526: Apache Tomcat Information disclosure and availability vulnerabilities Severity: low Vendor: The Apache Software Foundation Versions Affected: Tomcat 7.0.0 to 7.0.18 Tomcat 6.0.0 to 6.0.32 Tomcat 5.5.0 to 5.0.33

Re: Terminating Timer Thread Gracefully

2011-07-13 Thread Pid
On 12/07/2011 20:47, Terence M. Bandoian wrote: Hi, Kris- I tried using ScheduledExecutorService but ran into the same problem. After awaiting termination: executorService.shutdown(); try { while (

Re: [SECURITY] CVE-2011-2526 Apache Tomcat Information disclosure and availability vulnerabilities

2011-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Great catch to all who were involved in discovery and mitigation of this vulnerability. Since the APR flavor of this vulnerability uses native code to crash the JVM and/or read files without asking the SecurityManager for permission, does that

Re: Terminating Timer Thread Gracefully

2011-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terence, On 7/12/2011 3:47 PM, Terence M. Bandoian wrote: executorService.shutdown(); try { while ( !executorService.awaitTermination( 1, TimeUnit.SECONDS ) ); Thread.sleep( 1000 ); } catch ( InterruptedException ie ) { } We use a

Session cookie max age

2011-07-13 Thread Josh Simmons
Hello, We have recently upgraded our tomcats to Tomcat7 in order to gain the new exposure to the configuration of the session cookie, namely the max age property. I had tried reading posts about getting it to work with tomcat6 but writing multiple cookies to the request caused problems for

Re: [SECURITY] CVE-2011-2526 Apache Tomcat Information disclosure and availability vulnerabilities

2011-07-13 Thread Mark Thomas
On 13/07/2011 17:14, Christopher Schultz wrote: All, Great catch to all who were involved in discovery and mitigation of this vulnerability. Konstantin found the problems - he deserves most of the credit. Since the APR flavor of this vulnerability uses native code to crash the JVM and/or

RE: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-07-13 Thread Lataxes, Karl
We're not using cookies. Our application is not web based, but accepts HTTP PUTS via client requests that enter our network from external sources. We are not URL encoding, as our clients are not configured to accept it. If we have to include URL encoding, both our client and server

Re: Session cookie max age

2011-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, On 7/13/2011 2:14 PM, Josh Simmons wrote: We tried to set the cookie max age to 3 hours, the exact same time as our session timeout. So, this is a non-session cookie? However, I was extremely surprised that the session cookie didn't get

Re: [SECURITY] CVE-2011-2526 Apache Tomcat Information disclosure and availability vulnerabilities

2011-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 7/13/2011 2:28 PM, Mark Thomas wrote: No, since all that code runs in Tomcat's security context which has read everything permissions (by default) anyway. Logically, if a system admin doesn't want Tomcat to read those files, they wouldn't

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-07-13 Thread Mark Thomas
On 13/07/2011 19:39, Lataxes, Karl wrote: We're not using cookies. Our application is not web based, but accepts HTTP PUTS via client requests that enter our network from external sources. We are not URL encoding, as our clients are not configured to accept it. If we have to include URL

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 7/13/2011 3:12 PM, Mark Thomas wrote: On 13/07/2011 19:39, Lataxes, Karl wrote: We're not using cookies. Our application is not web based, but accepts HTTP PUTS via client requests that enter our network from external sources. We are

Re: Comet over HTTPS: END event recieved immeidately for the first few times

2011-07-13 Thread Filip Hanik - Dev Lists
is it possible that when you turn on SSL, you are using the regular BIO connector when you use SSL and Comet is not supported by that connector. best Filip On 7/11/2011 11:05 AM, Sudeep Pradhan wrote: Hi Filip, I have tried the app with tomcat 6.0.32 and 7.0.16, and the result is the same. I

Re: Tomcat Pool and XA datasource

2011-07-13 Thread Filip Hanik - Dev Lists
you've misconfigured it. the driverClassName would have to be a driver. Using XA data sources needs to create the datasource for those connections first. There is an example towards the bottom of http://www.tomcatexpert.com/blog/2010/04/01/configuring-jdbc-pool-high-concurrency Filip On

RE: Comet over HTTPS: END event recieved immeidately for the first few times

2011-07-13 Thread Sudeep Pradhan
Hi Filip, Thanks for the reply. I don't think that I am using BIO connector for SSL. I don't see any such option in the server.xml. The connector is as follows: Connector protocol=org.apache.coyote.http11.Http11NioProtocol port=8443 minSpareThreads=5 maxSpareThreads=75

RE: Session cookie max age

2011-07-13 Thread Josh Simmons
I was afraid I wasn't being specific enough - sorry. session-config session-timeout180/session-timeout cookie-config max-age 10800 /max-age /cookie-config /session-config We do not want to use the default cookie max age of -1 for our session cookie. We

Re: mod_jk question about lingering close_waits

2011-07-13 Thread André Warnier
Hi. I am not the one who can really answer your question, but 1) this is the right list for Apache/Tomcat connectors (mod_jk among them) 2) a question : do these CLOSE_WAIT sockets bother you for some specific reason ? In a totally different context, I have had problems with Linux systems

Re: Session cookie max age

2011-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh, On 7/13/2011 5:15 PM, Josh Simmons wrote: I was afraid I wasn't being specific enough - sorry. session-config session-timeout180/session-timeout cookie-config max-age 10800 /max-age /cookie-config /session-config Can you post your

Set up multiple Tomcat Services with Shared tomcat

2011-07-13 Thread Anand HS
Hi, I have a set up where there are multiple catalina bases. All share a single tomcat parent. In this set up, can i still set up tomcat as service such that there is one service for each base. ? I am using the Tomcat 7.0.16 if thats important. Thanks, Anand

Re: Set up multiple Tomcat Services with Shared tomcat

2011-07-13 Thread Mark Thomas
On 13/07/2011 22:46, Anand HS wrote: Hi, I have a set up where there are multiple catalina bases. All share a single tomcat parent. In this set up, can i still set up tomcat as service such that there is one service for each base. ? Yes, just make sure you give them separate names. Mark

Re: AJP-APR failures on Tomcat 7.0.16 with ISAPI Redirector 1.2.32

2011-07-13 Thread Rainer Jung
On 13.07.2011 00:36, eurotrans-Verlag wrote: Hmm, could it be that the Java ImageIO is re-using OutputStreams after calling ImageIO.write(img, PNG, out), so that I'm getting such a IllegalStateException? (I think I read somewhere that Tomcat is recycling OutputStream objects) Maybe that

Re: mod_jk question about lingering close_waits

2011-07-13 Thread Rainer Jung
On 13.07.2011 23:16, André Warnier wrote: Hi. I am not the one who can really answer your question, but 1) this is the right list for Apache/Tomcat connectors (mod_jk among them) 2) a question : do these CLOSE_WAIT sockets bother you for some specific reason ? In a totally different

RE: AJP-APR failures on Tomcat 7.0.16 with ISAPI Redirector 1.2.32

2011-07-13 Thread eurotrans-Verlag
Hi Rainer, -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: Thursday, July 14, 2011 12:17 AM At least there was trouble about Java2D for several users in the past. One such issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=41772

RE: Session cookie max age

2011-07-13 Thread Josh Simmons
Our web.xml file minus listeners and servlet config. I also removed some taglib definitions. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app

Re: Set up multiple Tomcat Services with Shared tomcat

2011-07-13 Thread Konstantin Kolinko
2011/7/14 Mark Thomas ma...@apache.org: On 13/07/2011 22:46, Anand HS wrote: Hi, I have a set up where there are multiple catalina bases. All share a single tomcat parent. In this set up, can i still set up tomcat as service such that there is one service for each base. ? Yes, just make

Re: Session cookie max age

2011-07-13 Thread Konstantin Kolinko
2011/7/14 Josh Simmons josh.simm...@colinx.com: Our web.xml file minus listeners and servlet config.  I also removed some taglib definitions. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app    PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN    

Re: Terminating Timer Thread Gracefully

2011-07-13 Thread Terence M. Bandoian
On 1:59 PM, Pid wrote: ATimerTask is a private instance in AServletContextListener, is this necessary and if so, why? What logic is contained in ATimerTask? Are you overriding TimerTask.cancel() and do you catch InterruptedException? p Hi, Pid- For the sake of clarity, I'll repeat this

Re: Set up multiple Tomcat Services with Shared tomcat

2011-07-13 Thread Anand HS
Thanks Mark and Konstantin for tips. On Wed, Jul 13, 2011 at 5:16 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/7/14 Mark Thomas ma...@apache.org: On 13/07/2011 22:46, Anand HS wrote: Hi, I have a set up where there are multiple catalina bases. All share a single tomcat

Re: Terminating Timer Thread Gracefully

2011-07-13 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terence, On 7/12/2011 3:47 PM, Terence M. Bandoian wrote: executorService.shutdown(); try { while ( !executorService.awaitTermination( 1, TimeUnit.SECONDS ) ); Thread.sleep( 1000 ); } catch (

RE: Terminating Timer Thread Gracefully

2011-07-13 Thread Terence M. Bandoian
On 1:59 PM, Bill Miller wrote: The problem is obviously that the thread within the Timer needs time to properly shutdown, the non-obvious part is how long does it need, and how do you detect it's done?. Normally you would do a Thread.join() to ensure a thread has stopped before continuing,