startup « Tomcat « JSP-Servlet Q&A





1. Load a context/servlet at startup in Tomcat *WITHOUT* changing deployment descriptor (web.xml)    stackoverflow.com

I've got a foo.war file from a third-party vendor. I've defined a context in my Tomcat configuration by creating conf/Catalina/localhost/foo.xml that contains:

<Context docBase="/path/to/foo.war" ...> ... </Context>
I want Tomcat to load ...

2. How can I make Tomcat pre-compile JSPs on startup?    stackoverflow.com

We're using both Apache Tomcat 6.0 and Jetty 6 where I work. We mostly use Jetty for testing (it's great for running embedded in JUnit tests) and Tomcat for production. By ...

3. load-on-startup Tomcat    stackoverflow.com

How can i load a class on at startup in Tomcat ? I saw "load-on-startup" tag for web.xml file, but can i use it and how should I write my class ? EDIT: ...

4. Is there a means of executing code during the startup of Apache Tomcat 6.x to perform intialization routines, etc.?    stackoverflow.com

I want to initialize a global instance of a class before my Tomcat server completes startup and begins to offer my servlets. If this service somehow fails initialization, I'd like ...

5. Tomcat failed to start when calling Thread.sleep inside servlet on server startup    stackoverflow.com

Tomcat failed to start when calling Thread.sleep inside servlet on server startup. There is a Servet which is loaded at server start up. Inside the init method of servlet, sendMail method of ...

6. Is there a way to do something on a J2EE server-start? I'm using Tomcat    stackoverflow.com

I'm trying to get a J2EE server to register (read: send some message to) with another server on its own initiative - not as a response to something. Surprisingly, I've found ...

7. Tomcat Java Servlet - Initialize Class on Application Startup    stackoverflow.com

I have a class that takes a bit of time to start up (makes some JNI calls and what not), so it is not feasable to initialize this class everytime a ...

8. Java: Debug Tomcat Application Startup    stackoverflow.com

Normally, my instance of Tomcat starts-up without any problem. However, when I add a new filter to the 'preview' web app, that application fails to start:

09-Jun-2011 12:23:49 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
09-Jun-2011 ...

9. Tomcat - Servlet init() called twice upon startup    stackoverflow.com

I have an issue with a standalone Tomcat server (not linked with Apache). When Tomcat starts up, the init() method of the servlet is getting called twice, i.e., two servlets are starting ...





10. Tomcat startup confusion...    coderanch.com

I'm not sure what I might have done to cause this, or if this is even a problem really, but when I start Tomcat using the startup.bat file I get a normal startup up to the point where it says: Apache Tomcat/4.1.12 Oct 28, 2002 2:22:44 AM org.apache.commons.digester.Disgester error SEVERE: Parse Error at line 42 column 18: The content of element ...

12. Can i run a servlet on tomcat startup?    coderanch.com