Re: Connecting Tomcat to a database

2010-07-09 Thread Christian Bruckhoff
Hi. Am 08.07.2010 23:36, schrieb Caldarale, Charles R: From: Christian Bruckhoff [mailto:christian.bruckh...@gmx.de] Subject: Re: Connecting Tomcat to a database Sorry was in a haste, forgot much more than this. :-/ - Tomcat 7.0.0 - Java 1.6 Update 20 - Windows XP SP3 - Wanted to use DB for

Re: Tomcat crashed after servicing too many HTTPS connection

2010-07-09 Thread Pid
On 09/07/2010 03:26, Goo Sam Kong wrote: Hi Chuck, I do not have a choice on my server because I can not upgrade the Tomcat and JVM. The server is a proprietary security hardware, no way to upgrade except the hardware vendor release new patch for that. Thank you for your reply, :-). It's

problem while deploying

2010-07-09 Thread kalasagar reddy battepati
Hi i am using tomcat 6.0.14 and my java_home is jdk1.6.0_20 i am deploying my web application in 8080 port it's giving succesful deployment . but when i checked WEB-INF folder in tomcat/webapps/myappln/ its not there what may be the problem please help me Thanks in advance -- This

problem while deploying

2010-07-09 Thread kalasagar reddy battepati
Hi i am using tomcat 6.0.14 and my java_home is jdk1.6.0_20 i am deploying my web application in 8080 port it's giving succesful deployment . but when i checked WEB-INF folder in tomcat/webapps/myappln/ its not there what may be the problem please help me Thanks in advance kalasagar

Re: Connecting Tomcat to a database

2010-07-09 Thread Pid
On 09/07/2010 08:01, Christian Bruckhoff wrote: Hi. Am 08.07.2010 23:36, schrieb Caldarale, Charles R: From: Christian Bruckhoff [mailto:christian.bruckh...@gmx.de] Subject: Re: Connecting Tomcat to a database Sorry was in a haste, forgot much more than this. :-/ - Tomcat 7.0.0 - Java

Problems with parsing html with servlet

2010-07-09 Thread John Byrne
Hi Please find listed below thesituation with tomcat installation. I can deploy html pages via the manager service or http://localhost/comlinks/mypage The requested resource (/ukjava1900) is not available. I list below the changes I have made to sotware. Thank you for your help in preious

Tomcat windows service

2010-07-09 Thread Mikolaj Rydzewski
Hi, I was trying to create izpack.org installer for Tomcat and my application. There was only one problem - how to install Tomcat as a Windows service. Startup.bat and shutdown.bat were working, but I need service to be running. Finally, after investigation, googling, etc, I have found a

Re: Problems with parsing html with servlet

2010-07-09 Thread Mark Thomas
On 09/07/2010 09:15, John Byrne wrote: webapps\comlinks\web-inf\web.xml It is WEB-INF, not web-inf. Case matters. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: Problems with parsing html with servlet

2010-07-09 Thread André Warnier
I seem to recall that you have already been told this several times, but just to remind you : /ukjava1900 is NOT equal to /UkJava1900 like in FORM action=/ukjava1900 versus url-pattern/UkJava1900/url-pattern In addition, you have also been told already that proper HTML requires that

Re: Tomcat windows service

2010-07-09 Thread Mikolaj Rydzewski
On 07/09/2010 10:23 AM, Mikolaj Rydzewski wrote: I was trying to create izpack.org installer for Tomcat and my application. There was only one problem - how to install Tomcat as a Windows service. I tried various Tomcat versions, 6.0.18, 6.0.20, 6.0.26. I gave up with 6.0.20. Installing

Re: Problems with parsing html with servlet

2010-07-09 Thread John Byrne
Hi Mark It is WEB-INF in my directory structure, apollogies. John On 9 July 2010 09:24, Mark Thomas ma...@apache.org wrote: On 09/07/2010 09:15, John Byrne wrote: webapps\comlinks\web-inf\web.xml It is WEB-INF, not web-inf. Case matters. Mark

Re: Problems with parsing html with servlet

2010-07-09 Thread John Byrne
Hi Andre The message did get through, apologies for the error. John On 9 July 2010 09:27, André Warnier a...@ice-sa.com wrote: -- Mult-i-tel better by design. http://www.multitel.co.uk tel: 44(0)151 548 8122 fax: 44(0)709 210 1464 skype jcbyrne

Re: Tomcat windows service

2010-07-09 Thread Mladen Turk
On 07/09/2010 10:23 AM, Mikolaj Rydzewski wrote: Hi, I was trying to create izpack.org installer for Tomcat and my application. There was only one problem - how to install Tomcat as a Windows service. Startup.bat and shutdown.bat were working, but I need service to be running. Finally, after

