RE: stopping a tomcat web application

2006-09-04 Thread asaf.lahav
Isn't there a way to stop a tomcat web application using code? Tomcat provides an administration interface which enables starting and stopping of specific web applications. Can anyone point me to the web application management code? -Original Message- From: Mikolaj Rydzewski [mailto:[EMAIL

Tomcat 4.1.18 - Exception processing JAR at resource path

2006-09-04 Thread Amarnath BK
Hello, I am new to Tomcat and trying to deploy a web application. It contains a few jar files (eg: classes12.jar) in the webapp//WEB-INF/lib. The environment details is below: OS : Unix Tomcat : 4.1.18 The JAVA_HOME & CATALINE_HOME is set properly and I am using the startup.sh script to star

Re: need help with .startup.sh

2006-09-04 Thread Sameer Acharya
You will have to look at catalina.sh and check how these two are being set $JAVA_OPTS $CATALINA_OPTS -Sameer Lee Chalupa <[EMAIL PROTECTED]> wrote: Hello: I need help figuring out how to modify my tomcat deployment so when the JVM starts it starts with a -server option. There seems to be a bug

Re: stopping a tomcat web application

2006-09-04 Thread Peter Rossbach
Look at http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html and use JMX. Regards Peter Am 04.09.2006 um 11:50 schrieb asaf.lahav: Isn't there a way to stop a tomcat web application using code? Tomcat provides an administration interface which enables starting and stopping of specific w

[tomcat 5.5] Migrating from tomcat 5.0.x : context file

2006-09-04 Thread LASSIEGE Hugo
Hi, I'm currently migrating from tomcat 5.0.x. My old applications works but I still have a problem. In my old context file (mywebapp.xml in Catalina/localhost), I gave a path like this But with tomcat 5.5.x, path is ignored and I can access to my app only on http://localhost:8080/mywebapp/

Re: stopping a tomcat web application

2006-09-04 Thread Martin Gainty
You are executing java class org.apache.catalina.startup.Bootstrap with the 'stop' option if you look at catalina.sh you will see this command java.exe stop -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" -Dcatalina.base="$CATALINA_BASE"\ -Dcatalina.home="$CATALINA_HOME" -Djav

RE: stopping a tomcat web application

2006-09-04 Thread Peter Crowther
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > You are executing java class > org.apache.catalina.startup.Bootstrap with the 'stop' option Martin - like your previous suggestion, that stops the entire container, not the single webapp. JMX would appear to be the way to go to stop a webapp, bu

Re: TOmcat5.5.17 - jasper-runtime.jar ERROR

2006-09-04 Thread Martin Gainty
There *was* an outstanding bug where someone tried to cast a Vector to List and then to solve the org.apache.jasper.runtime.JspSourceDependent.getDependants() method signature was then downcasted to return Object (instead of the original List) More info is available at http://issues.apache.org/

Re: Aborting servlet init() method

2006-09-04 Thread Len Popp
If I understand the situation correctly, You could use a filter to deny all requests to the servlet (return HTTP error 500) while the database is down. On initialization you check the database and set a flag to tell the filter if the database is down. When the database comes back up (assuming you

Re: Starting background thread in contextInitialized ...

2006-09-04 Thread Velja Radenkovic
Thanks, I'm running tests on 2 machines and I'll share the results and concept in case of sucess or ask for more help in case of failure. I'll stick to starting background thread for now. Thanks again, Velja

Re: Starting background thread in contextInitialized ...

2006-09-04 Thread Andrés González
Maybe a little OT, but: do you think it is a good "architecture" to have such a background thread processing those records periodically?. I mean, wouldn't it be preferable to create a separate process (another JVM) which would execute that thread? That way your design is more modular, and you can

Can Tomcat dump incoming/outgoing HTTP data?

2006-09-04 Thread Ivan Balashov
Hi all, I need to monitor HTTP traffic going to/from my web application. Normally I would use Ethereal, but unfortunately, it doesn't support localhost on windows. Could I setup tomcat so that (or maybe write my own filter) it would dump all incoming/outgoing HTTP data to a file? Thanks! smime

How to disable "HTTP/100 Continue" on Tomcat

2006-09-04 Thread Bruno Vilardo
Hello All, I am a new user of TOMCAT sorry for any dumb question;-) TOMCAT version is *"jakarta-tomcat-4.1.31".* ** We current have an application that replicates data. But we are having some issue because our Application is receiving the "HTTP/100 Continue" response before the "Application" re

