0 Replies Latest reply on Jun 28, 2010 2:50 PM by Vyacheslav Pavlenko

    Problem with ws-security/interopfest/wssc example

    Vyacheslav Pavlenko Newbie

      Hi,

       

      I'm trying to run ws-security examples and facing issues below. Could anybody take a look at it?

       

      Thanks

       

      INFO: Creating Service PingService from WSDL: file:/C:/fuse/apache-cxf-2.2.9-fuse-01-00/samples/ws_security/interopfest/wssc/target/wsdl2/WS

      eConversation.wsdl

      Jun 28, 2010 2:45:13 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging

      WARNING: Interceptor for SecurityTokenService#RequestSecurityToken has thro

      ception, unwinding now

      org.apache.cxf.interceptor.Fault: org.apache.ws.security.components.crypto.Merlin cannot create instance

              at org.apache.cxf.ws.security.wss4j.policyhandlers.SymmetricBindingHandler.doSignBeforeEncrypt(SymmetricBindingHandler.java:384)

              at org.apache.cxf.ws.security.wss4j.policyhandlers.SymmetricBindingHandler.handleBinding(SymmetricBindingHandler.java:113)

              at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JOutInterceptor$PolicyBasedWSS4JOutInterceptorInternal.handleMessage(PolicyBasedWSS4JOutInterceptor.java:135)

              at org.apache.cxf.ws.security.wss4j.PolicyBasedWSS4JOutInterceptor$PolicyBasedWSS4JOutInterceptorInternal.handleMessage(PolicyBasedWSS4JOutInterceptor.java:76)

              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)

              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)

              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)

              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)

              at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:456)

              at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:351)

              at org.apache.cxf.ws.security.policy.interceptors.SecureConversationOutInterceptor.issueToken(SecureConversationOutInterceptor.java:158)

              at org.apache.cxf.ws.security.policy.interceptors.SecureConversationOutInterceptor.handleMessage(SecureConversationOutInterceptor.java:68)

              at org.apache.cxf.ws.security.policy.interceptors.SecureConversationOutInterceptor.handleMessage(SecureConversationOutInterceptor.java:43)

              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)

              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:487)

              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)

              at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)

              at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)

              at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)

              at $Proxy45.ping(Unknown Source)

              at interop.client.Client.main(Client.java:166)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:283)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.lang.RuntimeException: org.apache.ws.security.components.crypto.Merlin cannot create instance

              at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:225)

              at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:180)

              at org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:73)

              at org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder.getCrypto(AbstractBindingBuilder.java:1101)

              at org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder.getSignatureCrypto(AbstractBindingBuilder.java:1042)

              at org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder.getSignatureBuider(AbstractBindingBuilder.java:1298)

              at org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder.handleSupportingTokens(AbstractBindingBuilder.java:512)

              at org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder.handleSupportingTokens(AbstractBindingBuilder.java:419)

              at org.apache.cxf.ws.security.wss4j.policyhandlers.AbstractBindingBuilder.addSupportingTokens(AbstractBindingBuilder.java:1559)

              at org.apache.cxf.ws.security.wss4j.policyhandlers.SymmetricBindingHandler.doSignBeforeEncrypt(SymmetricBindingHandler.java:326)

              ... 26 more

      Caused by: java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

              at org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:211)

              ... 35 more

      Caused by: org.apache.ws.security.components.crypto.CredentialException: Failed to load credentials.

              at org.apache.ws.security.components.crypto.AbstractCrypto.load(AbstractCrypto.java:174)

              at org.apache.ws.security.components.crypto.AbstractCrypto.(Merlin.java:71)

              ... 40 more

      Caused by: java.io.IOException: exception decrypting data - java.security.InvalidKeyException: Illegal key size

              at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.cryptData(Unknown Source)

              at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)

              at java.security.KeyStore.load(KeyStore.java:1185)

              at org.apache.ws.security.components.crypto.AbstractCrypto.load(AbstractCrypto.java:168)

              ... 42 more

      Jun 28, 2010 2:45:13 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging