tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Trouble running TC8 trunk
Date Wed, 09 Nov 2011 02:32:48 GMT
2011/11/9 Christopher Schultz <chris@christopherschultz.net>:
\>
> With current trunk HEAD and a fresh:
>
> $ ant clean clean-depend download-compile deploy
>
> When I attempt to start Tomcat, I get this error (this is 100% of my
> catalina.out):
>
> java.lang.NoClassDefFoundError:
> org/apache/catalina/startup/SetParentClassLoaderRule
>        at java.lang.Class.getDeclaredConstructors0(Native Method)
>        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>        at java.lang.Class.getConstructor0(Class.java:2699)
>        at java.lang.Class.newInstance0(Class.java:326)
>        at java.lang.Class.newInstance(Class.java:308)
>        at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:239)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.catalina.startup.SetParentClassLoaderRule
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        ... 7 more
>
> That line in Bootstrap.java is creating a new startup.Catalina object
> which needs it's own inner class SetParentClassLoaderRule. It looks
> like the JVM is attempting to load the wrong class: it should be
> loading startup.Catalina$SetParentClassLoaderRule but instead it's
> trying to load startup.SetParentClassLoaderRule.
>
> I'm at a loss, here.
>
> JVM info:
>
> $ java -version
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)
>
> Any ideas?
>

How do you start it?
Are you in output/build/bin when you are trying to start it?

Are CATALINA_HOME and CATALINA_BASE have none or valid values when you
are running the startup scripts?
(catalina.sh should print their values when starting).

Maybe try good old "rm -rf output" instead of Ant clean?

Last time I cleanly recompiled it was yesterday (to confirm brokenness
in the manager webapp - see elsethread), and all was fine.

Best regards,
Konstantin Kolinko

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


Mime
View raw message