Jan, Ali, The reason for this to fail without the secUtil.jar in WEB-INF/lib is that rampart/wss4j doesn't seem to have access to the service class loader, from which the handler _should_ pickup the callback handler class.
I have made some changes in the latest rampart handlers with respect to accessing the service class loader which depends on the latest wss4j [1], [2]. Therefore please try the latest snapshots of wss4j and rampart. Thanks, Ruchith [1] http://www.mail-archive.com/[email protected]/msg01787.html [2] http://www.mail-archive.com/[email protected]/msg10923.html On 7/19/06, Ali Sadik Kumlali <[EMAIL PROTECTED]> wrote:
Hi Jan, Both secUtil.jar and SecureService.aar include PWCallback class. secUtil.jar is used by client and -normally- you shouldn't need it at server side. If you put SecureService.aar into axis2/WEB-INF/services/ directory, you should be able to call PWCallback under SecureService.aar. By any chance, might you miss one of the steps found in README.txt? Regards, Ali Sadik Kumlali ----- Original Message ---- From: Jan Bauer Nielsen <[EMAIL PROTECTED]> To: [email protected] Sent: Wednesday, July 19, 2006 11:46:19 AM Subject: Re: [Axis2] unable to run security sample. Just to follow up on my own question. I can get the sample to work if I copy the secUtil.jar file to the axis2/WEB-INF/lib/ directory. But according to the 4th step in the README.txt this shouldn't be necessary. Can anyone shed some light on this? Jan Jan Bauer Nielsen wrote: > Hi. > > Using the latest nightly builds and following the steps in the README > file I get the following error from the server. Can anyone please > explain why this is so? > > $ ant securitySample > Buildfile: build.xml > > securitySample: > [java] Jul 19, 2006 9:34:44 AM > org.apache.axis2.deployment.DeploymentEngine prepareRepository > [java] INFO: no services directory found , new one created > [java] Jul 19, 2006 9:34:45 AM > org.apache.axis2.deployment.DeploymentEngine doDeploy > [java] INFO: Deploying module : rampart-1.0 > [java] Jul 19, 2006 9:34:45 AM > org.apache.axis2.deployment.DeploymentEngine doDeploy > [java] INFO: Deploying module : addressing-1.0 > [java] org.apache.axis2.AxisFault: WSHandler: cannot load password > callback class: sample.security.PWCallback; nested exception is: > [java] java.lang.ClassNotFoundException: > sample.security.PWCallback > [java] at > org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:289) > > [java] at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:538) > [java] at > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:472) > [java] at sample.security.Client.main(Client.java:58) > [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault: > WSHandler: cannot load password callback class: > sample.security.PWCallback; nested exception is: > [java] java.lang.ClassNotFoundException: > sample.security.PWCallback; nested exception is: > [java] org.apache.ws.security.WSSecurityException: WSHandler: > cannot load password callback class: sample.security.PWCallback; nested > exception is: > [java] java.lang.ClassNotFoundException: > sample.security.PWCallback > [java] at > org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:336) > > [java] at > org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82) > > [java] at org.apache.axis2.engine.Phase.invoke(Phase.java:380) > [java] at > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:523) > [java] at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492) > [java] at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) > > [java] at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144) > [java] at > javax.servlet.http.HttpServlet.service(HttpServlet.java:615) > [java] at > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > [java] at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > > [java] at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > [java] at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > > [java] at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > > [java] at > org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272) > > [java] at > org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53) > > [java] at > org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47) > > [java] at > org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60) > > [java] at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > > [java] at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > > [java] at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > > [java] at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) > [java] at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > [java] at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > [java] at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) > > [java] at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > > [java] at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > > [java] at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > > [java] at java.lang.Thread.run(Thread.java:595) > [java] Caused by: org.apache.ws.security.WSSecurityException: > WSHandler: cannot load password callback class: > sample.security.PWCallback; nested exception is: > [java] java.lang.ClassNotFoundException: > sample.security.PWCallback > [java] at > org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:823) > [java] at > org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:147) > > [java] ... 27 more > [java] Caused by: java.lang.ClassNotFoundException: > sample.security.PWCallback > [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > [java] at java.security.AccessController.doPrivileged(Native > Method) > [java] at > java.net.URLClassLoader.findClass(URLClassLoader.java:188) > [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251) > [java] at > org.apache.geronimo.tomcat.TomcatClassLoader.loadClass(TomcatClassLoader.java:62) > > [java] at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) > [java] at java.lang.Class.forName0(Native Method) > [java] at java.lang.Class.forName(Class.java:164) > [java] at > org.apache.ws.security.util.Loader.loadClass(Loader.java:162) > [java] at > org.apache.ws.security.util.Loader.loadClass(Loader.java:135) > [java] at > org.apache.ws.security.handler.WSHandler.getPasswordCB(WSHandler.java:820) > [java] ... 28 more > > [java] at org.apache.axis2.AxisFault.<init>(AxisFault.java:159) > [java] ... 4 more > > BUILD SUCCESSFUL > Total time: 5 seconds > > Kind regards, --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- www.ruchith.org --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