Re: Tomcat windows service

2010-07-09 Thread Mark Thomas
On 09/07/2010 09:34, Mikolaj Rydzewski wrote: On 07/09/2010 10:23 AM, Mikolaj Rydzewski wrote: I was trying to create izpack.org installer for Tomcat and my application. There was only one problem - how to install Tomcat as a Windows service. I tried various Tomcat versions, 6.0.18, 6.0.20,

Re: Updating webapps classes

2010-07-09 Thread Gabriele Bulfon
Hello, thx for your answers. I understand your points, but in a non cluster situation, updating the application is a pain, because I'm forced to ask people to exit, update and restart. It may be a possible option to do what I said, and would be my responsability to know if an update may lead to

Tomcat 7.0.0 Beta1 - AsyncListener

2010-07-09 Thread spring
Hello, I have a AsyncListener registered for an AsyncContext. Everytime I call AsyncContext#complete fist onError gets called (throwable is null) and then onComplete(). Is this a known Bug or did I made something wrong? Here is the relevant Code: member vars: private final

Re: [ANN] Apache Tomcat 6.0.28 released

2010-07-09 Thread jean-frederic clere
The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.28 stable. This release includes bug-fixes over Apache Tomcat 6.0.26. Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5, including support for the new Servlet 2.5 and JSP 2.1 specifications, a refactored

Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Fernando Morgenstern
Hello, I'm running the following version of tomcat: Server version: Apache Tomcat/6.0-snapshot Server built: Nov 15 2009 11:02:53 Server number: 6.0.0.0 OS Name:Linux OS Version: 2.6.24-9-pve Architecture: i386 JVM Version:1.6.0_12-b04 JVM Vendor: Sun Microsystems Inc.

Re: problem while deploying

2010-07-09 Thread Pid
On 09/07/2010 08:13, kalasagar reddy battepati wrote: Hi i am using tomcat 6.0.14 Why not upgrade to the newly release 6.0.28? and my java_home is jdk1.6.0_20 i am deploying my web application in 8080 port What are you deploying, a .war file, perhaps? How are you deploying it, using

RE: Connecting Tomcat to a database

2010-07-09 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Connecting Tomcat to a database Most unfortunate that they're suggesting very, very out of date practices. Put the MySQL JDBC driver in Tomcat's lib directory, not common/lib (that was changed quite some time ago). Place the

Re: [ANN] Apache Tomcat 6.0.28 released

2010-07-09 Thread Electronjockey
I take it the change log for 28 will be up soon? -Original Message- From: jean-frederic clere jfcl...@gmail.com To : Tomcat Developers List d...@tomcat.apache.org, annou...@apache.org, Tomcat Users List users@tomcat.apache.org, annou...@tomcat.apache.org Sent: Fri Jul 09 8:42:16 2010

Re: [ANN] Apache Tomcat 6.0.28 released

2010-07-09 Thread Mark Thomas
On 09/07/2010 14:32, Electronjockey wrote: I take it the change log for 28 will be up soon? It takes ~1 hour for changes made on the system where the web site is edited to replicate to the master EU and US servers. The change was made about 10 mins ago so it should be up in the next hour. Mark

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Dave Cherkassky
Fernando: Just a wild guess -- whenever I've had problems with unreadable WAR/JAR files, it was because they were checked into CVS as text rather than binary. So the first thing I'd do is verify the integrity of the WAR file -- did it get corrupted along the way? Good luck... -- Dave

RE: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Caldarale, Charles R
From: Fernando Morgenstern [mailto:ferna...@consultorpc.com] Subject: Error: Invalid or unreadable WAR file : error in opening zip file I'm running the following version of tomcat: Server version: Apache Tomcat/6.0-snapshot Server built: Nov 15 2009 11:02:53 Server number: 6.0.0.0

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Mikolaj Rydzewski
On 07/09/2010 03:35 PM, Dave Cherkassky wrote: Just a wild guess -- whenever I've had problems with unreadable WAR/JAR files, it was because they were checked into CVS as text rather than binary. Or... I used to FTP war files to server once. Doing that on local network was ok. But doing that

Re: Connecting Tomcat to a database

