[JBoss-user] [Security JAAS/JBoss] - Re: JAAS LoginModule NoClassDefFoundError
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=bbop=viewtopicp=3941607#3941607 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: JAAS LoginModule NoClassDefFoundError
Followup: I copied the JAX-RPC stuff into WEB-INF/lib and the LoginModule works, but now I get linkage errors all over the place in the web application proper (specifically from JBPM stuff, which is deployed as a SAR in default/deploy). Short of copying the world into WEB-INF/lib, is there any way to resolve this class loading issue? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3941611#3941611 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3941611 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: JAAS LoginModule NoClassDefFoundError
The class file is in the jar. I have made sure of that. However, I am confused. How can I access other files in the same jar but not find this one? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885865#3885865 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885865 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Re: JAAS LoginModule NoClassDefFoundError
Check out the contents of your jar file using: jar -tf yourJar.jar Post the output View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885732#3885732 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885732 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user