Re: Updating webapps classes

2010-05-03 Thread Gabriele Bulfon
Hi, thanx for the interesting solution. Anyway, not always possible to run 2 tomcat instances because of memory requirements. Do you see any different solution with 1 tomcat only (or tomcat + apache)? Thx in advance, Gabriele. Gabriele Bulfon - Sonicle S.r.l. Tel +39 028246016 Int. 30 - Fax +39

minSpareThreads maxSpareThreads

2010-05-03 Thread Mario Splivalo
I am migrating application from tomcat 5.5 to tomcat 6.0 and I'm a bit confused about Connector configuration attributes. In 5.5 i had minSpareThreads and maxSpareThreads. Are those still used in 6.0? They are not listed in as attributes here:

Re: minSpareThreads maxSpareThreads

2010-05-03 Thread Pid
On 03/05/2010 09:29, Mario Splivalo wrote: I am migrating application from tomcat 5.5 to tomcat 6.0 and I'm a bit confused about Connector configuration attributes. In 5.5 i had minSpareThreads and maxSpareThreads. Are those still used in 6.0? They are not listed in as attributes here:

JPA privider in tomcat wbapp

2010-05-03 Thread Yucca Nel
I wish to use JPA RESOURCE _LOCAL in my tomcat webapp, does tomcat have a default JPA provider I can use in perssistence.xml?

Re: minSpareThreads maxSpareThreads

2010-05-03 Thread Mario Splivalo
Pid wrote: On 03/05/2010 09:29, Mario Splivalo wrote: I am migrating application from tomcat 5.5 to tomcat 6.0 and I'm a bit confused about Connector configuration attributes. In 5.5 i had minSpareThreads and maxSpareThreads. Are those still used in 6.0? They are not listed in as attributes

Failed to deploy application

2010-05-03 Thread Luís de Sousa
Hello, I'm trying to deploy an application that is located under the webapps directory. I'm using the http call: http://localhost:8080/manager/deploy?path=/var/lib/tomcat6/webapps/JSPTuttag=JSPTut And I'm getting this answer back: FAIL - Failed to deploy application at context path

Re: Updating webapps classes

2010-05-03 Thread André Warnier
Gabriele Bulfon wrote: Hi, thanx for the interesting solution. Anyway, not always possible to run 2 tomcat instances because of memory requirements. Do you see any different solution with 1 tomcat only (or tomcat + apache)? Gabriele, I think Peter gave you the only appropriate general answer.

Re: minSpareThreads maxSpareThreads

2010-05-03 Thread André Warnier
Mario Splivalo wrote: One just have to love Tomcat documentation :) Specially considering the price you pay for it. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: FW: General / Special cause under which TOMCAT Crash been noticed

2010-05-03 Thread David Smith
If your tomcat instance crashes, it'll be sudden and not anything the tomcat instance itself can do anything about. Try looking into a cron script or some other scheduled task external to tomcat. The script could make a request of tomcat every minute or so and restart it if it's down. Generally

Apache Tomcat 5.5.17 - Error in manager app - HTML-500 on clicking 'Server Status'

2010-05-03 Thread Saurabh Singh
Hi, I am running a few applications on Tomcat 5.5.17, I used to normally go to 'Tomcat Manager' App and click the 'Server Status' link on top right side of 'Application List' page to monitor thread counts, memory usage etc.. My OS is Fedora Core-6 (2.6.22.9-61.fc6PAE) This used to work well till

Re: Failed to deploy application

2010-05-03 Thread Jie Sheng Chua
Hi Luís de Sousa, Could you provide your OS: Tomcat Version: JDK: If you trying to deploy pointing it to a folder, you need to ensure that the folder have the needed permission. 2010/5/3 Luís de Sousa luis.a.de.so...@gmail.com Hello, I'm trying to deploy an application that is located under

RE: minSpareThreads maxSpareThreads

2010-05-03 Thread Caldarale, Charles R
From: Mario Splivalo [mailto:mario.spliv...@megafon.hr] Subject: Re: minSpareThreads maxSpareThreads So, if I don't use executor I can't set those attributes? Correct. One just have to love Tomcat documentation :) Please submit a patch for any doc improvements you'd like to see. - Chuck

