[ 
https://issues.apache.org/activemq/browse/SMX4-518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59015#action_59015
 ] 

Chris Custine commented on SMX4-518:
------------------------------------

I documented a permanent workaround for this issue on this thread as well:
http://mail-archives.apache.org/mod_mbox/servicemix-dev/201004.mbox/%[email protected]%3e

In short, run the following command to change the cacert keystore password from 
the JDK back to the expected value:

{noformat}
sudo keytool -storepasswd -new changeit -keystore 
/System/Library/Frameworks/JavaVM.framework/Resources/Deploy.bundle/Contents/Home/lib/security/cacerts
 -storepass changeme
{noformat}

I'm not sure there is anything else that can be done, but this will at least 
fix your local JDK install permanently for anything else that expects the 
default password.

> Camel NMR component WSSecurityTest fails
> ----------------------------------------
>
>                 Key: SMX4-518
>                 URL: https://issues.apache.org/activemq/browse/SMX4-518
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.2.0
>            Reporter: Gert Vanthienen
>             Fix For: 4.4.0
>
>
> When running the features/camel/servicemix-camel unit test on a Mac with JDK 
> 1.6 installed, the WSSecurityTest fails.
> {noformat}
> 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.getInstance(CryptoFactory.java:176)
>       at 
> org.apache.cxf.ws.security.wss4j.AbstractWSS4JInterceptor.loadSignatureCrypto(AbstractWSS4JInterceptor.java:178)
>       at 
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:137)
>       at 
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.access$200(WSS4JOutInterceptor.java:47)
>       at 
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:236)
>       at 
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor$WSS4JOutInterceptorInternal.handleMessage(WSS4JOutInterceptor.java:122)
>       at 
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
>       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
>       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
>       at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
>       at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>       at 
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)
> <snip>
> 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.<init>(AbstractCrypto.java:135)
>       at 
> org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:71)
>       ... 42 more
> Caused by: java.io.IOException: Keystore was tampered with, or password was 
> incorrect
>       at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
>       at 
> sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
>       at java.security.KeyStore.load(KeyStore.java:1185)
>       at 
> org.apache.ws.security.components.crypto.AbstractCrypto.load(AbstractCrypto.java:168)
>       ... 44 more
> Caused by: java.security.UnrecoverableKeyException: Password verification 
> failed
>       at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
>       ... 47 more
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to