Two Laptop Bag*
The moose likes Tomcat and the fly likes Cannot start Tomcat as a service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Cannot start Tomcat as a service" Watch "Cannot start Tomcat as a service" New topic
Author

Cannot start Tomcat as a service

M Li
Greenhorn

Joined: Aug 12, 2003
Posts: 1
JDK 1.4
WIN2K Server
Tomcat 4.1.27
Hi everyone,
I could not start Tomcat as a service (i.e. through Start|Settings|Control Panel|Administrative Tools|Services). And whenever I try to start it, I'll recieve the following error message:
Could not start Apache Tomcat 4.1 service on Local Computer.
The service did not return an error. This could be an internal Windows error or an internal service error.
However I can start Tomcat through the command prompt by typing "startup.bat". But I recieved the following messages/errors. Does anyone knows what's wrong?
----------

Aug 12, 2003 8:41:50 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Aug 12, 2003 8:41:50 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Aug 12, 2003 8:41:51 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Aug 12, 2003 8:41:54 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
Aug 12, 2003 8:41:58 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru
e
Aug 12, 2003 8:41:58 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul
l=true
Aug 12, 2003 8:41:59 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Aug 12, 2003 8:42:03 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Aug 12, 2003 8:42:03 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Aug 12, 2003 8:42:03 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=C:\Tomcat4.1\conf\jk2.properties
-----
ps: I've edited the environment variable and path.
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

I get the same messages when running startup.bat It seems to say that tomcat started successfully. You can test if this is so by going to start/programs/apache Tomcat 4.1/Tomcat Administration
If that app starts then Tomcat is running. You can look up your password for this administration application in Tomcat/conf/tomcat-users.xml
As for why the service doesn't start from the other services dialog, I don't know.
The following thread on Devshed seems to offer insight into running tomcat as a service: http://forums.devshed.com/t60625/s940c795a6145da1b1922460646955518.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot start Tomcat as a service
 
Similar Threads
jk2 in tomcat + iis configuration
Important question: Tomcat Configuration
Tomcat is refusing to load servlet.jar. Why??
Cannot start tomcat
Problems deploying the application on Tomcat 4.0.1