You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tom Heiber-Cobb <he...@mailbag.com> on 2003/05/30 22:09:23 UTC

Running Tomcat as a WinNT service

I'm new to the list so I apologize if this one has come up many times 
before.
I've installed Tomcat 4.1.18 on a WinNT machine. I chose the option 
during installation that allows Tomcat to run as a service.

I made the install directory C:\Tomcat-4.1.18

The machine had (has) jdk 1.2.2 on it already.
When I had problems getting the service to work I then installed 
j2sdk1.4.1_02 (and changed the JAVA_HOME env var to point to this dir)

The stdout.log and stderr.log files have reported the same thing both 
times. The stack traces are as follows:
\logs\stdout.log

Bootstrap: Create Catalina server
Bootstrap: Class loader creation threw exception
java.lang.IllegalMonitorStateException: current thread not owner
	at 
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java, 
Compiled Code)
	at 
org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java, 
Compiled Code)
	at 
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java, 
Compiled Code)
	at 
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java, 
Compiled Code)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java, 
Compiled Code)


\logs\stderr.log

java.lang.NullPointerException
	at 
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java, 
Compiled Code)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java, 
Compiled Code)

Any thoughts?
Thanks,
-- Tom H-C


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Running Tomcat as a WinNT service

Posted by Jason Bainbridge <ja...@jblinux.org>.
Looks like it is still trying to use the older JDK, try double checking what 
you set it to, close the services panel and open it again if that doesn't 
work you might need to bounce your server, Windows can be picky about that 
kind of things at times.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
webmaster@kde.org 

On Sat, 31 May 2003 04:09, Tom Heiber-Cobb wrote:
> I'm new to the list so I apologize if this one has come up many times
> before.
> I've installed Tomcat 4.1.18 on a WinNT machine. I chose the option
> during installation that allows Tomcat to run as a service.
>
> I made the install directory C:\Tomcat-4.1.18
>
> The machine had (has) jdk 1.2.2 on it already.
> When I had problems getting the service to work I then installed
> j2sdk1.4.1_02 (and changed the JAVA_HOME env var to point to this dir)
>
> The stdout.log and stderr.log files have reported the same thing both
> times. The stack traces are as follows:
> \logs\stdout.log
>
> Bootstrap: Create Catalina server
> Bootstrap: Class loader creation threw exception
> java.lang.IllegalMonitorStateException: current thread not owner
> 	at
> org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(Standa
>rdClassLoader.java, Compiled Code)
> 	at
> org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.j
>ava, Compiled Code)
> 	at
> org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoade
>rFactory.java, Compiled Code)
> 	at
> org.apache.catalina.startup.BootstrapService.init(BootstrapService.java,
> Compiled Code)
> 	at
> org.apache.catalina.startup.BootstrapService.main(BootstrapService.java,
> Compiled Code)
>
>
> \logs\stderr.log
>
> java.lang.NullPointerException
> 	at
> org.apache.catalina.startup.BootstrapService.init(BootstrapService.java,
> Compiled Code)
> 	at
> org.apache.catalina.startup.BootstrapService.main(BootstrapService.java,
> Compiled Code)
>
> Any thoughts?
> Thanks,
> -- Tom H-C
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org