Hi Ruchith ; Did this work before ?
Thanks Deepal > Solution : please copy wss4j-SNAPSHOT.jar into the axis2/WEB-INF/lib/ > > Possible issue: > > Seems like we might be having classloading problems once again :-( > > The java.lang.NoClassDefFoundError you see here is because the > WSSecurityEngine class could not be loaded. > > When rampart is engaged and *configured* one both wss4j.jar and > axis2-secpolicy.jar and the jars they depend on will have to be copied > into the axis2/WEB-INF/lib directory since : > - When the service provides the callback handler it will use classes > from WSS4J > - The axis2-secpolicy.jar is required by axis2/neethi to parse policy > with WS-SecurityPolicy assertions. > > Both axis2-secpolicy.jar and wss4j.jar are in the "lib" dir of rampart > module. When engaging rampart the classes must be loaded from these > and engaging rampart should work without a problem. i.e. to just > *engage* rampart one should not be required to copy these jars into > the axis2/WEB-INF/lib. > > The stack trace reported seems to show that axis2 cannot load classes > from the wss4j.jar during deployment. > > Deepal what do you think? > > Thanks, > Ruchith > > On 10/30/06, Marcel Casado <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I'm using the nightly snapshots for Axis2 1.1 and Rampart 1.1 snapshot >> also. I have services that engage rampart. I had a first problem with an >> exception and I had to add axis2-secpolicy-1.1-SNAPSHOT.jar to >> axis2/WEB-INF/lib and fixed that problem but now I'm getting : >> >> java.lang.NoClassDefFoundError >> >> org.apache.rampart.handler.RampartReceiver.<clinit>(RampartReceiver.java:46) >> >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> >> >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> >> java.lang.reflect.Constructor.newInstance(Constructor.java:494) >> java.lang.Class.newInstance0(Class.java:350) >> java.lang.Class.newInstance(Class.java:303) >> >> org.apache.axis2.deployment.util.Utils.addFlowHandlers(Utils.java:68) >> >> org.apache.axis2.deployment.DeploymentEngine.addNewModule(DeploymentEngine.java:311) >> >> >> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:602) >> >> >> org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:167) >> >> >> org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:54) >> >> >> org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:100) >> >> >> org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:199) >> >> >> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:61) >> >> >> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:366) >> >> >> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:310) >> >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) >> >> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) >> >> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) >> >> >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) >> >> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) >> >> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) >> >> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) >> >> java.lang.Thread.run(Thread.java:613) >> >> >> I looked into rampart mar and all the rampart classes are there. Why is >> not finding the rampart module classes. >> >> Thanks for the help in advance. >> >> -Marcel >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- Thanks, Deepal ................................................................ "The highest tower is built one brick at a time" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