Re: Apache Tomcat 5.5.17 - Error in manager app - HTML-500 on clicking 'Server Status'

2010-05-03 Thread Jie Sheng Chua
Hi Saurabh, Is the problem tomcat-wide or only your Manager App suffering from this problem? On Mon, May 3, 2010 at 7:48 PM, Saurabh Singh singh...@gmail.com wrote: Hi, I am running a few applications on Tomcat 5.5.17, I used to normally go to 'Tomcat Manager' App and click the 'Server

Re: minSpareThreads maxSpareThreads

2010-05-03 Thread Mario Splivalo
André Warnier wrote: Mario Splivalo wrote: One just have to love Tomcat documentation :) Specially considering the price you pay for it. Oh, that is so professional. So, it's cheap therefore it can be unprofessional? It's a joke, I hear you saying? Pardon my 'humor', I meant no offense.

RE: Apache Tomcat 5.5.17 - Error in manager app - HTML-500 on clicking 'Server Status'

2010-05-03 Thread Caldarale, Charles R
From: Saurabh Singh [mailto:singh...@gmail.com] Subject: Apache Tomcat 5.5.17 - Error in manager app - HTML-500 on clicking 'Server Status' I am running a few applications on Tomcat 5.5.17 As a first step, upgrade to a Tomcat that's less than four years old - many, many fixes have gone in

Re: minSpareThreads maxSpareThreads

2010-05-03 Thread Mario Splivalo
Caldarale, Charles R wrote: From: Mario Splivalo [mailto:mario.spliv...@megafon.hr] Subject: Re: minSpareThreads maxSpareThreads So, if I don't use executor I can't set those attributes? Correct. The documentation for executors mention just maxThreads and minSpareThreads, does that mean

RE: minSpareThreads maxSpareThreads

2010-05-03 Thread Caldarale, Charles R
From: Mario Splivalo [mailto:mario.spliv...@megafon.hr] Subject: Re: minSpareThreads maxSpareThreads There really is NO mention whatsoever about minSpareThreads and maxSpareThreads in documentation, using executors or not. That's simply not true; they're documented here:

Re: minSpareThreads maxSpareThreads

2010-05-03 Thread Mario Splivalo
Caldarale, Charles R wrote: From: Mario Splivalo [mailto:mario.spliv...@megafon.hr] Subject: Re: minSpareThreads maxSpareThreads There really is NO mention whatsoever about minSpareThreads and maxSpareThreads in documentation, using executors or not. That's simply not true; they're

RE: minSpareThreads maxSpareThreads

2010-05-03 Thread Caldarale, Charles R
From: Mario Splivalo [mailto:mario.spliv...@megafon.hr] Subject: Re: minSpareThreads maxSpareThreads The documentation for executors mention just maxThreads and minSpareThreads, does that mean that maxSpareThreads is completely obsolete? Correct. - Chuck THIS COMMUNICATION MAY CONTAIN

RE: JPA privider in tomcat wbapp

2010-05-03 Thread Caldarale, Charles R
From: Yucca Nel [mailto:yucca...@live.co.za] Subject: JPA privider in tomcat wbapp I wish to use JPA RESOURCE _LOCAL in my tomcat webapp, does tomcat have a default JPA provider I can use in perssistence.xml? I don't believe Tomcat 5.5 or 6.0 support such, since it's not in the 2.4 or 2.5

Re: Failed to deploy application

2010-05-03 Thread Luís de Sousa
On Mon, May 3, 2010 at 1:09 PM, Jie Sheng Chua chuajiesh...@gmail.com wrote: Hi Luís de Sousa, Could you provide your OS: Tomcat Version: JDK: Hi, sorry for not including this info, OS: Ubuntu 9.10 Tomcat: Apache Tomcat/6.0.20 JDK: OpenJDK Runtime Environment (IcedTea6 1.6.1)

Re: Failed to deploy application

