You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Karan Malhi <ka...@gmail.com> on 2009/08/17 21:34:31 UTC

build fails due to webservice-ws-security example

Just checked out the latest revision of openejb3 from repo. Build fails
because the webservice-ws-security examples test fails with the following
stack trace.

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:211)
    at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
    at
org.apache.ws.security.handler.WSHandler.loadEncryptionCrypto(WSHandler.java:419)
    at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:145)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
    at $Proxy47.sum(Unknown Source)
    at
org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithUsernameTokenPlainPasswordEncrypt(CalculatorTest.java:273)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: java.io.FileNotFoundException:
/usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:137)
    at java.io.FileInputStream.<init>(FileInputStream.java:96)
    at
org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
    at
org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:72)
    ... 43 more
java.lang.InstantiationException:
org.apache.ws.security.components.crypto.Merlin
    at java.lang.Class.newInstance0(Class.java:357)
    at java.lang.Class.newInstance(Class.java:325)
    at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
    at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
    at
org.apache.ws.security.handler.WSHandler.loadEncryptionCrypto(WSHandler.java:419)
    at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:145)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
    at $Proxy47.sum(Unknown Source)
    at
org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithUsernameTokenPlainPasswordEncrypt(CalculatorTest.java:273)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Aug 17, 2009 3:34:41 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now
java.lang.RuntimeException: org.apache.ws.security.components.crypto.Merlin
cannot create instance
    at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
    at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
    at
org.apache.ws.security.handler.WSHandler.loadEncryptionCrypto(WSHandler.java:419)
    at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:145)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
    at $Proxy47.sum(Unknown Source)
    at
org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithUsernameTokenPlainPasswordEncrypt(CalculatorTest.java:273)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:211)
    at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
    at
org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:372)
    at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:129)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
    at $Proxy47.multiply(Unknown Source)
    at
org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithSign(CalculatorTest.java:312)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: java.io.FileNotFoundException:
/usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:137)
    at java.io.FileInputStream.<init>(FileInputStream.java:96)
    at
org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
    at
org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:72)
    ... 43 more
java.lang.InstantiationException:
org.apache.ws.security.components.crypto.Merlin
    at java.lang.Class.newInstance0(Class.java:357)
    at java.lang.Class.newInstance(Class.java:325)
    at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
    at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
    at
org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:372)
    at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:129)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
    at $Proxy47.multiply(Unknown Source)
    at
org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithSign(CalculatorTest.java:312)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Aug 17, 2009 3:34:41 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
INFO: Interceptor has thrown exception, unwinding now
java.lang.RuntimeException: org.apache.ws.security.components.crypto.Merlin
cannot create instance
    at
org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
    at
org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
    at
org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:372)
    at
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:129)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
    at
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
    at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
    at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
    at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
    at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
    at $Proxy47.multiply(Unknown Source)
    at
org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithSign(CalculatorTest.java:312)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at junit.framework.TestCase.runTest(TestCase.java:168)
    at junit.framework.TestCase.runBare(TestCase.java:134)
    at junit.framework.TestResult$1.protect(TestResult.java:110)
    at junit.framework.TestResult.runProtected(TestResult.java:128)
    at junit.framework.TestResult.run(TestResult.java:113)
    at junit.framework.TestCase.run(TestCase.java:124)
    at junit.framework.TestSuite.runTest(TestSuite.java:232)
    at junit.framework.TestSuite.run(TestSuite.java:227)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
    at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
    at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Tests run: 7, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 6.763 sec
<<< FAILURE!

Results :
Tests run: 7, Failures: 0, Errors: 2, Skipped: 0

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 27 seconds
[INFO] Finished at: Mon Aug 17 15:34:41 EDT 2009
[INFO] Final Memory: 38M/230M
[INFO]
------------------------------------------------------------------------


-- 
Karan Singh Malhi

Re: build fails due to webservice-ws-security example

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi Karan,

>From the stacktrace, it seems to me it comes from openjdk.
Can you just try with another JDK (SUN)? 

I can have a look if you still have problems.
Jean-Louis


