This is an old thread, but I just encountered the same issue and I've found 
something that might help.

My login module calls a web service to authenticate.  I put the JAR for my 
LoginModule in default/lib and added an entry in login-config.xml for the 
security domain used by my web application.  The LoginModule class itself is 
found and instantiated, but the web service classes through a 
NoClassDefFoundError.  I added some debug statements and noticed that the 
thread context class loader is WebappClassLoader.  I tried putting my JAR in 
the WEB-INF/lib folder of my web application, and got past the original error, 
but failed with a NoClassDefFoundError on one of the JAX-RPC classes (JAX-RPC 
libs are in default/lib).  I suspect that if I also copied the JAX-RPC JARs 
into WEB-INF/lib it would actually work, but this isn't a very elegant solution 
(especially with multiple web applications).

The Class Loading Use Case Wiki has a note at the bottom about needing to add 
specific use cases for WARs, since the WebappClassLoader is involved, and 
mentioned settings in jboss-web.xml that might influence how the 
WebappClassLoader delegates to JBoss's UCL.  I couldn't find any details on 
those settings . . . does anyone have any ideas?

Thanks,

- Jesse

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941607#3941607

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941607


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to