2010-07-09 Thread Pid
On 09/07/2010 14:27, Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: Connecting Tomcat to a database Most unfortunate that they're suggesting very, very out of date practices. Put the MySQL JDBC driver in Tomcat's lib directory, not common/lib (that was changed

RE: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Caldarale, Charles R
From: Mikolaj Rydzewski [mailto:m...@ceti.pl] Subject: Re: Error: Invalid or unreadable WAR file : error in opening zip file I used to FTP war files to server once. Doing that on local network was ok. But doing that to remote server caused similiar error to appear. Simply Tomcat discovered

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Tobias Crefeld
Am Fri, 9 Jul 2010 10:21:09 -0300 schrieb Fernando Morgenstern ferna...@consultorpc.com: SEVERE: Error starting static Resources java.lang.IllegalArgumentException: Invalid or unreadable WAR file : error in opening zip file I've verified and tomcat user does have read permissions to war

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Fernando Morgenstern
Hello, Thanks for all replies! Let me reply to some of them: * Only webapps folder is shared between servers using glusterfs. * Tomcat version is a bit old but it has been working for months without any issues. So i don't think it is a case of upgrading it. * War files does not seem to be

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Mikolaj Rydzewski
On 07/09/2010 03:45 PM, Caldarale, Charles R wrote: One way around that is to FTP the file with a different extension than .war. Once the file is fully present on the target, rename it with the proper extension. I know that, Chuck :-) I made it once, then I used script to rsync and update

RE: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Caldarale, Charles R
From: Fernando Morgenstern [mailto:ferna...@consultorpc.com] Subject: Re: Error: Invalid or unreadable WAR file : error in opening zip file * Only webapps folder is shared between servers using glusterfs. That's a problem. Multiple Tomcats may try to expand .war files simultaneously,

RE: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Caldarale, Charles R
From: Mikolaj Rydzewski [mailto:m...@ceti.pl] Subject: Re: Error: Invalid or unreadable WAR file : error in opening zip file Once the file is fully present on the target, rename it with the proper extension. I know that, Chuck :-) Sorry, didn't mean to imply you weren't aware of the

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Rainer Jung
On 09.07.2010 15:21, Fernando Morgenstern wrote: Hello, I'm running the following version of tomcat: Server version: Apache Tomcat/6.0-snapshot Server built: Nov 15 2009 11:02:53 Server number: 6.0.0.0 OS Name:Linux OS Version: 2.6.24-9-pve Architecture: i386 JVM Version:

securing tomcat before public internet access

2010-07-09 Thread Johan Martinez
Hi, I need to allow public internet access to my tomcat server / web application. Although it would be restricted to set of trusted IPs initially, later it may need to be open for public access. Is there any guide for securing tomcat setup or steps needed before allowing public access. Right now

Re: securing tomcat before public internet access

2010-07-09 Thread Mark Thomas
On 09/07/2010 15:38, Johan Martinez wrote: Hi, I need to allow public internet access to my tomcat server / web application. Although it would be restricted to set of trusted IPs initially, later it may need to be open for public access. Is there any guide for securing tomcat setup or steps

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Markus Schönhaber
09.07.2010 15:38, Caldarale, Charles R: From: Fernando Morgenstern [mailto:ferna...@consultorpc.com] Subject: Error: Invalid or unreadable WAR file : error in opening zip file I'm running the following version of tomcat: Server version: Apache Tomcat/6.0-snapshot Server built: Nov 15

Re: Problems with parsing html with servlet

2010-07-09 Thread John Byrne
Hi Andre Did not receive response to original post. Inability to evoke a response for output from servlet located on tomcat after parseing a html form? Details in original post. On 9 July 2010 09:38, John Byrne jbmulti...@gmail.com wrote: Mult-i-tel better by design. http://www.multitel.co.uk

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Tobias Crefeld
Am Fri, 9 Jul 2010 11:01:00 -0300 schrieb Fernando Morgenstern ferna...@consultorpc.com: * Only webapps folder is shared between servers using glusterfs. I don't think that it is a good idea if you put your webapps-directory on a shared storage - especially if you use funny things like

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread Fernando Morgenstern
Em 09/07/2010, às 11:05, Caldarale, Charles R escreveu: From: Fernando Morgenstern [mailto:ferna...@consultorpc.com] Subject: Re: Error: Invalid or unreadable WAR file : error in opening zip file * Only webapps folder is shared between servers using glusterfs. That's a problem. Multiple

Re: Error: Invalid or unreadable WAR file : error in opening zip file

2010-07-09 Thread André Warnier
Fernando Morgenstern wrote: Em 09/07/2010, às 11:05, Caldarale, Charles R escreveu: From: Fernando Morgenstern [mailto:ferna...@consultorpc.com] Subject: Re: Error: Invalid or unreadable WAR file : error in opening zip file * Only webapps folder is shared between servers using glusterfs.

[SECURITY] CVE-2010-2227: Apache Tomcat Remote Denial Of Service and Information Disclosure Vulnerability

2010-07-09 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CVE-2010-2227: Apache Tomcat Remote Denial Of Service and Information Disclosure Vulnerability Severity: Important Vendor: The Apache Software Foundation Versions Affected: Tomcat 5.5.0 to 5.5.29 Tomcat 6.0.0 to 6.0.27 Tomcat 7.0.0

