From: Franck R. <fra...@ax...> - 2006-06-28 08:05:43
|
Hi, I just tried that : remove my libs from WEB-INF/lib and put them in=20 jetty/lib. I still get the same error. Could it possibly be a security error (I have no clue on it, that a=20 question) ? Franck Ludwig Laman a =E9crit : > Hi Franck, > > Were you able to put your webapp's jars in <Jetty_Home>\lib? This=20 > would expose all the needed classes of your webapp. > > Cheers, > Ludwig > > Franck Routier wrote: > >> Hi, >> >> I have a classloader problem with my app, that happens when deploying=20 >> the war on Jetty6. >> >> It works well on Tomcat (5.5), ant used to work on Jetty5 also (but=20 >> now I get an error : org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl=20 >> does not extend from DTDDVFactory when deploying... well, this is=20 >> another issue :-( >> >> So, here is my classloader problem : >> >> - Jetty 6.0.0beta17 >> - Linux (Ubuntu) 2.6.15 >> - Sun JVM 1.5.0_06 >> >> I have a class MyClass in WEB-INF/classes/... and a library in =20 >> WEB-INF/lib/. >> This library (barracudaMVC's plankton library) tries to instantiate=20 >> MyClass by : >> >> cl =3D Class.forName(clName, true,=20 >> Thread.currentThread().getContextClassLoader()); >> >> I then get the following exception : >> >> 2 [btpool0-6] ERROR org.barracudamvc.plankton.Classes - Error=20 >> creating Class reference for class name:TreeUpdateSubmission,=20 >> err:java.lang.ClassNotFoundException: TreeUpdateSubmission >> java.lang.ClassNotFoundException: TreeUpdateSubmission >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at=20 >> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader= .java:335)=20 >> >> at=20 >> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader= .java:306)=20 >> >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319= ) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:242) >> at org.barracudamvc.plankton.Classes.getClass(Classes.java:63) >> [...] >> >> I am using Jetty6 default config, but tried to switch parent priority=20 >> class loading to true with no success (soi it's back to false now). >> >> The app is working happily in other environments... >> >> Any hint ? >> >> Thanks, >> Franck >> >> Using Tomcat but need to do more? Need to support web services,=20 >> security? >> Get stuff done quickly with pre-integrated technology to make your=20 >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache=20 >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&da= t=3D121642 >> _______________________________________________ >> Jetty-support mailing list >> Jet...@li... >> https://lists.sourceforge.net/lists/listinfo/jetty-support >> >> =20 >> |