KMalhi wrote:
> 
> Just checked out the latest revision of openejb3 from repo. Build fails
> because the webservice-ws-security examples test fails with the following
> stack trace.
> 
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:211)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
>     at
> org.apache.ws.security.handler.WSHandler.loadEncryptionCrypto(WSHandler.java:419)
>     at
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:145)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
>     at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
>     at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>     at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
>     at $Proxy47.sum(Unknown Source)
>     at
> org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithUsernameTokenPlainPasswordEncrypt(CalculatorTest.java:273)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at junit.framework.TestCase.runTest(TestCase.java:168)
>     at junit.framework.TestCase.runBare(TestCase.java:134)
>     at junit.framework.TestResult$1.protect(TestResult.java:110)
>     at junit.framework.TestResult.runProtected(TestResult.java:128)
>     at junit.framework.TestResult.run(TestResult.java:113)
>     at junit.framework.TestCase.run(TestCase.java:124)
>     at junit.framework.TestSuite.runTest(TestSuite.java:232)
>     at junit.framework.TestSuite.run(TestSuite.java:227)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Caused by: java.io.FileNotFoundException:
> /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
> directory)
>     at java.io.FileInputStream.open(Native Method)
>     at java.io.FileInputStream.<init>(FileInputStream.java:137)
>     at java.io.FileInputStream.<init>(FileInputStream.java:96)
>     at
> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
>     at
> org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:72)
>     ... 43 more
> java.lang.InstantiationException:
> org.apache.ws.security.components.crypto.Merlin
>     at java.lang.Class.newInstance0(Class.java:357)
>     at java.lang.Class.newInstance(Class.java:325)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
>     at
> org.apache.ws.security.handler.WSHandler.loadEncryptionCrypto(WSHandler.java:419)
>     at
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:145)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
>     at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
>     at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>     at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
>     at $Proxy47.sum(Unknown Source)
>     at
> org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithUsernameTokenPlainPasswordEncrypt(CalculatorTest.java:273)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at junit.framework.TestCase.runTest(TestCase.java:168)
>     at junit.framework.TestCase.runBare(TestCase.java:134)
>     at junit.framework.TestResult$1.protect(TestResult.java:110)
>     at junit.framework.TestResult.runProtected(TestResult.java:128)
>     at junit.framework.TestResult.run(TestResult.java:113)
>     at junit.framework.TestCase.run(TestCase.java:124)
>     at junit.framework.TestSuite.runTest(TestSuite.java:232)
>     at junit.framework.TestSuite.run(TestSuite.java:227)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Aug 17, 2009 3:34:41 PM org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> java.lang.RuntimeException:
> org.apache.ws.security.components.crypto.Merlin
> cannot create instance
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
>     at
> org.apache.ws.security.handler.WSHandler.loadEncryptionCrypto(WSHandler.java:419)
>     at
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:145)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
>     at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
>     at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>     at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
>     at $Proxy47.sum(Unknown Source)
>     at
> org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithUsernameTokenPlainPasswordEncrypt(CalculatorTest.java:273)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at junit.framework.TestCase.runTest(TestCase.java:168)
>     at junit.framework.TestCase.runBare(TestCase.java:134)
>     at junit.framework.TestResult$1.protect(TestResult.java:110)
>     at junit.framework.TestResult.runProtected(TestResult.java:128)
>     at junit.framework.TestResult.run(TestResult.java:113)
>     at junit.framework.TestCase.run(TestCase.java:124)
>     at junit.framework.TestSuite.runTest(TestSuite.java:232)
>     at junit.framework.TestSuite.run(TestSuite.java:227)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:211)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
>     at
> org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:372)
>     at
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:129)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
>     at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
>     at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>     at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
>     at $Proxy47.multiply(Unknown Source)
>     at
> org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithSign(CalculatorTest.java:312)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at junit.framework.TestCase.runTest(TestCase.java:168)
>     at junit.framework.TestCase.runBare(TestCase.java:134)
>     at junit.framework.TestResult$1.protect(TestResult.java:110)
>     at junit.framework.TestResult.runProtected(TestResult.java:128)
>     at junit.framework.TestResult.run(TestResult.java:113)
>     at junit.framework.TestCase.run(TestCase.java:124)
>     at junit.framework.TestSuite.runTest(TestSuite.java:232)
>     at junit.framework.TestSuite.run(TestSuite.java:227)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Caused by: java.io.FileNotFoundException:
> /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
> directory)
>     at java.io.FileInputStream.open(Native Method)
>     at java.io.FileInputStream.<init>(FileInputStream.java:137)
>     at java.io.FileInputStream.<init>(FileInputStream.java:96)
>     at
> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
>     at
> org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:72)
>     ... 43 more
> java.lang.InstantiationException:
> org.apache.ws.security.components.crypto.Merlin
>     at java.lang.Class.newInstance0(Class.java:357)
>     at java.lang.Class.newInstance(Class.java:325)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:219)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
>     at
> org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:372)
>     at
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:129)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
>     at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
>     at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>     at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
>     at $Proxy47.multiply(Unknown Source)
>     at
> org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithSign(CalculatorTest.java:312)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at junit.framework.TestCase.runTest(TestCase.java:168)
>     at junit.framework.TestCase.runBare(TestCase.java:134)
>     at junit.framework.TestResult$1.protect(TestResult.java:110)
>     at junit.framework.TestResult.runProtected(TestResult.java:128)
>     at junit.framework.TestResult.run(TestResult.java:113)
>     at junit.framework.TestCase.run(TestCase.java:124)
>     at junit.framework.TestSuite.runTest(TestSuite.java:232)
>     at junit.framework.TestSuite.run(TestSuite.java:227)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Aug 17, 2009 3:34:41 PM org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> java.lang.RuntimeException:
> org.apache.ws.security.components.crypto.Merlin
> cannot create instance
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.loadClass(CryptoFactory.java:224)
>     at
> org.apache.ws.security.components.crypto.CryptoFactory.getInstance(CryptoFactory.java:176)
>     at
> org.apache.ws.security.handler.WSHandler.loadSignatureCrypto(WSHandler.java:372)
>     at
> org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:129)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
>     at
> org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
>     at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
>     at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
>     at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>     at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:171)
>     at $Proxy47.multiply(Unknown Source)
>     at
> org.superbiz.calculator.CalculatorTest.testCalculatorViaWsInterfaceWithSign(CalculatorTest.java:312)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at junit.framework.TestCase.runTest(TestCase.java:168)
>     at junit.framework.TestCase.runBare(TestCase.java:134)
>     at junit.framework.TestResult$1.protect(TestResult.java:110)
>     at junit.framework.TestResult.runProtected(TestResult.java:128)
>     at junit.framework.TestResult.run(TestResult.java:113)
>     at junit.framework.TestCase.run(TestCase.java:124)
>     at junit.framework.TestSuite.runTest(TestSuite.java:232)
>     at junit.framework.TestSuite.run(TestSuite.java:227)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
>     at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
>     at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:616)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
>     at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Tests run: 7, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 6.763 sec
> <<< FAILURE!
> 
> Results :
> Tests run: 7, Failures: 0, Errors: 2, Skipped: 0
> 
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 27 seconds
> [INFO] Finished at: Mon Aug 17 15:34:41 EDT 2009
> [INFO] Final Memory: 38M/230M
> [INFO]
> ------------------------------------------------------------------------
> 
> 
> -- 
> Karan Singh Malhi
> 
> 

