Re: How to force session replication per request in a Tomcat 6 cluster - SOLVED

2010-05-03 Thread Kevin Jansz
A bit more searching on the apache bugzilla led me to this: https://issues.apache.org/bugzilla/show_bug.cgi?id=43866 This enhancement request describes (probably a bit clearer) the gap in functionality going from 5.0 to 5.5/6.0 - namely there's no useDirtyFlag, so no way to tell the (more sophisti

Re: minSpareThreads maxSpareThreads

2010-05-03 Thread Mario Splivalo
Christopher Schultz wrote: > 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: Exception report - HTTP Status 500 -

2010-05-03 Thread Pid
On 04/05/2010 06:22, Paul Chany wrote: > Warren Pace 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 sta

Re: Tomcat on a machine with multiple ip addresses

2010-05-03 Thread Pid
On 04/05/2010 05:12, Dave Filchak wrote: > Thanks for this. I did use the address attribute for port 80. No check > that. I think what I did was pit address=XXX.XXX.XXX.XXX but did not > specify the port ... just the address as it also listens on ports up in > the 8000 range I believe. How do I sto

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

Re: Exception report - HTTP Status 500 -

2010-05-03 Thread Paul Chany
Warren Pace 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" or "use security"

Re: Exception report - HTTP Status 500 -

2010-05-03 Thread Paul Chany
Pid 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 >> me

[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) (Au

[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) (Au

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:

[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) (Au

[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) (Au

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: 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) (Au

[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) (Au

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 to

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 to

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: 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: > > >type="javax.sql.DataSource" > driverClassName="oracle.jdbc.Oracle

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 To: Tomcat Users List Sent: Mon, May 3, 2010 4:12:33 PM Subject: Re: one path

Re: one path working, one not

2010-05-03 Thread André Warnier
Angela Day wrote: ... 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), and may well lead some people here to revise some previou

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 >>> com.sun.xml.inte

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" To: Tomcat Users List Sent: Mon, May 3, 2010 1:17:26 PM Subject: RE: one path working, one not > From: Ang

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? > (Th

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 CO

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 is not configured correctly *or* your driver classes cannot b

Re: one path working, one not

2010-05-03 Thread Angela Day
Here is the Server.xml: I am now getting javax.servlet.ServletException: Cannot get a db connection tdhca.maverick.Dispatcher.init(Dispatcher.java:353) javax.servlet.GenericS

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

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 act

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 th

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 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 META-INF

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 er

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 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, I can access Tomcat

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

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 e

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 this

Re: Failed to deploy application

2010-05-03 Thread Konstantin Kolinko
2010/5/3 Luís de Sousa : > Hello, > > Trying with this command: > > http://localhost:8080/manager/deploy?path=/JSPTut&war=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 something? Or you just

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 c

Re: Failed to deploy application

2010-05-03 Thread Luís de Sousa
Hello, Trying with this command: http://localhost:8080/manager/deploy?path=/JSPTut&war=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 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 m

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

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 r

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: Failed to deploy application

2010-05-03 Thread Konstantin Kolinko
2010/5/3 Luís de Sousa : > > 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/JSPTut&tag=JSPTut > > And I'm getting this answer back: > > FAIL - Failed to deploy applica

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 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) (6b16-1.6.1-3ubuntu3) Out of

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

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 CON

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: 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: http://tomcat.a

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 tha

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

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 offen

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 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 Status' link on top

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. - C

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 > Hello, > > I'm trying to deploy an application that is located under the webapps > director

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

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: users-h...@tom

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.

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/JSPTut&tag=JSPTut And I'm getting this answer back: FAIL - Failed to deploy application at context path /var/lib/to

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 a

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

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: http://tomcat.apache.org/tomcat-6.0-doc/config/http.h

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 02