2011/11/9 Christopher Schultz <ch...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to