-- 
View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25012920.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: build fails due to webservice-ws-security example

Posted by Karan Malhi <ka...@gmail.com>.
Jean-Louis,

Finally got the chance to fix my machine. Ran the example and it works
great.

Thank you very much.

On Wed, Aug 19, 2009 at 5:22 AM, Jean-Louis MONTEIRO <
jean-louis.monteiro@atosorigin.com> wrote:

>
> Hello Karan,
>
> I updated the webservice-ws-security sample (revision #805712).
>
> Unfortunately, I don't have a debian system running with openjdk.
>
> Can you give a try and let me know if it works?
> If yes, the JIRA can be closed.
>
> Jean-Louis
>
>
> KMalhi wrote:
> >
> > Jean-Louis,
> >
> > My cacerts file does not exist. Looks like this is broken in debian
> linux,
> > because the openjdk in debian (Lenny), the cacerts file is a link to
> > /etc/ssl/certs/java/cacerts, and that file does not exist . According to
> > the
> > openjdk documentation, it right now ships with an empty cacerts file
> > (unlike
> > the sun jdk). I guess, I will need to switch to sun jdk.
> >
> > Thanks for the help.
> >
> > On Mon, Aug 17, 2009 at 3:46 PM, Jean-Louis MONTEIRO <
> > jean-louis.monteiro@atosorigin.com> wrote:
> >
> >>
> >>
> >>
> >> KMalhi wrote:
> >> >
> >> > Caused by: java.io.FileNotFoundException:
> >> > /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
> >> > directory)
> >> >     at java.io.FileInputStream.open(Native Method)
> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:137)
> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:96)
> >> >     at
> >> >
> >>
> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
> >> >
> >>
> >> WSS4J is trying to load default trust store from the JVM.
> >> String cacertsPath = System.getProperty("java.home") +
> >> "/lib/security/cacerts";
> >>
> >> Jean-Louis
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
> >> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Karan Singh Malhi
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25040714.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
>


-- 
Karan Singh Malhi

Re: build fails due to webservice-ws-security example

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Thanks a lot Daniel.

Jean-Louis


