How to cancel upload?

2011-08-19 Thread Steffen Heil (Mailinglisten)
Hi Short question: How can I prevent tomcat to receive the complete post data? Long question: I have a servlet that uses apache commons fileupload to process incoming uploads using the streaming api. Short version of the code: InputStream inputStream; try { ServletFileUpload upload =

RE: Tomcat 7.0.8

2011-08-19 Thread Arunachalam, Manian
Team, We are migrating form tomcat 5x to 7.0.8 In Tomcat 5.0 we have the url pattern as below Here Path is user defined location. url = /path/path.QuerySWServlet; What we need to give for tomcat 7.0.8 version to use the same url pattern. Regards Manian

How to start tomcat5 with -security

2011-08-19 Thread Petr Hracek
Dear user, I am using tomcat 5.5.29 (I now that it is pretty old) but I would like to start them so that -security will be turn off. I am starting them over /usr/share/tomcat5/bin/catalina.sh start -security Could not load Logmanager org.apache.juli.ClassLoaderLogManager

Re: Tomcat 7.0.8

2011-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manian, On 8/19/2011 9:49 AM, Arunachalam, Manian wrote: We are migrating form tomcat 5x to 7.0.8 Why not 7.0.20? In Tomcat 5.0 we have the url pattern as below Here Path is user defined location. url = /path/path.QuerySWServlet; What we need

Re: How to start tomcat5 with -security

2011-08-19 Thread André Warnier
Petr Hracek wrote: Dear user, I am using tomcat 5.5.29 (I now that it is pretty old) but I would like to start them so that -security will be turn off. I think that by default it is turned off. I am starting them over /usr/share/tomcat5/bin/catalina.sh start -security Could not load

Re: Tomcat 6 getting error when trying to specify keystore

2011-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 8/18/2011 9:03 PM, Diep, David (OCTO-Contractor) wrote: Thanks everyone. There were two problems... the first being that: 1. Use the full path 2. The keystore password and the key password needs to be the same! I used the

RE: Tomcat 6 getting error when trying to specify keystore

2011-08-19 Thread Diep, David (OCTO-Contractor)
Hi Chris, Yes... the individual keys have their own password different from the keystore password. David Diep IBM Z Series Network Architect Office of the Chief Technology Officer Phone: 202.727.1475 | Fax: 202.727.3880 Email: david.d...@dc.gov | Website: www.octo.dc.gov 3919 Benning Road NE

Re: How to handle the AWT-Windows thread?

2011-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 8/18/2011 6:05 PM, Pid wrote: On 18/08/2011 22:22, Dan Armbrust wrote: Toolkit.getDefaultToolkit().createImage(new byte[]{}); which avoids Headless issues, but still kicks off the AWT-Windows thread. And since it is no longer tied to

Re: How to handle the AWT-Windows thread?

2011-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan, On 8/18/2011 5:22 PM, Dan Armbrust wrote: Toolkit.getDefaultToolkit().createImage(new byte[]{}); Simply calling getDefaultToolkit will do the trick: you don't have to waste time creating an image. I'll implement this in the

Migration Tomcat 5x to 7.0.8

2011-08-19 Thread Kumar, Kiran P
Team, We are migrating form tomcat 5x to 7.0.8 In Tomcat 5.0 we are defining the url below url = path/APReports/servlet/com.nielsenmedia.umi.ap.hwsw.QuerySWServlet; and sending the request using the ajax Like o.open(POST, url , true); So I am not getting any problem in Tomcat 5 In Tomcat7, I am

Re: Migration Tomcat 5x to 7.0.8

2011-08-19 Thread Konstantin Kolinko
2011/8/19 Kumar, Kiran P kiran.p.kumar...@nielsen.com Team, We are migrating form tomcat 5x to 7.0.8 In Tomcat 5.0 we are defining the url below url = path/APReports/servlet/com.nielsenmedia.umi.ap.hwsw.QuerySWServlet;  and sending the  request using the ajax Like o.open(POST, url ,

Re: How to start tomcat5 with -security

2011-08-19 Thread Konstantin Kolinko
2011/8/19 Petr Hracek phrac...@gmail.com: I am using tomcat 5.5.29 (I now that it is pretty old) but I would like to start them so that -security will be turn off. I am starting them over /usr/share/tomcat5/bin/catalina.sh start -security Could not load Logmanager

Re: How to handle the AWT-Windows thread?

2011-08-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dan and Pid, On 8/18/2011 6:05 PM, Pid wrote: On 18/08/2011 22:22, Dan Armbrust wrote: Toolkit.getDefaultToolkit().createImage(new byte[]{}); which avoids Headless issues, but still kicks off the AWT-Windows thread. Doesn't the leak

Connector Connection Timeout

2011-08-19 Thread Patrick Flaherty
Hi, I see that the default connection timeout for the Tomcat connector by default is set to 2 (20 sec). This has been the shipping default for 5.x, 6.x and 7.x (in the server.xml) The documentation describes the default timeout to be 6 (60 sec). Is the default value of 2 in the

Custom Realm - Tomcat 5.5 to Tomcat 7 Migration

2011-08-19 Thread Steve Ratay
I have a custom realm that is quite complex and uses a variety of third party libraries, including Spring.  In Tomcat 5.5, I placed the Realm and all of the JARs it depended upon in the server/lib directory.  This kept these classes in the Catalina class loader, which was not visible to any web

Re: Connector Connection Timeout

2011-08-19 Thread André Warnier
Patrick Flaherty wrote: Hi, I see that the default connection timeout for the Tomcat connector by default is set to 2 (20 sec). This has been the shipping default for 5.x, 6.x and 7.x (in the server.xml) The documentation describes the default timeout to be 6 (60 sec). Is the default

Re: Custom Realm - Tomcat 5.5 to Tomcat 7 Migration

2011-08-19 Thread Konstantin Kolinko
2011/8/19 Steve Ratay steve.ra...@yahoo.com: I have a custom realm that is quite complex and uses a variety of third party libraries, including Spring.  In Tomcat 5.5, I placed the Realm and all of the JARs it depended upon in the server/lib directory.  This kept these classes in the

Multiple Tomcat Instances with Multiple IPs

2011-08-19 Thread Vickie Troy-McKoy
Hi, I installed a 2nd tomcat instance. Instead of running it on different ports, we decided to run it on a different IP address. The IP address has been defined to the server and I made changes to server.xml; however, the page is not being displayed when I attempt to access the new tomcat

RE: Multiple Tomcat Instances with Multiple IPs

2011-08-19 Thread Caldarale, Charles R
From: Vickie Troy-McKoy [mailto:vtmc...@hotmail.com] Subject: Multiple Tomcat Instances with Multiple IPs Instead of running it on different ports, we decided to run it on a different IP address. Each Tomcat must still have a unique shutdown port configured in its Server element. In

RE: Multiple Tomcat Instances with Multiple IPs

2011-08-19 Thread Vickie Troy-McKoy
Thanks for your input; however, the very 1st time I ONLY changed ALL of the Connector ports to add address=xxx.xx.x.xx. However, when I tried to access the url, the page could not be displayed. I tried accessing it by the IP and the fqn. Only then, did I start playing with the Host name and

RE: Multiple Tomcat Instances with Multiple IPs

2011-08-19 Thread Caldarale, Charles R
From: Vickie Troy-McKoy [mailto:vtmc...@hotmail.com] Subject: RE: Multiple Tomcat Instances with Multiple IPs the very 1st time I ONLY changed ALL of the Connector ports to add address=xxx.xx.x.xx. Since you didn't change the shutdown port on the second Tomcat instance, it would not have

RE: Multiple Tomcat Instances with Multiple IPs

2011-08-19 Thread Vickie Troy-McKoy
It definitely started up clean; and I see why. The existing instance is using port 9005 on the shutdown connector. So, everything is coming up clean--no errors in the logs. The only change I made was adding the address element to the Connectors. I am using port 8005 in the 2nd instance

RE: Multiple Tomcat Instances with Multiple IPs

2011-08-19 Thread Caldarale, Charles R
From: Vickie Troy-McKoy [mailto:vtmc...@hotmail.com] Subject: RE: Multiple Tomcat Instances with Multiple IPs When I put in the DNS name or the IP address of the newly defined interface with the correct port in the browser, I get page can not be displayed. Use netstat -ap to make sure