Insert delay between war deployment

2008-11-25 Thread Bocalinda
Hi, I'm wondering if it is possible to change the deployment order which Tomcat follows. I've been searching the net, and as from what other people say, it is not possible. Is this still true for Tomcat 6? I more or less found a way to deploy applications at the beginning or at the end by

Insert delay between war deployment

2008-11-25 Thread Bocalinda
Hi, I got a slight timing problem here. I got 2 war files: X.war and webservice.war X.war depends on webservice.war. I already managed to have webservice.war deploy before X.war gets deployed, although I can see in the logs that X.war is eternally waiting on webservice.war when being deployed.

Re: tomcat 5.5.20 security issue

2008-11-25 Thread aymen83
i think it's the real problem since the application is compiled using jdk 1.6 and it's runned under jdk 1.5 but for now there's no way to change because we are migrating to 1.6 -- View this message in context: http://www.nabble.com/tomcat-5.5.20-security-issue-tp20661073p20677894.html Sent from

load-on-startup

2008-11-25 Thread André Warnier
Hi. About the load-on-startup item in web.xml, the Servlet Spec 2.5 has this to say (p 128) : The load-on-startup element indicates that this servlet should be loaded (instantiated and have its init() called) on the startup of the web application. The optional contents of these element must

Re: All threads are busy

2008-11-25 Thread Rainer Frey
On Monday 24 November 2008 16:15:19 Martin Spinassi wrote: Hi to all again! Nov 24, 2008 1:51:54 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (200) are currently busy, waiting. Increase maxThreads (200) or check the servlet status Executor name=tomcatThreadPool

Re: load-on-startup

2008-11-25 Thread Juha Laiho
André Warnier wrote: Hi. About the load-on-startup item in web.xml, the Servlet Spec 2.5 has this to say (p 128) : [...] My questions are : 1) In the case of Tomcat 5.5 and higher, is there a way to *prevent* a deployed application to be loaded and/or started at Tomcat startup ?

Re: Tomcat 6 and javamail

2008-11-25 Thread Lyallex
Hello again 2008/11/19 Don Millhofer [EMAIL PROTECTED]: Are you sure that the mail server, serving the host you are deploying to does not require authentication? I got this same error trying to go through the Google Mail Server without proper authentication. I am absolutely sure that the

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micheal, Michael Ludwig wrote: Your argument in favour of the unified buffer sounds perfectly logical to me. In the end, it's all bytes that get written, regardless of whether or not I wrap a PrintWriter around the buffer. There's always the case

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micheal, Michael Ludwig wrote: Your argument in favour of the unified buffer sounds perfectly logical to me. In the end, it's all bytes that get written, regardless of whether or not I wrap a PrintWriter around the buffer. There's always the case

Manager app language

2008-11-25 Thread André Warnier
Hi. I have a strange happening in Tomcat 5.5, under Linux Debian. Apparently since today, the Manager app (accessed through /manager/html) responds with its main page in German. This is bizarre, because - it was not so before - I have 3 browsers installed on my laptop, and with all3 I have the

RE: All threads are busy