Daniel S. Haischt-3 wrote:
> 
> Every test ran fine including the web service security related tests.
> 
> Cheers
> Daniel
> 
> On Mon, Aug 31, 2009 at 9:43 PM, Jean-Louis
> MONTEIRO<je...@atosorigin.com> wrote:
>>
>> It would be great.
>>
>> Jean-Louis
>>
>>
>> Daniel S. Haischt-3 wrote:
>>>
>>> if you like I'll give it a shot on my Ubuntu 9.04 server:
>>>
>>> dsh@abyssone:~$ java -version
>>> java version "1.6.0_0"
>>> OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
>>> OpenJDK Server VM (build 14.0-b08, mixed mode)
>>>
>>> drwxr-xr-x  2 root root 4096 2009-08-19 00:10 .
>>> drwxr-xr-x 10 root root 4096 2009-08-19 00:10 ..
>>> lrwxrwxrwx  1 root root   27 2009-08-19 00:10 cacerts ->
>>> /etc/ssl/certs/java/cacerts
>>> lrwxrwxrwx  1 root root   40 2009-08-19 00:10 java.policy ->
>>> /etc/java-6-openjdk/security/java.policy
>>> lrwxrwxrwx  1 root root   42 2009-08-19 00:10 java.security ->
>>> /etc/java-6-openjdk/security/java.security
>>> dsh@abyssone:~$ ls -la /etc/ssl/certs/java/
>>> total 188
>>> drwxr-xr-x 2 root root   4096 2009-08-19 00:12 .
>>> drwxr-xr-x 3 root root  20480 2009-08-19 00:10 ..
>>> -rw-r--r-- 1 root root 165259 2009-08-19 00:12 cacerts
>>> dsh@abyssone:~$ ls -la /etc/ssl/certs/java/cacerts
>>> -rw-r--r-- 1 root root 165259 2009-08-19 00:12
>>> /etc/ssl/certs/java/cacerts
>>>
>>> Cheers
>>> Daniel
>>>
>>> On Wed, Aug 19, 2009 at 3:00 PM, Karan Malhi<ka...@gmail.com>
>>> wrote:
>>>> Jean-Louis,
>>>> Sorry, will not be able to test. My system got hosed. Issue with
>>>> motherboard. Once I get it running again, will give the updated example
>>>> a
>>>> shot.
>>>>
>>>> Thanks
>>>>
>>>> On Wed, Aug 19, 2009 at 5:22 AM, Jean-Louis MONTEIRO <
>>>> jean-louis.monteiro@atosorigin.com> wrote:
>>>>
>>>>>
>>>>> Hello Karan,
>>>>>
>>>>> I updated the webservice-ws-security sample (revision #805712).
>>>>>
>>>>> Unfortunately, I don't have a debian system running with openjdk.
>>>>>
>>>>> Can you give a try and let me know if it works?
>>>>> If yes, the JIRA can be closed.
>>>>>
>>>>> Jean-Louis
>>>>>
>>>>>
>>>>> KMalhi wrote:
>>>>> >
>>>>> > Jean-Louis,
>>>>> >
>>>>> > My cacerts file does not exist. Looks like this is broken in debian
>>>>> linux,
>>>>> > because the openjdk in debian (Lenny), the cacerts file is a link to
>>>>> > /etc/ssl/certs/java/cacerts, and that file does not exist .
>>>>> According
>>>>> to
>>>>> > the
>>>>> > openjdk documentation, it right now ships with an empty cacerts file
>>>>> > (unlike
>>>>> > the sun jdk). I guess, I will need to switch to sun jdk.
>>>>> >
>>>>> > Thanks for the help.
>>>>> >
>>>>> > On Mon, Aug 17, 2009 at 3:46 PM, Jean-Louis MONTEIRO <
>>>>> > jean-louis.monteiro@atosorigin.com> wrote:
>>>>> >
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> KMalhi wrote:
>>>>> >> >
>>>>> >> > Caused by: java.io.FileNotFoundException:
>>>>> >> > /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such
>>>>> file
>>>>> or
>>>>> >> > directory)
>>>>> >> >     at java.io.FileInputStream.open(Native Method)
>>>>> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:137)
>>>>> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:96)
>>>>> >> >     at
>>>>> >> >
>>>>> >>
>>>>> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
>>>>> >> >
>>>>> >>
>>>>> >> WSS4J is trying to load default trust store from the JVM.
>>>>> >> String cacertsPath = System.getProperty("java.home") +
>>>>> >> "/lib/security/cacerts";
>>>>> >>
>>>>> >> Jean-Louis
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> --
>>>>> >> View this message in context:
>>>>> >>
>>>>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
>>>>> >> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>>>> >>
>>>>> >>
>>>>> >
>>>>> >
>>>>> > --
>>>>> > Karan Singh Malhi
>>>>> >
>>>>> >
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25040714.html
>>>>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Karan Singh Malhi
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25229309.html
>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25234409.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: build fails due to webservice-ws-security example

Posted by "Daniel S. Haischt" <da...@googlemail.com>.
Every test ran fine including the web service security related tests.

Cheers
Daniel