Re: How to disable "HTTP/100 Continue" on Tomcat

2006-09-04 Thread DJohnson
Sorry for top post... limition of Notes e-mail client. "100 continue" is a documented part of the HTTP 1.1 protocol. Your client application should either handle the "100 continue" response, or present itself as an HTTP 1.0 client in the original request, which will suppress the "100 continue"

Re: Can Tomcat dump incoming/outgoing HTTP data?

2006-09-04 Thread Markus Schönhaber
Ivan Balashov wrote: > I need to monitor HTTP traffic going to/from my web application. Normally I > would use Ethereal, but unfortunately, it doesn't support localhost on > windows. Could I setup tomcat so that (or maybe write my own filter) it > would dump all incoming/outgoing HTTP data to a fil

Apache Tomcat 4.1.34-beta now available

2006-09-04 Thread Mark Thomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The Apache Tomcat team is proud to announce the immediate availability of Tomcat 4.1.34-beta. This release is a bug fix release that resolves the issues reported against Tomcat 4.1.32-beta. Please consult the release notes included in the distributions

Re: How to disable "HTTP/100 Continue" on Tomcat

2006-09-04 Thread Bruno Vilardo
Hello Johnson, Thanks a lot for the quick reply. Our client application is able to handle the "100 continue" response though the "Application" message response is being handle by the application. It is getting lost because of the first "100 Continue" message. That´s why i thought that there was

Re: How to disable "HTTP/100 Continue" on Tomcat

2006-09-04 Thread Bill Barker
"Bruno Vilardo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello All, > > I am a new user of TOMCAT sorry for any dumb question;-) > > TOMCAT version is *"jakarta-tomcat-4.1.31".* > ** > We current have an application that replicates data. > > But we are having some issue becau

Re: How to disable "HTTP/100 Continue" on Tomcat

2006-09-04 Thread DJohnson
The "100 Continue" should be handled at a fairly low level within the HTTP Client, and should never interfere with the receipt of the final response by the client application. Are you saying that you receive the "100 Continue" within your client application as if it is the final response? If s

Re: How to disable "HTTP/100 Continue" on Tomcat

2006-09-04 Thread Bruno Vilardo
Hello Bill , This is the sequence. The sequence of events to delivery a QDoc using Sonic is: - Outbound generates the QDoc and then send to Sonic; - Sonic receive this QDoc and send to Inbound; - Inbound process the QDoc and creates a Response, sending it to Sonic; - Sonic should delivery this r

Re: How to disable "HTTP/100 Continue" on Tomcat

2006-09-04 Thread Bill Barker
"Bruno Vilardo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Bill , > > This is the sequence. > > The sequence of events to delivery a QDoc using Sonic is: > - Outbound generates the QDoc and then send to Sonic; > - Sonic receive this QDoc and send to Inbound; > - Inbound p

Re: How to disable "HTTP/100 Continue" on Tomcat

2006-09-04 Thread Bruno Vilardo
THe correct is "The "100 Continue" is telling the client that it is ok to start sending the request body". But the "request body" does not reach. We have log files that keep the response and the log has only the "100 Continue" response and it should have the "request body" on the log. What is the

Re: How to disable "HTTP/100 Continue" on Tomcat

2006-09-04 Thread Bill Barker
"Bruno Vilardo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > THe correct is "The "100 Continue" is telling the client that it is ok to > start sending the request body". But the "request body" does not reach. > We have log files that keep the response and the log has only the "10

Re: Starting background thread in contextInitialized ...

2006-09-04 Thread Darryl Miles
Andrés González wrote: Maybe a little OT, but: do you think it is a good "architecture" to have such a background thread processing those records periodically?. YMMV. For me I have many jobs running, some timed on a regular schedule, some timed and/or triggered from events (message passing),