Ups... Ok... That's was consecuence of so many "copy-paste"s that I have
done during all these days :)
My Hello.java file is now like this:
| package wssec;
|
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebResult;
| import javax.jws.WebService;
| import javax.xml.ws.RequestWrapper;
| import javax.xml.ws.ResponseWrapper;
|
|
| /**
| * This class was generated by the JAX-WS RI.
| * JAX-WS RI 2.1.1-b03-
| * Generated source version: 2.0
| *
| */
| @WebService(name = "Hello", targetNamespace = "urn:ws.sec")
| public interface Hello {
|
|
| /**
| *
| * @param nombre
| * @return
| * returns java.lang.String
| */
| @WebMethod
| @WebResult(targetNamespace = "")
| @RequestWrapper(localName = "echo", targetNamespace =
"urn:ws.sec", className = "sec.ws.Echo")
| @ResponseWrapper(localName = "echoResponse", targetNamespace =
"urn:ws.sec", className = "sec.ws.EchoResponse")
| public String echo(
| @WebParam(name = "nombre", targetNamespace = "")
| String nombre);
|
| }
|
but now I have this error:
| Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/xml/securi
| ty/Init
| at
org.jboss.ws.extensions.security.SecurityEncoder.<init>(SecurityEncod
| er.java:47)
| at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleOutbound(
| WSSecurityDispatcher.java:302)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleOutbou
| ndSecurity(WSSecurityHandler.java:95)
| at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handle
| Outbound(WSSecurityHandlerClient.java:45)
| at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericH
| andler.java:55)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
| ndlerChainExecutor.java:295)
| at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(Ha
| ndlerChainExecutor.java:140)
| at org.jboss.ws.core.jaxws.client.ClientImpl.callRequestHandlerChain(Cli
| entImpl.java:160)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:297)
| at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
|
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:16
| 4)
| at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:15
| 0)
| at $Proxy15.echo(Unknown Source)
| at wssec.HelloClient.main(HelloClient.java:32)
|
I don't know what's happening now.. I'm with it, but if you see something,
i'll be grateful for your advices ;)
At least now I see errors refering to WSSecurity and that makes me happy hehe :)
Thanks ;)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121266#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...