On Mon, Aug 31, 2009 at 9:43 PM, Jean-Louis
MONTEIRO<je...@atosorigin.com> wrote:
>
> It would be great.
>
> Jean-Louis
>
>
> Daniel S. Haischt-3 wrote:
>>
>> if you like I'll give it a shot on my Ubuntu 9.04 server:
>>
>> dsh@abyssone:~$ java -version
>> java version "1.6.0_0"
>> OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
>> OpenJDK Server VM (build 14.0-b08, mixed mode)
>>
>> drwxr-xr-x  2 root root 4096 2009-08-19 00:10 .
>> drwxr-xr-x 10 root root 4096 2009-08-19 00:10 ..
>> lrwxrwxrwx  1 root root   27 2009-08-19 00:10 cacerts ->
>> /etc/ssl/certs/java/cacerts
>> lrwxrwxrwx  1 root root   40 2009-08-19 00:10 java.policy ->
>> /etc/java-6-openjdk/security/java.policy
>> lrwxrwxrwx  1 root root   42 2009-08-19 00:10 java.security ->
>> /etc/java-6-openjdk/security/java.security
>> dsh@abyssone:~$ ls -la /etc/ssl/certs/java/
>> total 188
>> drwxr-xr-x 2 root root   4096 2009-08-19 00:12 .
>> drwxr-xr-x 3 root root  20480 2009-08-19 00:10 ..
>> -rw-r--r-- 1 root root 165259 2009-08-19 00:12 cacerts
>> dsh@abyssone:~$ ls -la /etc/ssl/certs/java/cacerts
>> -rw-r--r-- 1 root root 165259 2009-08-19 00:12 /etc/ssl/certs/java/cacerts
>>
>> Cheers
>> Daniel
>>
>> On Wed, Aug 19, 2009 at 3:00 PM, Karan Malhi<ka...@gmail.com> wrote:
>>> Jean-Louis,
>>> Sorry, will not be able to test. My system got hosed. Issue with
>>> motherboard. Once I get it running again, will give the updated example a
>>> shot.
>>>
>>> Thanks
>>>
>>> On Wed, Aug 19, 2009 at 5:22 AM, Jean-Louis MONTEIRO <
>>> jean-louis.monteiro@atosorigin.com> wrote:
>>>
>>>>
>>>> Hello Karan,
>>>>
>>>> I updated the webservice-ws-security sample (revision #805712).
>>>>
>>>> Unfortunately, I don't have a debian system running with openjdk.
>>>>
>>>> Can you give a try and let me know if it works?
>>>> If yes, the JIRA can be closed.
>>>>
>>>> Jean-Louis
>>>>
>>>>
>>>> KMalhi wrote:
>>>> >
>>>> > Jean-Louis,
>>>> >
>>>> > My cacerts file does not exist. Looks like this is broken in debian
>>>> linux,
>>>> > because the openjdk in debian (Lenny), the cacerts file is a link to
>>>> > /etc/ssl/certs/java/cacerts, and that file does not exist . According
>>>> to
>>>> > the
>>>> > openjdk documentation, it right now ships with an empty cacerts file
>>>> > (unlike
>>>> > the sun jdk). I guess, I will need to switch to sun jdk.
>>>> >
>>>> > Thanks for the help.
>>>> >
>>>> > On Mon, Aug 17, 2009 at 3:46 PM, Jean-Louis MONTEIRO <
>>>> > jean-louis.monteiro@atosorigin.com> wrote:
>>>> >
>>>> >>
>>>> >>
>>>> >>
>>>> >> KMalhi wrote:
>>>> >> >
>>>> >> > Caused by: java.io.FileNotFoundException:
>>>> >> > /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file
>>>> or
>>>> >> > directory)
>>>> >> >     at java.io.FileInputStream.open(Native Method)
>>>> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:137)
>>>> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:96)
>>>> >> >     at
>>>> >> >
>>>> >>
>>>> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
>>>> >> >
>>>> >>
>>>> >> WSS4J is trying to load default trust store from the JVM.
>>>> >> String cacertsPath = System.getProperty("java.home") +
>>>> >> "/lib/security/cacerts";
>>>> >>
>>>> >> Jean-Louis
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> View this message in context:
>>>> >>
>>>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
>>>> >> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>>> >>
>>>> >>
>>>> >
>>>> >
>>>> > --
>>>> > Karan Singh Malhi
>>>> >
>>>> >
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25040714.html
>>>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>> --
>>> Karan Singh Malhi
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25229309.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
>

Re: build fails due to webservice-ws-security example

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
It would be great.

Jean-Louis


Daniel S. Haischt-3 wrote:
> 
> if you like I'll give it a shot on my Ubuntu 9.04 server:
> 
> dsh@abyssone:~$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
> OpenJDK Server VM (build 14.0-b08, mixed mode)
> 
> drwxr-xr-x  2 root root 4096 2009-08-19 00:10 .
> drwxr-xr-x 10 root root 4096 2009-08-19 00:10 ..
> lrwxrwxrwx  1 root root   27 2009-08-19 00:10 cacerts ->
> /etc/ssl/certs/java/cacerts
> lrwxrwxrwx  1 root root   40 2009-08-19 00:10 java.policy ->
> /etc/java-6-openjdk/security/java.policy
> lrwxrwxrwx  1 root root   42 2009-08-19 00:10 java.security ->
> /etc/java-6-openjdk/security/java.security
> dsh@abyssone:~$ ls -la /etc/ssl/certs/java/
> total 188
> drwxr-xr-x 2 root root   4096 2009-08-19 00:12 .
> drwxr-xr-x 3 root root  20480 2009-08-19 00:10 ..
> -rw-r--r-- 1 root root 165259 2009-08-19 00:12 cacerts
> dsh@abyssone:~$ ls -la /etc/ssl/certs/java/cacerts
> -rw-r--r-- 1 root root 165259 2009-08-19 00:12 /etc/ssl/certs/java/cacerts
> 
> Cheers
> Daniel
> 
> On Wed, Aug 19, 2009 at 3:00 PM, Karan Malhi<ka...@gmail.com> wrote:
>> Jean-Louis,
>> Sorry, will not be able to test. My system got hosed. Issue with
>> motherboard. Once I get it running again, will give the updated example a
>> shot.
>>
>> Thanks
>>
>> On Wed, Aug 19, 2009 at 5:22 AM, Jean-Louis MONTEIRO <
>> jean-louis.monteiro@atosorigin.com> wrote:
>>
>>>
>>> Hello Karan,
>>>
>>> I updated the webservice-ws-security sample (revision #805712).
>>>
>>> Unfortunately, I don't have a debian system running with openjdk.
>>>
>>> Can you give a try and let me know if it works?
>>> If yes, the JIRA can be closed.
>>>
>>> Jean-Louis
>>>
>>>
>>> KMalhi wrote:
>>> >
>>> > Jean-Louis,
>>> >
>>> > My cacerts file does not exist. Looks like this is broken in debian
>>> linux,
>>> > because the openjdk in debian (Lenny), the cacerts file is a link to
>>> > /etc/ssl/certs/java/cacerts, and that file does not exist . According
>>> to
>>> > the
>>> > openjdk documentation, it right now ships with an empty cacerts file
>>> > (unlike
>>> > the sun jdk). I guess, I will need to switch to sun jdk.
>>> >
>>> > Thanks for the help.
>>> >
>>> > On Mon, Aug 17, 2009 at 3:46 PM, Jean-Louis MONTEIRO <
>>> > jean-louis.monteiro@atosorigin.com> wrote:
>>> >
>>> >>
>>> >>
>>> >>
>>> >> KMalhi wrote:
>>> >> >
>>> >> > Caused by: java.io.FileNotFoundException:
>>> >> > /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file
>>> or
>>> >> > directory)
>>> >> >     at java.io.FileInputStream.open(Native Method)
>>> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:137)
>>> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:96)
>>> >> >     at
>>> >> >
>>> >>
>>> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
>>> >> >
>>> >>
>>> >> WSS4J is trying to load default trust store from the JVM.
>>> >> String cacertsPath = System.getProperty("java.home") +
>>> >> "/lib/security/cacerts";
>>> >>
>>> >> Jean-Louis
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
>>> >> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > Karan Singh Malhi
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25040714.html
>>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> --
>> Karan Singh Malhi
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25229309.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: build fails due to webservice-ws-security example

Posted by "Daniel S. Haischt" <da...@googlemail.com>.
if you like I'll give it a shot on my Ubuntu 9.04 server:

dsh@abyssone:~$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu11)
OpenJDK Server VM (build 14.0-b08, mixed mode)

drwxr-xr-x  2 root root 4096 2009-08-19 00:10 .
drwxr-xr-x 10 root root 4096 2009-08-19 00:10 ..
lrwxrwxrwx  1 root root   27 2009-08-19 00:10 cacerts ->
/etc/ssl/certs/java/cacerts
lrwxrwxrwx  1 root root   40 2009-08-19 00:10 java.policy ->
/etc/java-6-openjdk/security/java.policy
lrwxrwxrwx  1 root root   42 2009-08-19 00:10 java.security ->
/etc/java-6-openjdk/security/java.security
dsh@abyssone:~$ ls -la /etc/ssl/certs/java/
total 188
drwxr-xr-x 2 root root   4096 2009-08-19 00:12 .
drwxr-xr-x 3 root root  20480 2009-08-19 00:10 ..
-rw-r--r-- 1 root root 165259 2009-08-19 00:12 cacerts
dsh@abyssone:~$ ls -la /etc/ssl/certs/java/cacerts
-rw-r--r-- 1 root root 165259 2009-08-19 00:12 /etc/ssl/certs/java/cacerts

Cheers
Daniel

On Wed, Aug 19, 2009 at 3:00 PM, Karan Malhi<ka...@gmail.com> wrote:
> Jean-Louis,
> Sorry, will not be able to test. My system got hosed. Issue with
> motherboard. Once I get it running again, will give the updated example a
> shot.
>
> Thanks
>
> On Wed, Aug 19, 2009 at 5:22 AM, Jean-Louis MONTEIRO <
> jean-louis.monteiro@atosorigin.com> wrote:
>
>>
>> Hello Karan,
>>
>> I updated the webservice-ws-security sample (revision #805712).
>>
>> Unfortunately, I don't have a debian system running with openjdk.
>>
>> Can you give a try and let me know if it works?
>> If yes, the JIRA can be closed.
>>
>> Jean-Louis
>>
>>
>> KMalhi wrote:
>> >
>> > Jean-Louis,
>> >
>> > My cacerts file does not exist. Looks like this is broken in debian
>> linux,
>> > because the openjdk in debian (Lenny), the cacerts file is a link to
>> > /etc/ssl/certs/java/cacerts, and that file does not exist . According to
>> > the
>> > openjdk documentation, it right now ships with an empty cacerts file
>> > (unlike
>> > the sun jdk). I guess, I will need to switch to sun jdk.
>> >
>> > Thanks for the help.
>> >
>> > On Mon, Aug 17, 2009 at 3:46 PM, Jean-Louis MONTEIRO <
>> > jean-louis.monteiro@atosorigin.com> wrote:
>> >
>> >>
>> >>
>> >>
>> >> KMalhi wrote:
>> >> >
>> >> > Caused by: java.io.FileNotFoundException:
>> >> > /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
>> >> > directory)
>> >> >     at java.io.FileInputStream.open(Native Method)
>> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:137)
>> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:96)
>> >> >     at
>> >> >
>> >>
>> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
>> >> >
>> >>
>> >> WSS4J is trying to load default trust store from the JVM.
>> >> String cacertsPath = System.getProperty("java.home") +
>> >> "/lib/security/cacerts";
>> >>
>> >> Jean-Louis
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
>> >> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > Karan Singh Malhi
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25040714.html
>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Karan Singh Malhi
>

Re: build fails due to webservice-ws-security example

Posted by Karan Malhi <ka...@gmail.com>.
Jean-Louis,
Sorry, will not be able to test. My system got hosed. Issue with
motherboard. Once I get it running again, will give the updated example a
shot.

Thanks

On Wed, Aug 19, 2009 at 5:22 AM, Jean-Louis MONTEIRO <
jean-louis.monteiro@atosorigin.com> wrote:

>
> Hello Karan,
>
> I updated the webservice-ws-security sample (revision #805712).
>
> Unfortunately, I don't have a debian system running with openjdk.
>
> Can you give a try and let me know if it works?
> If yes, the JIRA can be closed.
>
> Jean-Louis
>
>
> KMalhi wrote:
> >
> > Jean-Louis,
> >
> > My cacerts file does not exist. Looks like this is broken in debian
> linux,
> > because the openjdk in debian (Lenny), the cacerts file is a link to
> > /etc/ssl/certs/java/cacerts, and that file does not exist . According to
> > the
> > openjdk documentation, it right now ships with an empty cacerts file
> > (unlike
> > the sun jdk). I guess, I will need to switch to sun jdk.
> >
> > Thanks for the help.
> >
> > On Mon, Aug 17, 2009 at 3:46 PM, Jean-Louis MONTEIRO <
> > jean-louis.monteiro@atosorigin.com> wrote:
> >
> >>
> >>
> >>
> >> KMalhi wrote:
> >> >
> >> > Caused by: java.io.FileNotFoundException:
> >> > /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
> >> > directory)
> >> >     at java.io.FileInputStream.open(Native Method)
> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:137)
> >> >     at java.io.FileInputStream.<init>(FileInputStream.java:96)
> >> >     at
> >> >
> >>
> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
> >> >
> >>
> >> WSS4J is trying to load default trust store from the JVM.
> >> String cacertsPath = System.getProperty("java.home") +
> >> "/lib/security/cacerts";
> >>
> >> Jean-Louis
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
> >> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Karan Singh Malhi
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25040714.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
>


-- 
Karan Singh Malhi

Re: build fails due to webservice-ws-security example

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hello Karan,

I updated the webservice-ws-security sample (revision #805712).

Unfortunately, I don't have a debian system running with openjdk.

Can you give a try and let me know if it works?
If yes, the JIRA can be closed.

Jean-Louis


KMalhi wrote:
> 
> Jean-Louis,
> 
> My cacerts file does not exist. Looks like this is broken in debian linux,
> because the openjdk in debian (Lenny), the cacerts file is a link to
> /etc/ssl/certs/java/cacerts, and that file does not exist . According to
> the
> openjdk documentation, it right now ships with an empty cacerts file
> (unlike
> the sun jdk). I guess, I will need to switch to sun jdk.
> 
> Thanks for the help.
> 
> On Mon, Aug 17, 2009 at 3:46 PM, Jean-Louis MONTEIRO <
> jean-louis.monteiro@atosorigin.com> wrote:
> 
>>
>>
>>
>> KMalhi wrote:
>> >
>> > Caused by: java.io.FileNotFoundException:
>> > /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
>> > directory)
>> >     at java.io.FileInputStream.open(Native Method)
>> >     at java.io.FileInputStream.<init>(FileInputStream.java:137)
>> >     at java.io.FileInputStream.<init>(FileInputStream.java:96)
>> >     at
>> >
>> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
>> >
>>
>> WSS4J is trying to load default trust store from the JVM.
>> String cacertsPath = System.getProperty("java.home") +
>> "/lib/security/cacerts";
>>
>> Jean-Louis
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Karan Singh Malhi
> 
> 

-- 
View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25040714.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: build fails due to webservice-ws-security example

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.


KMalhi wrote:
> 
> I guess, I will need to switch to sun jdk.
> 

I gonna try to fix it.
I created a JIRA OPENEJB-1061

Jean-Louis


-- 
View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25014241.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: build fails due to webservice-ws-security example

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.


Daniel S. Haischt-3 wrote:
> 
> maybe setting org.apache.ws.security.crypto.merlin.load.cacerts to
> false would solve the issue. I understand that we don't depend on the
> JDks cacert key store and hence it should not be an issue if it
> wouldn't be loaded...
> 
Right, internally we do not depend on any specific JDK.
But, I have to try setting this property and validate if it works as
expected ;-)

Thanks
Jean-Louis
-- 
View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25014359.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: build fails due to webservice-ws-security example

Posted by "Daniel S. Haischt" <da...@googlemail.com>.
maybe setting org.apache.ws.security.crypto.merlin.load.cacerts to
false would solve the issue. I understand that we don't depend on the
JDks cacert key store and hence it should not be an issue if it
wouldn't be loaded...

Cheers
Daniel

