You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Matt <sa...@swbell.net> on 2003/02/13 05:07:58 UTC

Very newbie question, Bootstrap: Class loader creation threw exception

I recently downloaded tomcat to try it out, and learn new parts of
server programs.(Kind of an odd thing)

I installed the JDK and put the PATH to it as the first entry in my path
statement

I went and ran startup.bat and it spawns a new window, and goes away
quickly, so I stepped through startup.bat, and saw it ran Catalina.bat

I then ran Catalina.bat run, and it spewed out an exception.

C:\WebServer\jakarta-tomcat-4.1.18\bin>catalina.bat run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:       c:\jdk1.2.1
Bootstrap: Class loader creation threw exception
java.lang.IllegalMonitorStateException: current thread not owner
        at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(
Compiled Code)
        at
org.apache.catalina.loader.StandardClassLoader.<init>(Compiled Code)
        at
org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Comp
iled Code)
        at org.apache.catalina.startup.Bootstrap.main(Compiled Code)

I am running Windows XP SP1.  (I know, I should be using linux).

Any help would be appreciated.

Thanks

Matt Carlson


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


RE: Very newbie question, Bootstrap: Class loader creation threw exception

Posted by Daniel Brown <gm...@blueyonder.co.uk>.
Matt,

> Using JAVA_HOME:       c:\jdk1.2.1

I'd recommend trying a 1.3.x or 1.4.x JDK, rather than this one. (The 1.4.1
I'm using works fine for me.)

Alternatively, if you already have a later JDK, but it's not being used,
create a file in <Tomcat install directory>/bin called 'setenv.bat',
containing the following:

set JAVA_HOME=C:\j2sdk1.4.1

(replace with the actual location of your JDK)

and then try starting Tomcat again, using 'catalina run'.

HTH,

Dan.

> Bootstrap: Class loader creation threw exception
> java.lang.IllegalMonitorStateException: current thread not owner
>         at
> org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(
> Compiled Code)
>         at
> org.apache.catalina.loader.StandardClassLoader.<init>(Compiled Code)
>         at
> org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(Comp
> iled Code)
>         at org.apache.catalina.startup.Bootstrap.main(Compiled Code)
>
> I am running Windows XP SP1.  (I know, I should be using linux).
>
> Any help would be appreciated.
>
> Thanks
>
> Matt Carlson
>
>
> ---------------------------------------------------------------------
> 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