Hello,

I am newbie to Axis2. I just followed *Secure Web Services* with Apache *Rampart* <http://www.wso2.net/files/rampart-tute.pdf#search=%22securing%20web%20services%20using%20rampart%22> and downloaded rampart-tute.zip <http://www-lk.wso2.com/%7Eruchith/rampart-tute.zip>.

The first sample (sample01, with no security)seems running properly. Then I built sample02 using ant service.02 and ant client.02 and copied sample02.aar to $CATALINA_HOME/webapps/axis2/WEB-INF/services directory. But when I ran sample02.Client. I got the following error message.

hostname:~temp_client$java org.apache.rampart.samples.sample02.Client \
http://localhost:8080/axis2/services/sample02 ../client_repositories/sample02

Exception in thread "main" org.apache.axis2.AxisFault: Transport error 500 . Err or Message is

*type* Exception report

*message*

*description* _The server encountered an internal error () that prevented it from fulfilling this request._

*exception*

javax.servlet.ServletException: Servlet execution threw an exception

*root cause*

java.lang.NoClassDefFoundError: org/apache/ws/security/WSPasswordCallback
       org.apache.rampart.samples.sample02.PWCBHandler.handle(Unknown Source)
       
org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(UsernameTokenProcessor.java:99)
       
org.apache.ws.security.processor.UsernameTokenProcessor.handleToken(UsernameTokenProcessor.java:49)
       
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:269)
       
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:191)
       
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:180)
       
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:82)
       org.apache.axis2.engine.Phase.invoke(Phase.java:381)
       org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)
       org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)
       
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
       org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Any input will be highly appreciated. Thank you.

- Wei Zhang



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to