You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Jacek Laskowski <ja...@laskowski.net.pl> on 2009/12/20 12:15:57 UTC

Build error in webservice-ws-security example - looking for help

Hi,

I've recently moved to a brand new MacOS X laptop and while building
OpenEJB I'm experiencing an issue with the keystore mgmt in the
webservice-ws-security. Does anyoe know how to fix it? I don't and am
looking for a helping hand with it. I would love moving forward with
the OSGi stuff before dipping my toe in the limitless area of
WS-Security water. Any help appreciated. I'm considering turning it
off until it gets fixed.

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:141)
	at org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:112)
	at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:72)
	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)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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.security.UnrecoverableKeyException: Password verification failed
	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
	... 48 more
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)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Caused by: org.apache.ws.security.components.crypto.CredentialException:
Failed to load credentials. Inner Exception: [Keystore was tampered
with, or password was incorrect]
	at org.apache.ws.security.components.crypto.AbstractCrypto.load(AbstractCrypto.java:144)
	at org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:112)
	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:340)
	at java.lang.Class.newInstance(Class.java:308)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
Dec 20, 2009 2:22:15 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://wszystkojawne.pl
p.s. Szukam speca/firmy od grafiki/CSS/HTML

Re: Build error in webservice-ws-security example - looking for help

Posted by "Daniel S. Haischt" <da...@googlemail.com>.
David could run a quick test on OSX. AFAIK he's using a MacBook too :)

On Wed, Dec 23, 2009 at 1:03 PM, Jean-Louis MONTEIRO <
jean-louis.monteiro@atosorigin.com> wrote:

>
> Jacek,
>
> Did you try a 'mvn clean package'?
> I checked out a new version from the SVN repository and it works fine in my
> environment.
> By the way, i'm under
> Windows XP
> +
> java version "1.6.0_12"
> Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
> Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
>
> You said that your system was newly installed.
> IMO, there might be java runtime problem due to version change.
>
> If it's true, it should be solved by running a 'mvn clean package' command.
>
> Jean-Louis
>
>
>
> Jacek Laskowski wrote:
> >
> > On Sun, Dec 20, 2009 at 9:58 PM, Jean-Louis MONTEIRO
> > <je...@atosorigin.com> wrote:
> >
> >> I can have a look Thursday.
> >
> > Superb! Any help appreciated. I'm gonna leave it aside temporarily
> > hoping you have more luck figuring out what happens. Thanks.
> >
> > Jacek
> >
> > --
> > Jacek Laskowski
> > Notatnik Projektanta Java EE - http://wszystkojawne.pl
> > p.s. Szukam speca/firmy od grafiki/CSS/HTML
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Build-error-in-webservice-ws-security-example---looking-for-help-tp26862552p26900825.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
>

Re: Build error in webservice-ws-security example - looking for help

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Fri, Dec 25, 2009 at 1:25 AM, Daniel S. Haischt
<da...@googlemail.com> wrote:

> Question: Is it possible to determine from the continuous build produced by
> the build bot which change set initilly broke the build? I think that would
> be a great help in tracing the issue.

I think I have fixed it. At least, openejb builds fine on my laptop.

devmac:openejb3 jacek$ mvn clean install -Dassemble
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14 minutes 16 seconds
[INFO] Finished at: Fri Dec 25 02:18:00 CET 2009
[INFO] Final Memory: 144M/308M
[INFO] ------------------------------------------------------------------------

devmac:openejb3 jacek$ uname -a
Darwin devmac.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3
10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386

devmac:openejb3 jacek$ mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_17
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://wszystkojawne.pl
p.s. Szukam speca/firmy od grafiki/CSS/HTML

Re: Build error in webservice-ws-security example - looking for help

Posted by "Daniel S. Haischt" <da...@googlemail.com>.
 * Jacek Laskowski working on the issue with openejb...
 * Jacek Laskowski and can't figure out what's wrong
Daniel Stefan Haischt: me neither and I think I am getting a different error
to what you have been reporting on the ML

- 01:17 -
Daniel Stefan Haischt: when did it break the first time, i.e. when was the
last time we had a successful build ?
Daniel Stefan Haischt: the continuous build is pointless if it does not help
to get us aware of such issues
Jacek Laskowski: couldn't say it better

Question: Is it possible to determine from the continuous build produced by
the build bot which change set initilly broke the build? I think that would
be a great help in tracing the issue.

Cheers
Daniel

On Thu, Dec 24, 2009 at 9:19 PM, Jacek Laskowski <ja...@laskowski.net.pl>wrote:

