TomCat Service wont`t start any longer

View: New views
2 Messages — Rating Filter:   Alert me  

TomCat Service wont`t start any longer

by Marc Bartrina :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

we are using tomcat 6.18 with different webapps on a windows
2003 server. TomCat was running as a Windows Service for 1 Year now, without any problems.
After the Installation of an new Software which is using Apache 2.2.11 http Server the TomCat Service won't start any longer.

When we start the TomCat  Service. The TomCat Monitor switches to green and the service writes
"started". But In the TomCat Log Directory only 3 log`s will be generated:

Jakarta_service:

[2009-10-28 14:04:07] [info] Starting service...
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Programme\Apache
Software Foundation\Tomcat 6.0
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Programme\Apache
Software Foundation\Tomcat 6.0
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Programme\Apache
Software Foundation\Tomcat 6.0\endorsed
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Programme\Apache
Software Foundation\Tomcat 6.0\temp
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Programme\Apache
Software Foundation\Tomcat 6.0\conf\logging.properties
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[6] -XX:MaxPermSize=128m
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[7] -Djava.class.path=C:\Programme\Apache
Software Foundation\Tomcat 6.0\bin\bootstrap.jar
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[8] vfprintf
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[9] -Xms128m
[2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[10] -Xmx440m
[2009-10-28 14:04:08] [471  javajni.c] [debug] argv[0] = start
[2009-10-28 14:04:09] [1015 prunsrv.c] [debug] Java started org/apache/catalina/startup/Bootstrap
[2009-10-28 14:04:09] [info] Service started in 1843 ms.
[2009-10-28 14:04:09] [1259 prunsrv.c] [debug] Waiting worker to finish...

stderr (empty) and stdout (empty)

No further log will be created, catalina won't start and no one of our webapps starts. Windows
writes no error and everything seems to be ok but isn't it.

When I stop the service and start tomcat6.exe, everything works, catalina starts and every
webapp starts.

28.10.2009 20:48:07 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production
environments was not found on the java.library.path: C:\Programme\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Programme\Support Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\Microsoft
SQL Server\80\Tools\Binn\;C:\Programme\Microsoft SQL Server\90\Tools\binn\;C:\Programme\Microsoft
SQL Server\90\DTS\Binn\;C:\Programme\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Programme\Microsoft
Windows Small Business Server\Networking\
28.10.2009 20:48:07 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
28.10.2009 20:48:07 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 334 ms
28.10.2009 20:48:07 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
28.10.2009 20:48:07 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
28.10.2009 20:48:08 org.apache.catalina.startup.HostConfig deployDescriptor
WARNUNG: A docBase C:\Programme\Apache Software Foundation\Tomcat 6.0\webapps\host-manager
inside the host appBase has been specified, and will be ignored
28.10.2009 20:48:09 com.sun.xml.rpc.server.http.JAXRPCContextListener contextInitialized
INFO: JAXRPCSERVLET12: JAX-RPC-Kontextzielgert wird initialisiert
28.10.2009 20:48:09 com.sun.xml.rpc.server.http.JAXRPCServletDelegate init
INFO: JAXRPCSERVLET14: JAX-RPC-Servlet wird initialisiert
28.10.2009 20:48:09 com.sun.xml.rpc.server.http.JAXRPCContextListener contextInitialized
INFO: JAXRPCSERVLET12: JAX-RPC-Kontextzielgert wird initialisiert
28.10.2009 20:48:09 com.sun.xml.rpc.server.http.JAXRPCServletDelegate init
INFO: JAXRPCSERVLET14: JAX-RPC-Servlet wird initialisiert
28.10.2009 20:48:10 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
28.10.2009 20:48:10 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
28.10.2009 20:48:10 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
28.10.2009 20:48:10 org.apache.catalina.startup.Catalina start
INFO: Server startup in 3107 ms

Stopping the new installed apache http server doesn`t solving the problem. TomCat still won`t
start as a service. I tried to reinstall the TomCat Server but it also doesn`t solve the problem.

Can anyone tell me why the TomCat won't start as a service without any error message? Many,
many thanks' for help.


Best regards

Marc


Re: TomCat Service wont`t start any longer

by awarnier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Marc Bartrina wrote:

>
> Jakarta_service:
>
> [2009-10-28 14:04:07] [info] Starting service...
> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[0] -Dcatalina.home=C:\Programme\Apache
> Software Foundation\Tomcat 6.0
> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[1] -Dcatalina.base=C:\Programme\Apache
> Software Foundation\Tomcat 6.0
> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[2] -Djava.endorsed.dirs=C:\Programme\Apache
> Software Foundation\Tomcat 6.0\endorsed
> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[3] -Djava.io.tmpdir=C:\Programme\Apache
> Software Foundation\Tomcat 6.0\temp
> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[4] -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[5] -Djava.util.logging.config.file=C:\Programme\Apache
> Software Foundation\Tomcat 6.0\conf\logging.properties

All that looks ok, although I don't like the paths with spaces in them,
but that's a personal thing.
What does the file ..\conf\logging.properties say ?



> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[6] -XX:MaxPermSize=128m
why do you do this ?

> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[7] -Djava.class.path=C:\Programme\Apache
> Software Foundation\Tomcat 6.0\bin\bootstrap.jar
> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[8] vfprintf
what is this option ?
(I'm just curious, I do not know it.)

> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[9] -Xms128m
> [2009-10-28 14:04:08] [385  javajni.c] [debug] Jvm Option[10] -Xmx440m
why these two parameters ?
(and if you really need a 440MB heap, then set "-Xms440M -Xmx440M", it's
more efficient).


> [2009-10-28 14:04:08] [471  javajni.c] [debug] argv[0] = start
> [2009-10-28 14:04:09] [1015 prunsrv.c] [debug] Java started org/apache/catalina/startup/Bootstrap
> [2009-10-28 14:04:09] [info] Service started in 1843 ms.

> [2009-10-28 14:04:09] [1259 prunsrv.c] [debug] Waiting worker to finish...
That last one, I do not see in my logs. But I am running Tomcat 5.5, so
it may be different.

>
> stderr (empty) and stdout (empty)
>
> No further log will be created, catalina won't start and no one of our webapps starts. Windows
> writes no error and everything seems to be ok but isn't it.
>
Is there nothing at all in the Windows Event logs ?

 > When I stop the service and start tomcat6.exe, everything works,
 > catalina starts and every webapp starts.

When you start tomcat6.exe from the command line or the Explorer, it
starts up under your current login-id.
When you start it up as a Service, the id it runs under depends of the
Service setup.
That is a difference. Maybe it is trying to do something that is allowed
under your user-id, and not allowed under the user-id under which it
runs as a service.

Maybe the id under which it runs as a service, does not allow it to
overwrite the logfiles it created when you run it under your own user-id
? Maybe you want to make sure that you erase (or rename) *all* the
Tomcat logfiles, and then immediately try again to run the service.

I am just guessing here, and I understand it was running before.  But
obviously, something has changed, so the question is to find what.
What is this new software that you installed ?
Could it have changed the system PATH, so that now some module is run
that was not run before ?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...