2008-11-25 Thread Caldarale, Charles R
From: Rainer Frey [mailto:[EMAIL PROTECTED] Subject: Re: All threads are busy Does the AJP connector support the executor? I thought not. The doc claims it does, but I haven't looked at the code to verify. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

Re: tomcat 6.0.18 clustering.. session getting replicated partially

2008-11-25 Thread rohit aman
Hi Filip, All I did was to modify sessions application that comes with tomcat. It's just two simple changes shown below. 1) Replace the DummCart.class in tomcat-home\apache-tomcat-6.0.18\webapps\examples\WEB-INF\classes\sessions with the attached one. 2)mark the web.xml in

RE: Manager app language

2008-11-25 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Manager app language I have a strange happening in Tomcat 5.5, under Linux Debian. Red flag goes up: real Tomcat, or Debian corruption? Apparently since today, the Manager app (accessed through /manager/html) responds with its main

RE: Insert delay between war deployment

2008-11-25 Thread Caldarale, Charles R
From: Bocalinda [mailto:[EMAIL PROTECTED] Subject: Insert delay between war deployment I'm wondering if it is possible to change the deployment order which Tomcat follows. No. If your webapps have ordering dependencies, it's up to you to provide the necessary synchronization within the

Re: Manager app language

2008-11-25 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Manager app language I have a strange happening in Tomcat 5.5, under Linux Debian. Red flag goes up: real Tomcat, or Debian corruption? Apparently since today, the Manager app (accessed through /manager/html)

RE: Manager app language

2008-11-25 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Manager app language Attached the page I get. It got stripped off somewhere along the way. In the official Tomcat, where is this page hidden ? The manager pages in 5.5 are generated dynamically by servlets in:

RE: load-on-startup

2008-11-25 Thread Caldarale, Charles R
From: André Warnier [mailto:[EMAIL PROTECTED] Subject: load-on-startup 1) In the case of Tomcat 5.5 and higher, is there a way to *prevent* a deployed application to be loaded and/or started at Tomcat startup ? Turn off the deployOnStartup attributes of the Host element. Also consider

Re: tomcat 6.0.18 clustering.. session getting replicated partially

2008-11-25 Thread Filip Hanik - Dev Lists
you're attachment didn't go through, just post a complete example somewhere on the web. for free support, you can't expect the other guy (me in this case) to have to spend time setting up to replicate your environment instead, you do the legwork, and you get help for free, not a bad trade if

why cant I unsubscribe

2008-11-25 Thread ksh95
the unsubscribe function has failed several times... will a moderater please unsubscribe me - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

log4j.properties file in the WEB-INF/classes directory is not being found and loaded

2008-11-25 Thread William Clar
Hello, I'm migrating from Tomcat 5.5.4 to 6.0.18. On version 5.5.4 we were able to create two separate log files: catalina.out for System.err, and traffic.log for the application. In version 6.0.18 I'm unable to recreate this scenario. I've followed the Tomcat documentation

Re: Setup Logging for Tomcat 6

2008-11-25 Thread dOE
No further insight as to why Tomcat 6 is not logging out-of -the-box? On Mon, Nov 24, 2008 at 10:25 PM, dOE [EMAIL PROTECTED] wrote: the JS-wrapper can redirect its output to event viewer. On Mon, Nov 24, 2008 at 7:13 PM, Michael Ludwig [EMAIL PROTECTED] wrote: André Warnier schrieb am

SingleThreadModel for servlets

2008-11-25 Thread Tony Anecito
Hello All, I am wondering with the advances in hardware and memory and using servlet pooling if using SingleThreadModel is better for performance than multiple threads per servlet. Reason I ask is if you have a slow service using the multithreaded servlet it might be a bad idea especially if

RE: Setup Logging for Tomcat 6

2008-11-25 Thread Caldarale, Charles R
From: dOE [mailto:[EMAIL PROTECTED] Subject: Re: Setup Logging for Tomcat 6 No further insight as to why Tomcat 6 is not logging out-of -the-box? Are you still using this js-wrapper thingie? If so, no one will be interested. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR

RE: SingleThreadModel for servlets

2008-11-25 Thread Caldarale, Charles R
From: Tony Anecito [mailto:[EMAIL PROTECTED] Subject: SingleThreadModel for servlets Reason I ask is if you have a slow service using the multithreaded servlet it might be a bad idea especially if there is synchronous methods used anywhere in the code for a multithreaded servlet.

RE: SingleThreadModel for servlets

2008-11-25 Thread Tony Anecito
Hi Charles, Thanks for the prompt answer. I was only giving an example. The question I wanted answered was in general if current real life experience still holds true that the mutli-threaded single servlet model is still faster than one servlet per thread where the servlet is pooled. Thanks,

Re: j_secuity check and https

2008-11-25 Thread Snaglefrac
I have an tomcat application. I want to use LDAP authentication. I have this working not problem. When a user hits the site they are asked to login and they use the j_security method to do so. No problem. Now, when someone logs in they are using an unsecured login screen and there passwords

Re: tomcat 6.0.18 clustering.. session getting replicated partially

2008-11-25 Thread rohit aman
Hey Filip, sorry abt that. here is the example web application zip file: http://www.yousendit.com/download/TTZuRFFhbEo5eFh2Wmc9PQ please unzip it, put it in your webapps directory, then you should be able to access the cart using

Re: Setup Logging for Tomcat 6

2008-11-25 Thread dOE
Ok, thanks On Tue, Nov 25, 2008 at 12:52 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: dOE [mailto:[EMAIL PROTECTED] Subject: Re: Setup Logging for Tomcat 6 No further insight as to why Tomcat 6 is not logging out-of -the-box? Are you still using this js-wrapper thingie?

Re: Manager app language

2008-11-25 Thread André Warnier
Caldarale, Charles R wrote: From: André Warnier [mailto:[EMAIL PROTECTED] Subject: Re: Manager app language Attached the page I get. It got stripped off somewhere along the way. In the official Tomcat, where is this page hidden ? The manager pages in 5.5 are generated dynamically by

Re: Setup Logging for Tomcat 6

2008-11-25 Thread André Warnier
Caldarale, Charles R wrote: From: dOE [mailto:[EMAIL PROTECTED] Subject: Re: Setup Logging for Tomcat 6 No further insight as to why Tomcat 6 is not logging out-of -the-box? Are you still using this js-wrapper thingie? If so, no one will be interested. To put this more diplomatically (and

log4j FileAppenders not flushing

2008-11-25 Thread Prastein, Rebeccah H
I'm hoping someone here can help me with this; I've searched all over the web, and any references to FileAppenders not flushing in the log4j lists get the response, not a log4j problem, must be your application. I have a simple 3-page Spring 2.5 Spring MVC application running under Tomcat 5.5.

RE: SingleThreadModel for servlets

2008-11-25 Thread Caldarale, Charles R
From: Tony Anecito [mailto:[EMAIL PROTECTED] Subject: RE: SingleThreadModel for servlets The question I wanted answered was in general if current real life experience still holds true that the mutli-threaded single servlet model is still faster than one servlet per thread where the servlet

Re: Re: Tomcat 6 unstable

2008-11-25 Thread Michael Ludwig
Caldarale, Charles R schrieb am 24.11.2008 um 21:51:33 (-0600): From: Michael Ludwig [mailto:[EMAIL PROTECTED] Could web app Foo, which brings its own DB2 driver - in spite of the same driver already offered by the common.loader or the bootstrap.loader, by this very fact jeopardize other

Re: Re: Tomcat 6 unstable

2008-11-25 Thread Michael Ludwig
Jabali Acuatico schrieb am 24.11.2008 um 18:02:23 (-0800): I read the link you posted me, but the comments in the catalinal.properties has no example with file:/// so I did not write like this. I added to this line the path to the db2 jdbc driver. The current sentence is this one:

RE: Re: Tomcat 6 unstable

2008-11-25 Thread Caldarale, Charles R
From: Michael Ludwig [mailto:[EMAIL PROTECTED] Subject: Re: Re: Tomcat 6 unstable I've read somewhere that omitting the file:/// URI scheme is wrong. However, it seems to work. At least on Windows. In order to be on the safe side, you should add the file:/// URI scheme. No, you shouldn't.

Threadpool doesn't contain any threads

2008-11-25 Thread Gattu, Praveen
Hi - I am noticing a weird issue with our Tomcat installation. Here is my production environment Tomcat version - 5.5 JDK run time - 1.6 OS : Redhat Enterprise 3.0 Everyday we are noticing the tomcat not responding on a port. On further inspection we noticed that the thread pool that is serving

RE: Threadpool doesn't contain any threads

2008-11-25 Thread Caldarale, Charles R
From: Gattu, Praveen [mailto:[EMAIL PROTECTED] Subject: Threadpool doesn't contain any threads Did anyone else notice this issue. Another minor caveat is, we built Tomcat using JDK 1.5 but are running it on JDK 1.6. Can't answer your primary question, but as for building Tomcat, it must be

Re: Re: Tomcat 6 unstable

2008-11-25 Thread Michael Ludwig
Caldarale, Charles R schrieb am 25.11.2008 um 17:00:24 (-0600): From: Michael Ludwig [mailto:[EMAIL PROTECTED] Subject: Re: Re: Tomcat 6 unstable I've read somewhere that omitting the file:/// URI scheme is wrong. However, it seems to work. At least on Windows. In order to be on the

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-25 Thread Michael Ludwig
Martin Gainty schrieb am 22.11.2008 um 12:02:36 (-0500): i agree with the unified buffer but i would also make sure all your output methods are synchronized Thanks for your feedback, Martin. Why exactly would the output methods have to be synchronized? The request and response objects aren't

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-25 Thread Michael Ludwig
Christopher Schultz schrieb am 25.11.2008 um 09:31:17 (-0500): Michael Ludwig wrote: Your argument in favour of the unified buffer sounds perfectly logical to me. In the end, it's all bytes that get written, regardless of whether or not I wrap a PrintWriter around the buffer. There's

RE: Re: Tomcat 6 unstable

2008-11-25 Thread Caldarale, Charles R
From: Michael Ludwig [mailto:[EMAIL PROTECTED] Subject: Re: Re: Tomcat 6 unstable I don't think the file URI scheme without a hostname translates into a network request. For what would be the protocol used for such a request? SMB for Windows, SMB or NFS for Linux. Try putting

RE: [Http]ServletResponseWrapper.getOutputStream()

2008-11-25 Thread Caldarale, Charles R
From: Michael Ludwig [mailto:[EMAIL PROTECTED] Subject: Re: [Http]ServletResponseWrapper.getOutputStream() Why exactly would the output methods have to be synchronized? They don't, unless you've got a weird webapp that itself creates multiple threads that generate output. - Chuck THIS

Re: [Http]ServletResponseWrapper.getOutputStream()

2008-11-25 Thread Michael Ludwig
I forgot two important lines; explanation in other posts on this thread. Michael Ludwig schrieb am 26.11.2008 um 02:14:58 (+0100): public ServletOutputStream getOutputStream() throws IOException { getResponse().getOutputStream(); return stream; } public PrintWriter getWriter()

Updating users

2008-11-25 Thread Cliff Binstock
I have one servlet that registers a new user. The result of this is an update of conf/tomcat-users.xml I have an almost out-of-the-box WebdavServlet that requires user authorization. The users appear to be cached by Tomcat, and the new user can't access the webdav area until Tomcat is

Re: Updating users

2008-11-25 Thread Hassan Schroeder
On Tue, Nov 25, 2008 at 6:16 PM, Cliff Binstock [EMAIL PROTECTED] wrote: I have one servlet that registers a new user. The result of this is an update of conf/tomcat-users.xml The users appear to be cached by Tomcat, and the new user can't access the webdav area until Tomcat is restarted.

RE: Updating users

2008-11-25 Thread Prastein, Rebeccah H
There must be a way - Managing users is one of the things that the admin webapp does. Maybe take a look at its source code? BTW, The admin webapp doesn't come with the default installation of tomcat any more, you have to download and install it separately. Rebeccah -Original Message-

RE: Updating users

2008-11-25 Thread Caldarale, Charles R
From: Prastein, Rebeccah H [mailto:[EMAIL PROTECTED] Subject: RE: Updating users There must be a way - Managing users is one of the things that the admin webapp does. The admin webapp had access to Tomcat's internal structures, but it has been dropped due to bugginess and lack of developer

Re: Tomcat 6 and javamail

2008-11-25 Thread Rainer Frey
On Tuesday 25 November 2008 15:09:54 Lyallex wrote: Hello again 2008/11/19 Don Millhofer [EMAIL PROTECTED]: Are you sure that the mail server, serving the host you are deploying to does not require authentication? I got this same error trying to go through the Google Mail Server without