Hi, On 12/7/06, George Stanchev <[EMAIL PROTECTED]> wrote:
Hi, I know this has been covered in the past, but i have a service that engages rahas and rampart running under Tomcat 5.5. It has a PWCallback class to check and validate passwords and other stuff. I get NoClassDefFoundError when I hit the service with WSPasswordCallback missing (it is used inside my PWCallback class. If I add the wss4j to the service.aar/lib folder, then the PWCallback stops working - the if (callbacks[i] instance of WSPasswordCallback) is alsways false even though the eclipse debugger is showing they are the same class. The only way to get this working is by copying all the wss4j related jars into the axis2/WEB-INF/lib directory. It feels like axis2 is having some classloader issues. Is the classloader used to load the service different than the one used to load the modules?
Yes. The classloaders are different.
Is there any way to solve this without copying libraries that are already available in the engaged modules into the master library repository? Am I missing something?
Nope you MUST copy the libs into the master "lib" dir. There is an ant build file provided with the Rampart binary distribution that copies all required jars into the master "lib" dir of AXIS2_HOME. Therefore you just have to set the AXIS2_HOME env variable and run ant from the extracted Rampart distro [1]. Thanks, Ruchith [1] http://www.apache.org/dist/ws/rampart/1_1/rampart-1.1.zip
I am using self-built 1.1 tag bits. Thanks! George Stanchev ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
-- www.ruchith.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
