tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costin Manolache <cmanola...@yahoo.com>
Subject Re: ClassLoader problems
Date Wed, 08 Jan 2003 21:52:35 GMT
Once again - debugging it is close to impossible ( just like most 
classloader problems), but luckily I guessed how to fix it - just 
remove the "endorsed" property and it works again...

What "endorsed dirs" has to do with ActionHook - I don't know.

Costin

Costin Manolache wrote:

> Ok, that's another really strange JDK1.4 problem. I hate class loaders.
> 
> It works perfectly fine with JDK1.3 - but fails with JDK1.4.1.
> 
> Needless to say - tomcat-coyote is in lib, and if I enable -verbose:class
> it actually displays a line showing ActionHook is loaded - only to throw
> the exception few lines down.
> 
> Any idea ? I get this with 4.1 head and also with 5.0 ( but in 5.0 I may
> have a strange env - that's why I tested with a clean 4.1 head )
> 
> Java is 1.4.1_01-b01 on linux.
>  
> Costin
> 
> 
> The exception is:
> Using CATALINA_BASE:   /ws/41/dist
> Using CATALINA_HOME:   /ws/41/dist
> Using CATALINA_TMPDIR: /ws/41/dist/temp
> Using JAVA_HOME:       /usr/java/jdk14
> /usr/java/jdk14/bin/java
> -Djava.endorsed.dirs=/ws/41/dist/bin:/ws/41/dist/common/endorsed
> -classpath /usr/java/jdk14/lib/tools.jar:/ws/41/dist/bin/bootstrap.jar
> -Dcatalina.base=/ws/41/dist -Dcatalina.home=/ws/41/dist
> -Djava.io.tmpdir=/ws/41/dist/temp org.apache.catalina.startup.Bootstrap
> start
> Exception during startup processing
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     
>     at
>     
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     
>     at
>     
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:324)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> Caused by: java.lang.NoClassDefFoundError: org/apache/coyote/ActionHook
>         at java.lang.ClassLoader.findBootstrapClass(Native Method)
>         at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:723)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>     
>     at
>     
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941)
>     
>     at
>     
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
>     
>     at
>     
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941)
>     
>     at
>     
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>         at
>         
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) at
>         java.net.URLClassLoader.access$100(URLClassLoader.java:54) at
>         java.net.URLClassLoader$1.run(URLClassLoader.java:193) at
>         java.security.AccessController.doPrivileged(Native Method) at
>         java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>     
>     at
>     
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:621)
>     
>     at
>     
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:958)
>     
>     at
>     
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:140)
>     
>     at
>     
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1016)
>     
>     at
>     
org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
>     
>     at
>     
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:511)
>         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>         ... 5 more



--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message