2010-05-03 Thread Konstantin Kolinko
2010/5/3 Luís de Sousa luis.a.de.so...@gmail.com: I'm trying to deploy an application that is located under the webapps directory. I'm using the http call: http://localhost:8080/manager/deploy?path=/var/lib/tomcat6/webapps/JSPTuttag=JSPTut And I'm getting this answer back: FAIL - Failed

Re: General / Special cause under which TOMCAT Crash been noticed

2010-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 4/29/2010 1:36 PM, David kerber wrote: I don't know how to crash tomcat intentionally once it has started successfully, except for deleting or renaming files and folders it needs to run, which would require direct access to the server.

Re: Updating webapps classes

2010-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 4/30/2010 10:33 AM, Peter Crowther wrote: In normal use, Tomcat1 is running. The load balancer directs all users to Tomcat1. Tomcat2 could even be stopped. I would say that normal use would include both (or however many) instances

Re: The purpose of maxPostSize

2010-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/2/2010 6:48 AM, André Warnier wrote: It is there to avoid the possibility for some miscreant to overwhelm your server by sending it a POST request with a body of, for example, 10 Gigabyte, through a slow connection. In the absence of

Re: minSpareThreads maxSpareThreads

2010-05-03 Thread André Warnier
Mario Splivalo wrote: André Warnier wrote: Mario Splivalo wrote: One just have to love Tomcat documentation :) Specially considering the price you pay for it. Oh, that is so professional. You are right, it wasn't professional. Just at the same level as your previous comment ? Peace. I

Re: Failed to deploy application

2010-05-03 Thread Luís de Sousa
Hello, Trying with this command: http://localhost:8080/manager/deploy?path=/JSPTutwar=file:/var/lib/tomcat6/webapps/JSPTut The result is the same: FAIL - Failed to deploy application at context path /JSPTut Thank you, Luís

Re: minSpareThreads maxSpareThreads

2010-05-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mario, On 5/3/2010 8:18 AM, Mario Splivalo wrote: André Warnier wrote: Mario Splivalo wrote: One just have to love Tomcat documentation :) Specially considering the price you pay for it. Oh, that is so professional. So, it's cheap therefore

Re: Failed to deploy application

2010-05-03 Thread Konstantin Kolinko
2010/5/3 Luís de Sousa luis.a.de.so...@gmail.com: Hello, Trying with this command: http://localhost:8080/manager/deploy?path=/JSPTutwar=file:/var/lib/tomcat6/webapps/JSPTut The result is the same: FAIL - Failed to deploy application at context path /JSPTut Do you try to automate

Re: Failed to deploy application

2010-05-03 Thread Luís de Sousa
Hi Konstantin, I initially tried to access the application without deploying and got the server not found message. I then tried deploying it with the GUI and was also unsuccessful. I then dug out of some old notes the command that had the tag and tried it, receiving the FAIL message. I though

Problem with downloading file over servlet

2010-05-03 Thread Petr Hracek
Hello *, In my servlet I am collecting some information which are stored on the UnixWare system. The generated files are stored on the system correctly and after transferring via scp to the Windows all is OK. But when I am trying to download that files over servlet and https I receive following

RE: Failed to deploy application

2010-05-03 Thread Caldarale, Charles R
From: Luís de Sousa [mailto:luis.a.de.so...@gmail.com] Subject: Re: Failed to deploy application I initially tried to access the application without deploying and got the server not found message. Let's stop here and go back to the basics: can you access *anything* on this Tomcat? A

RE: Problem with downloading file over servlet

2010-05-03 Thread Caldarale, Charles R
From: Petr Hracek [mailto:phrac...@gmail.com] Subject: Problem with downloading file over servlet But when I am trying to download that files over servlet and https I receive following error: java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection cannot be cast to

Re: Failed to deploy application

2010-05-03 Thread Luís de Sousa
On Mon, May 3, 2010 at 3:43 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: Let's stop here and go back to the basics: can you access *anything* on this Tomcat?  A server not found message indicates that Tomcat may not be running, or there's something blocking the port. Hi Chuck,

Re: one path working, one not