> On Wed, Dec 23, 2009 at 1:03 PM, Jean-Louis MONTEIRO
> <je...@atosorigin.com> wrote:
>
> > Did you try a 'mvn clean package'?
>
> Yes, a couple of times and no joy so far. With the recent changes it's
> even worse as OpenEJB itself (not the sample alone) fails.
>
> devmac:openejb-jee jacek$ mvn --version
> Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
> Java version: 1.6.0_17
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"
>
> devmac:openejb-jee jacek$ pwd
> /Users/jacek/oss/openejb3/container/openejb-jee
>
> devmac:openejb-jee jacek$ mvn clean test
> -Dtest=org.apache.openejb.jee.oejb2.ConversionTest
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building OpenEJB :: Container :: Java EE
> [INFO]    task-segment: [clean, test]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting directory
> /Users/jacek/oss/openejb3/container/openejb-jee/target
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] [remote-resources:process {execution: default}]
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 1 resource
> [INFO] Copying 3 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 894 source files to
> /Users/jacek/oss/openejb3/container/openejb-jee/target/classes
> [INFO] [dependency-report:report {execution: default}]
> [INFO] [bundle:manifest {execution: bundle-manifest}]
> [INFO] [resources:testResources {execution: default-testResources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 24 resources
> [INFO] Copying 3 resources
> [INFO] [compiler:testCompile {execution: default-testCompile}]
> [INFO] Compiling 7 source files to
> /Users/jacek/oss/openejb3/container/openejb-jee/target/test-classes
> [INFO] [surefire:test {execution: default-test}]
> [INFO] Surefire report directory:
> /Users/jacek/oss/openejb3/container/openejb-jee/target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.openejb.jee.oejb2.ConversionTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.484
> sec <<< FAILURE!
>
> Results :
>
> Failed tests:
>  testConversion(org.apache.openejb.jee.oejb2.ConversionTest)
>
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
>
> Please refer to
> /Users/jacek/oss/openejb3/container/openejb-jee/target/surefire-reports
> for the individual test results.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 14 seconds
> [INFO] Finished at: Thu Dec 24 21:17:02 CET 2009
> [INFO] Final Memory: 37M/129M
> [INFO]
> ------------------------------------------------------------------------
>
> It's that the license header is missing after the conversion. Could
> you run the test on your system and see if it fails too?
>
> Jacek
>
> --
> Jacek Laskowski
> Notatnik Projektanta Java EE - http://wszystkojawne.pl
> p.s. Szukam speca/firmy od grafiki/CSS/HTML
>

Re: Build error in webservice-ws-security example - looking for help

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Wed, Dec 23, 2009 at 1:03 PM, Jean-Louis MONTEIRO
<je...@atosorigin.com> wrote:

> Did you try a 'mvn clean package'?

Yes, a couple of times and no joy so far. With the recent changes it's
even worse as OpenEJB itself (not the sample alone) fails.

devmac:openejb-jee jacek$ mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 15:04:01+0200)
Java version: 1.6.0_17
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"

devmac:openejb-jee jacek$ pwd
/Users/jacek/oss/openejb3/container/openejb-jee

devmac:openejb-jee jacek$ mvn clean test
-Dtest=org.apache.openejb.jee.oejb2.ConversionTest
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building OpenEJB :: Container :: Java EE
[INFO]    task-segment: [clean, test]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory /Users/jacek/oss/openejb3/container/openejb-jee/target
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 894 source files to
/Users/jacek/oss/openejb3/container/openejb-jee/target/classes
[INFO] [dependency-report:report {execution: default}]
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 24 resources
[INFO] Copying 3 resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 7 source files to
/Users/jacek/oss/openejb3/container/openejb-jee/target/test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
/Users/jacek/oss/openejb3/container/openejb-jee/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.openejb.jee.oejb2.ConversionTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.484
sec <<< FAILURE!

Results :

Failed tests:
  testConversion(org.apache.openejb.jee.oejb2.ConversionTest)

Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to
/Users/jacek/oss/openejb3/container/openejb-jee/target/surefire-reports
for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14 seconds
[INFO] Finished at: Thu Dec 24 21:17:02 CET 2009
[INFO] Final Memory: 37M/129M
[INFO] ------------------------------------------------------------------------

It's that the license header is missing after the conversion. Could
you run the test on your system and see if it fails too?

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://wszystkojawne.pl
p.s. Szukam speca/firmy od grafiki/CSS/HTML

Re: Build error in webservice-ws-security example - looking for help

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

Did you try a 'mvn clean package'?
I checked out a new version from the SVN repository and it works fine in my
environment.
By the way, i'm under 
Windows XP 
+
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

You said that your system was newly installed.
IMO, there might be java runtime problem due to version change.

If it's true, it should be solved by running a 'mvn clean package' command.

Jean-Louis



Jacek Laskowski wrote:
> 
> On Sun, Dec 20, 2009 at 9:58 PM, Jean-Louis MONTEIRO
> <je...@atosorigin.com> wrote:
> 
>> I can have a look Thursday.
> 
> Superb! Any help appreciated. I'm gonna leave it aside temporarily
> hoping you have more luck figuring out what happens. Thanks.
> 
> Jacek
> 
> -- 
> Jacek Laskowski
> Notatnik Projektanta Java EE - http://wszystkojawne.pl
> p.s. Szukam speca/firmy od grafiki/CSS/HTML
> 
> 

-- 
View this message in context: http://old.nabble.com/Build-error-in-webservice-ws-security-example---looking-for-help-tp26862552p26900825.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: Build error in webservice-ws-security example - looking for help

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Sun, Dec 20, 2009 at 9:58 PM, Jean-Louis MONTEIRO
<je...@atosorigin.com> wrote:

> I can have a look Thursday.

Superb! Any help appreciated. I'm gonna leave it aside temporarily
hoping you have more luck figuring out what happens. Thanks.

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://wszystkojawne.pl
p.s. Szukam speca/firmy od grafiki/CSS/HTML

Re: Build error in webservice-ws-security example - looking for help

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

I gonna be out out until mid week.
I can have a look Thursday.

Jean-Louis


Jacek Laskowski wrote:
> 
> Hi,
> 
> I've recently moved to a brand new MacOS X laptop and while building
> OpenEJB I'm experiencing an issue with the keystore mgmt in the
> webservice-ws-security. Does anyoe know how to fix it? I don't and am
> looking for a helping hand with it. I would love moving forward with
> the OSGi stuff before dipping my toe in the limitless area of
> WS-Security water. Any help appreciated. I'm considering turning it
> off until it gets fixed.
> 
> 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:141)
> 	at
> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:112)
> 	at org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:72)
> 	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)
> 	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:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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.security.UnrecoverableKeyException: Password verification
> failed
> 	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
> 	... 48 more
> 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)
> 	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:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Caused by: org.apache.ws.security.components.crypto.CredentialException:
> Failed to load credentials. Inner Exception: [Keystore was tampered
> with, or password was incorrect]
> 	at
> org.apache.ws.security.components.crypto.AbstractCrypto.load(AbstractCrypto.java:144)
> 	at
> org.apache.ws.security.components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:112)
> 	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:340)
> 	at java.lang.Class.newInstance(Class.java:308)
> 	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:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
> 	at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Dec 20, 2009 2:22:15 AM org.apache.cxf.phase.PhaseInterceptorChain
> doIntercept
> 
> Jacek
> 
> -- 
> Jacek Laskowski
> Notatnik Projektanta Java EE - http://wszystkojawne.pl
> p.s. Szukam speca/firmy od grafiki/CSS/HTML
> 
> 