Re: Problems with parsing html with servlet

2010-07-09 Thread Pid
On 09/07/2010 09:15, John Byrne wrote: Hi Please find listed below thesituation with tomcat installation. I can deploy html pages via the manager service or http://localhost/comlinks/mypage The requested resource (/ukjava1900) is not available. I list below the changes I have made to

RE: Connecting Tomcat to a database

2010-07-09 Thread Propes, Barry L
Not totally sure if this matters, maybe it doesn't, but I notice this line on the error: Failed to resolved external DataSource at java :comp/env/jdbc/TestDB. I have a similar reference, while using Oracle, but reference as Context envCtx = (Context) initCtx.lookup(java:comp/env);

tomcat datasource, find active connections

2010-07-09 Thread Ashish Kulkarni
Hi I have following in context.xml, and it works fine. But i would like to find how many active connections are there in data source or how many total connections are there? 1 is it possible to do so? 2 Can i change type javax.sql.DataSource to com.ibm.as400.access.AS400JDBCDataSource, as this

Re: Connecting Tomcat to a database

2010-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, On 7/9/2010 12:47 PM, Propes, Barry L wrote: Not totally sure if this matters, maybe it doesn't, but I notice this line on the error: Failed to resolved external DataSource at java :comp/env/jdbc/TestDB. I have a similar reference,

Re: Problems with parsing html with servlet

2010-07-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 7/9/2010 4:15 AM, John Byrne wrote: The requested resource (/ukjava1900) is not available. [snip] servlet-mapping servlet-nameUkJava1900/servlet-name url-pattern/UkJava1900/url-pattern /servlet-mapping As others have

Re: Problems with parsing html with servlet

2010-07-09 Thread John Byrne
Hi Mark, Andre et al Sincere thanks for your expert help. Pass on my help to your colleague who also helped. Kind Regards John - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: Problems with parsing html with servlet

2010-07-09 Thread André Warnier
John Byrne wrote: Hi Mark, Andre et al Sincere thanks for your expert help. Pass on my help to your colleague who also helped. You are welcome, and we all read this list, so we don't need to copy eachother. Now, did you do as told and is it now working, or what ?

Tomcat 7.0, logging configuration

2010-07-09 Thread André Warnier
Hi. I notice in the online doc of Tomcat 7.0, page http://tomcat.apache.org/tomcat-7.0-doc/logging.html at the end of the first big box on the page, this paragraph : # For example, set the com.xyz.foo logger to only log SEVERE # messages: #org.apache.catalina.startup.ContextConfig.level = FINE

Re: tomcat datasource, find active connections

2010-07-09 Thread Pid
On 09/07/2010 20:03, Ashish Kulkarni wrote: Hi I have following in context.xml, and it works fine. But i would like to find how many active connections are there in data source or how many total connections are there? 1 is it possible to do so? 2 Can i change type javax.sql.DataSource to

Re: Tomcat 7.0, logging configuration

2010-07-09 Thread Pid
On 09/07/2010 22:32, André Warnier wrote: Hi. I notice in the online doc of Tomcat 7.0, page http://tomcat.apache.org/tomcat-7.0-doc/logging.html at the end of the first big box on the page, this paragraph : # For example, set the com.xyz.foo logger to only log SEVERE # messages:

[ANN] Apache Tomcat 5.5.30 released

2010-07-09 Thread Jim Jagielski
The Apache Tomcat Team announces the immediate availability of Apache Tomcat 5.5.30 stable. Apache Tomcat 5.5.30 is primarily a security and bug fix release. All users of older versions of the Tomcat 5.5 family should upgrade to 5.5.30. Please refer to the change log for the list of changes:

RE: Connecting Tomcat to a database

2010-07-09 Thread Caldarale, Charles R
From: Christian Bruckhoff [mailto:christian.bruckh...@gmx.de] Subject: Re: Connecting Tomcat to a database ERROR - GeronimoLog.error(108) | Failed to resolved external DataSource at java:comp/env/jdbc/TestDB. javax.naming.NameNotFoundException: Name jdbc is not bound in this Context Any

RE: Tomcat 7.0, logging configuration

2010-07-09 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Tomcat 7.0, logging configuration On 09/07/2010 22:32, André Warnier wrote: I believe the same section is also part of the logging.properties file distributed with Tomcat. Might not this 7.0 release be the perfect occasion to make

when memory leak, tomcat can't accept requests?

2010-07-09 Thread jikai
Hi all: Out web site use Nginx infront of tomcat6.0.28, nio connector, in heavy load running about 24 hours, tomcat can't accept request, we must restart tomcat . check nginx error log, there are lots of Connection timed out, print tomcat jstack, found most tomcat threads is TIMED_WAITING,