2010-05-03 Thread Angela Day
Sorry for just getting back to this problem. I had to go out of town. Nothing is in the logs. It just goes straight to 404 without hitting any code or erroring to the logs. Below is what is in server.xml. I also added the respective contexts to context.xml under META-INF. Still the same

Re: one path working, one not

2010-05-03 Thread André Warnier
Angela Day wrote: Sorry for just getting back to this problem. I had to go out of town. Nothing is in the logs. It just goes straight to 404 without hitting any code or erroring to the logs. Below is what is in server.xml. I also added the respective contexts to context.xml under

JAXBContext leaks memory

2010-05-03 Thread Mark Shifman
I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -histo pid, I can watch com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl, etc increase in number after running my unmarshal action, followed by undeploy and redeploy. Find Leaks

Re: one path working, one not

2010-05-03 Thread Pid
On 03/05/2010 16:55, André Warnier wrote: Angela Day wrote: Sorry for just getting back to this problem. I had to go out of town. Nothing is in the logs. It just goes straight to 404 without hitting any code or erroring to the logs. Below is what is in server.xml. I also added the

Re: JAXBContext leaks memory

2010-05-03 Thread Pid
On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -histo pid, I can watch com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl, etc increase in number after running my unmarshal action,

Re: JAXBContext leaks memory

2010-05-03 Thread Mark Shifman
On 05/03/2010 12:48 PM, Pid wrote: On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -histo pid, I can watch com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl, etc increase in number

Re: one path working, one not

2010-05-03 Thread Angela Day
Here is the Server.xml: ?xml version=1.0 encoding=UTF-8? Server Listener className=org.apache.catalina.core.AprLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ Listener

RE: one path working, one not

2010-05-03 Thread Caldarale, Charles R
From: Angela Day [mailto:akc...@yahoo.com] Subject: Re: one path working, one not root cause org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' This indicates your Resource is not configured correctly *or* your driver classes

RE: JAXBContext leaks memory

2010-05-03 Thread Caldarale, Charles R
From: Mark Shifman [mailto:mark.shif...@yale.edu] Subject: Re: JAXBContext leaks memory This is also in the webapp in WEB-INF/classes/org/blablabla When you say also, does that mean the class is in more than one place? (That would be a Bad Thing.) - Chuck THIS COMMUNICATION MAY CONTAIN

Re: JAXBContext leaks memory