On Mon, Aug 17, 2009 at 11:02 PM, Jean-Louis
MONTEIRO<je...@atosorigin.com> wrote:
>
>
>
> Daniel S. Haischt-3 wrote:
>>
>> just a question (no proposal) - can WSS4J be configured to rely on a
>> custom cert store that would be distributed together with our test
>> case ? that way the test case would be self contained and does not
>> depend on 3rd party stuff.
>>
>
> Daniel,
>
> I will check again, but i think our tests are self contained.
> They generate private/public key pair for both client and server. Then, they
> put them in a key store and a trust store.
>
> If you have a look on this wss4j internal class (kind of wrapper/helper)
> http://ws.apache.org/wss4j/xref/org/apache/ws/security/components/crypto/AbstractCrypto.html
> you will see that it tries loading the default sun jvm trust store.
>
> From the code, it's possible to disable that behaviour.
> I will file a JIRA to customize that if possible.
>
> Jean-Louis
>
> --
> View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25014157.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
>

Re: build fails due to webservice-ws-security example

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.


Daniel S. Haischt-3 wrote:
> 
> just a question (no proposal) - can WSS4J be configured to rely on a
> custom cert store that would be distributed together with our test
> case ? that way the test case would be self contained and does not
> depend on 3rd party stuff.
> 

Daniel,

I will check again, but i think our tests are self contained.
They generate private/public key pair for both client and server. Then, they
put them in a key store and a trust store.

If you have a look on this wss4j internal class (kind of wrapper/helper)
http://ws.apache.org/wss4j/xref/org/apache/ws/security/components/crypto/AbstractCrypto.html
you will see that it tries loading the default sun jvm trust store.

>From the code, it's possible to disable that behaviour.
I will file a JIRA to customize that if possible.

Jean-Louis

-- 
View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25014157.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: build fails due to webservice-ws-security example

Posted by "Daniel S. Haischt" <da...@googlemail.com>.
just a question (no proposal) - can WSS4J be configured to rely on a
custom cert store that would be distributed together with our test
case ? that way the test case would be self contained and does not
depend on 3rd party stuff.

Cheers
Daniel

On Mon, Aug 17, 2009 at 10:10 PM, Karan Malhi<ka...@gmail.com> wrote:
> Jean-Louis,
>
> My cacerts file does not exist. Looks like this is broken in debian linux,
> because the openjdk in debian (Lenny), the cacerts file is a link to
> /etc/ssl/certs/java/cacerts, and that file does not exist . According to the
> openjdk documentation, it right now ships with an empty cacerts file (unlike
> the sun jdk). I guess, I will need to switch to sun jdk.
>
> Thanks for the help.
>
> On Mon, Aug 17, 2009 at 3:46 PM, Jean-Louis MONTEIRO <
> jean-louis.monteiro@atosorigin.com> wrote:
>
>>
>>
>>
>> KMalhi wrote:
>> >
>> > Caused by: java.io.FileNotFoundException:
>> > /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
>> > directory)
>> >     at java.io.FileInputStream.open(Native Method)
>> >     at java.io.FileInputStream.<init>(FileInputStream.java:137)
>> >     at java.io.FileInputStream.<init>(FileInputStream.java:96)
>> >     at
>> >
>> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
>> >
>>
>> WSS4J is trying to load default trust store from the JVM.
>> String cacertsPath = System.getProperty("java.home") +
>> "/lib/security/cacerts";
>>
>> Jean-Louis
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Karan Singh Malhi
>

Re: build fails due to webservice-ws-security example

Posted by Karan Malhi <ka...@gmail.com>.
Jean-Louis,

My cacerts file does not exist. Looks like this is broken in debian linux,
because the openjdk in debian (Lenny), the cacerts file is a link to
/etc/ssl/certs/java/cacerts, and that file does not exist . According to the
openjdk documentation, it right now ships with an empty cacerts file (unlike
the sun jdk). I guess, I will need to switch to sun jdk.

Thanks for the help.

On Mon, Aug 17, 2009 at 3:46 PM, Jean-Louis MONTEIRO <
jean-louis.monteiro@atosorigin.com> wrote:

>
>
>
> KMalhi wrote:
> >
> > Caused by: java.io.FileNotFoundException:
> > /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
> > directory)
> >     at java.io.FileInputStream.open(Native Method)
> >     at java.io.FileInputStream.<init>(FileInputStream.java:137)
> >     at java.io.FileInputStream.<init>(FileInputStream.java:96)
> >     at
> >
> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
> >
>
> WSS4J is trying to load default trust store from the JVM.
> String cacertsPath = System.getProperty("java.home") +
> "/lib/security/cacerts";
>
> Jean-Louis
>
>
>
> --
> View this message in context:
> http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
>


-- 
Karan Singh Malhi

Re: build fails due to webservice-ws-security example

Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.


KMalhi wrote:
> 
> Caused by: java.io.FileNotFoundException:
> /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts (No such file or
> directory)
>     at java.io.FileInputStream.open(Native Method)
>     at java.io.FileInputStream.<init>(FileInputStream.java:137)
>     at java.io.FileInputStream.<init>(FileInputStream.java:96)
>     at
> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:109)
> 

WSS4J is trying to load default trust store from the JVM.
String cacertsPath = System.getProperty("java.home") +
"/lib/security/cacerts";

Jean-Louis



-- 
View this message in context: http://www.nabble.com/build-fails-due-to-webservice-ws-security-example-tp25012817p25013001.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.