-- 
View this message in context: http://old.nabble.com/Build-error-in-webservice-ws-security-example---looking-for-help-tp26862552p26867239.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.


Re: Build error in webservice-ws-security example - looking for help

Posted by David Blevins <da...@visi.com>.
I did see this as well and it was on a clean build.  On my second  
clean build however, the problem went away and all is fine now.  Built  
from a couple different directories just in case this was a relative  
path thing.

All seems to be good for me at least.

-David

On Dec 20, 2009, at 12:15 PM, Jacek Laskowski wrote:

> Hi,
>
> I've recently moved to a brand new MacOS X laptop and while building
> OpenEJB I'm experiencing an issue with the keystore mgmt in the
> webservice-ws-security. Does anyoe know how to fix it? I don't and am
> looking for a helping hand with it. I would love moving forward with
> the OSGi stuff before dipping my toe in the limitless area of
> WS-Security water. Any help appreciated. I'm considering turning it
> off until it gets fixed.
>
> 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: 
> 141)
> 	at  
> org 
> .apache 
> .ws 
> .security 
> .components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:112)
> 	at  
> org.apache.ws.security.components.crypto.Merlin.<init>(Merlin.java:72)
> 	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)
> 	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:39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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.security.UnrecoverableKeyException: Password  
> verification failed
> 	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java: 
> 769)
> 	... 48 more
> 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)
> 	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:39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at  
> org 
> .apache 
> .maven 
> .surefire 
> .booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
> 	at  
> org 
> .apache 
> .maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Caused by:  
> org.apache.ws.security.components.crypto.CredentialException:
> Failed to load credentials. Inner Exception: [Keystore was tampered
> with, or password was incorrect]
> 	at  
> org 
> .apache 
> .ws 
> .security.components.crypto.AbstractCrypto.load(AbstractCrypto.java: 
> 144)
> 	at  
> org 
> .apache 
> .ws 
> .security 
> .components.crypto.AbstractCrypto.<init>(AbstractCrypto.java:112)
> 	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:340)
> 	at java.lang.Class.newInstance(Class.java:308)
> 	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:39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	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:39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at  
> org 
> .apache 
> .maven 
> .surefire 
> .booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
> 	at  
> org 
> .apache 
> .maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
> Dec 20, 2009 2:22:15 AM org.apache.cxf.phase.PhaseInterceptorChain  
> doIntercept
>
> Jacek
>
> -- 
> Jacek Laskowski
> Notatnik Projektanta Java EE - http://wszystkojawne.pl
> p.s. Szukam speca/firmy od grafiki/CSS/HTML
>