2010-05-03 Thread Mark Shifman
On 05/03/2010 02:18 PM, Caldarale, Charles R wrote: From: Mark Shifman [mailto:mark.shif...@yale.edu] Subject: Re: JAXBContext leaks memory This is also in the webapp in WEB-INF/classes/org/blablabla When you say also, does that mean the class is in more than one place? (That would be

Re: one path working, one not

2010-05-03 Thread Angela Day
common/lib/ojdbc14.jar Thanks, Angela Day National Autism Association of Central Texas http://www.naacentraltexas.org From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat Users List users@tomcat.apache.org Sent: Mon, May 3, 2010 1:17:26 PM

Re: JAXBContext leaks memory

2010-05-03 Thread Pid
On 03/05/2010 18:30, Mark Shifman wrote: On 05/03/2010 12:48 PM, Pid wrote: On 03/05/2010 17:15, Mark Shifman wrote: I have a web app running under tomcat-6.0.26 with JreMemoryLeakPreventionListener, java jdk1.6.0_18. Using jmap -histo pid, I can watch

Re: one path working, one not

2010-05-03 Thread André Warnier
Angela Day wrote: ... Environment name=cseaPropertiesFile type=java.lang.String value=C:\\jakarta-tomcat-4.1.24\\webapps\\csea\\WEB-INF\\csea.properties/ ... Imay have missied something, but does this mean that the Tomcat you are talking about is Tomcat 4.1 ? That is quite old (many years),

Re: one path working, one not

2010-05-03 Thread Angela Day
I am migrating to version 5.28.28 from 4.1. Sorry for the confusion. Angela Day National Autism Association of Central Texas http://www.naacentraltexas.org From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Sent: Mon, May 3,

RE: one path working, one not

2010-05-03 Thread Caldarale, Charles R
From: Angela Day [mailto:akc...@yahoo.com] Subject: Re: one path working, one not common/lib/ojdbc14.jar That's good. But I was getting a database connection before. Here is my context.xml file: ?xml version=1.0 encoding=UTF-8? Context reloadable=true crossContext=true Resource

Re: one path working, one not

2010-05-03 Thread Angela Day
I figured that out. I had to take the sysadm2 out of sysa...@atlow2.tdhca.state.tx.us and it worked fine. Not sure why, but it works now. Now onto the other two applications. Thanks, Angela Day National Autism Association of Central Texas http://www.naacentraltexas.org

RE: Problem with downloading file over servlet

2010-05-03 Thread Martin Gainty
Petr Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle

RE: Problem with downloading file over servlet

2010-05-03 Thread Martin Gainty
Petr Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle

[no subject]

2010-05-03 Thread Tomcat Users List
X-zuka-RWMailScanner-ID: 5186753823B.AD285 X-zuka-rw-MailScanner-Information: Please contact the ISP for more information Received: from Magnolia.local (unknown [70.48.209.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested)

[no subject]

2010-05-03 Thread Tomcat Users List
X-zuka-RWMailScanner-ID: 5186753823B.AD285 X-zuka-rw-MailScanner-Information: Please contact the ISP for more information Received: from Magnolia.local (unknown [70.48.209.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested)

Re: Tomcat on a machine with multiple ip addresses

2010-05-03 Thread Mark Thomas
On 03/05/2010 23:40, Dave Filchak wrote: Humm ... sorry it has taken a while to get back to you with this. I have been busy trying to get all my clients up. There is not a lot of them but it is very time consuming. Before I get to all the configs, does Tomcat, by default, take over ALL the

[no subject]

2010-05-03 Thread Tomcat Users List
X-zuka-RWMailScanner-ID: 66C1153823B.AFC52 X-zuka-rw-MailScanner-Information: Please contact the ISP for more information Received: from Magnolia.local (unknown [70.48.209.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested)

[no subject]

2010-05-03 Thread Tomcat Users List
X-zuka-RWMailScanner-ID: 66C1153823B.AFC52 X-zuka-rw-MailScanner-Information: Please contact the ISP for more information Received: from Magnolia.local (unknown [70.48.209.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested)

Tomcat Clustering problem: Help

2010-05-03 Thread Josef Pullicino
Dear users, I am trying to setup tomcat clustering/session replication between two tomcats of version 6.0.18. The following is the cluster snippet inserted into server.xml of both servers: Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster channelSendOptions=8

[no subject]

2010-05-03 Thread Tomcat Users List
X-zuka-RWMailScanner-ID: B0236538235.AD627 X-zuka-rw-MailScanner-Information: Please contact the ISP for more information Received: from Magnolia.local (unknown [70.48.209.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested)

[no subject]

2010-05-03 Thread Tomcat Users List
X-zuka-RWMailScanner-ID: B0236538235.AD627 X-zuka-rw-MailScanner-Information: Please contact the ISP for more information Received: from Magnolia.local (unknown [70.48.209.168]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested)

Re: Exception report - HTTP Status 500 -

2010-05-03 Thread Paul Chany
Pid p...@pidster.com writes: On 16/04/2010 19:30, Paul Chany wrote: Hi, I have installed on my Debian GNU/Linux Lenny system tomcat5.5. When the system boot, and in firefox browser opens the tomcat 's page: http://localhost:8180/ , I get an error message: --- type Exception report

Re: Exception report - HTTP Status 500 -

2010-05-03 Thread Paul Chany
Warren Pace warren.p...@gmail.com writes: If you installed your Tomcat using the Debian package manager, take a look at the tomcat startup script. While it's been a number of years since I used Debian, I seem to remember this from back in the day - look for a statement referencing security

RE: FW: General / Special cause under which TOMCAT Crash been noticed

2010-05-03 Thread Karthik Nanjangude
Hi Try looking into a cron script or some other scheduled task external to tomcat We considered this feature of shell script , but to have to plug with O/s which is not a good idea. We would like to make the process more general across O/s ( JVM level as discussed) With regards karthik