File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes How to run Tomcat in debug mode as a Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to run Tomcat in debug mode as a Service" Watch "How to run Tomcat in debug mode as a Service" New topic
Author

How to run Tomcat in debug mode as a Service

Nikolay Gannev
Greenhorn

Joined: Jul 25, 2004
Posts: 17
Hi all,

We are using Tomcat 5.0.28. I know how to run the server in debug mode. What I am researching is how to run the server in debug mode if the server has been started as a service. In other words is there a way to pass some parameters or reconfigure the service (that calls tomcat5.exe) without modifying the catalina.bat file.
If this is not possible what is the easiest way to create another service that will use modified catalina.bat file? Has anybody done that so far?

Thanks in advance
Nikolay


SCJP 1.4, <br />SCWCD 1.4
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Nikolay Gannev:
... what is the easiest way to create another service that will use modified catalina.bat file? ...


When Tomcat is run as a service, it doesn't use the .bat files.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Nikolay Gannev
Greenhorn

Joined: Jul 25, 2004
Posts: 17
Thanks Ben,

I actually found the solution. If someone needs more info I can send details.

Thanks
Shariq Roomi
Ranch Hand

Joined: Oct 19, 2004
Posts: 31
I am trying to run TOmcat as service . The service stopped itself after few seconds, Any idea what is going on ?

[2007-03-22 15:50:36] [info] Running Service...
[2007-03-22 15:50:36] [info] Starting service...
[2007-03-22 15:50:38] [info] Service started in 1140 ms.
[2007-03-22 15:50:42] [info] Run service finished.
[2007-03-22 15:50:42] [info] Procrun finished.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to run Tomcat in debug mode as a Service
 
Similar Threads
Change JRE
How to config tomcat 5.5 in debug ?
tomcat debug mode
start debug mode in tomcat5.5
Tomcat(jdk1.3.1) - Win2k service - GC output