[ https://issues.apache.org/jira/browse/WSS-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12769388#action_12769388 ]
Jay Blanton edited comment on WSS-213 at 10/23/09 7:54 PM: ----------------------------------------------------------- I just attached (wss4j.saml-jks.tar.gz) to this response. Okay, so the information you gave me about JCE helped me. I was able to run the TestWSSecurityNewST2.java example with OpenJDK an Sun's JDK (where before I was getting a NPE). Thanks!!! The next step I did was then take that example which does a SAML Signed Sender Voucher and switch the key type to use a jks keystore, which is what is at the core of my problem. So I introduced my companies keystore and information, but I get the "General security certificate error again". So what I did is follow the same steps to create a new test keystore and cer file using the following commands. keytool -genkey -alias fooprod -keyalg RSA -dname "CN=fooprod, OU=cto, O=Foo Inc, L=Sacramento, ST=CA, C=US" -validity 3650 -keystore fooidprod.jks -storepass password -keypass password keytool -export -alias fooprod -file fooprod.cer -keystore fooidprod.jks -storepass password I then used the project attached to this ticket and added the jks and cer files includng the information necessary in the properties files. I also included a sample SAML Assertion (not valid because I mixed some of the information), but its a valid format for what we currently produce using OpenSAML. It does appear that the following fields (int the properties files saml/crypto) are not relevant to the keystore creation and seem to be based more on the endpoint PEP (I guess): org.apache.ws.security.saml.issuer.key.name=sample_foo org.apache.ws.security.saml.issuer=www.foo.com/saml org.apache.ws.security.saml.subjectNameId.qualifier=www.foo.com/saml I have the console display below where I verify the keystore, and then I run "mvn clean package" that produces the errors". Is there an actual issue or am I providing the wrong information in the properties files. If I can fix this, then I can fix my custom interceptor for Spring Web Services, and then I can suggest an enhancement to Spring Web Services to expose the WSS4J support of SAML Tokens. I really really appreciate your time and insight into this. Thanks...jay a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks$ cd src/test/resources/ a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/src/test/resources$ keytool -list -v -keystore fooidprod.jks -alias fooprod Enter keystore password: Alias name: fooprod Creation date: Oct 23, 2009 Entry type: PrivateKeyEntry Certificate chain length: 1 Certificate[1]: Owner: CN=fooprod, OU=cto, O=Foo Inc, L=Sacramento, ST=CA, C=US Issuer: CN=fooprod, OU=cto, O=Foo Inc, L=Sacramento, ST=CA, C=US Serial number: 4ae20406 Valid from: Fri Oct 23 12:29:10 PDT 2009 until: Mon Oct 21 12:29:10 PDT 2019 Certificate fingerprints: MD5: 29:AF:0F:DA:63:69:96:84:A3:CF:1B:D7:8A:F8:7A:CA SHA1: 8E:2C:29:8B:79:64:79:F0:9D:4D:81:F5:65:51:5C:B8:D9:E3:8D:AB Signature algorithm name: SHA1withRSA Version: 3 a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/src/test/resources$ cd ../../../ a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks$ mvn clean package[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Saml Sample Client [INFO] task-segment: [clean, package] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory /home/a068071/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/target [INFO] Preparing pmd:check [INFO] [pmd:pmd] [INFO] [pmd:check {execution: validate}] [INFO] [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] inceptionYear not specified, defaulting to 2009 [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Compiling 4 source files to /home/a068071/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/target/test-classes [INFO] [surefire:test] [INFO] Surefire report directory: /home/a068071/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running wssec.PackageTests - Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl] - Before SAMLSignedSenderVouches.... - Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl] - Before SAMLSignedSenderVouches.... - Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl] - Before SAMLSignedSenderVouches.... - Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl] Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 5.512 sec <<< FAILURE! testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2) Time elapsed: 2.918 sec <<< ERROR! org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature) at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) at wssec.TestWSSecurityNewST2.testSAMLSignedSenderVouches(TestWSSecurityNewST2.java:146) testSAMLSignedSenderVouchesKeyIdentifier(wssec.TestWSSecurityNewST2) Time elapsed: 0.008 sec <<< ERROR! org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature) at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) at wssec.TestWSSecurityNewST2.testSAMLSignedSenderVouchesKeyIdentifier(TestWSSecurityNewST2.java:189) testDefaultIssuerClass(wssec.TestWSSecurityNewST2) Time elapsed: 0.017 sec <<< ERROR! org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature) at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) at wssec.TestWSSecurityNewST2.testDefaultIssuerClass(TestWSSecurityNewST2.java:234) testWSS62(wssec.TestWSSecurityNewST2) Time elapsed: 0.008 sec <<< ERROR! org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature) at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) at wssec.TestWSSecurityNewST2.testWSS62(TestWSSecurityNewST2.java:276) Results : Tests in error: testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2) testSAMLSignedSenderVouchesKeyIdentifier(wssec.TestWSSecurityNewST2) testDefaultIssuerClass(wssec.TestWSSecurityNewST2) testWSS62(wssec.TestWSSecurityNewST2) Tests run: 4, Failures: 0, Errors: 4, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. Please refer to /home/a068071/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/target/surefire-reports for the individual test results. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23 seconds [INFO] Finished at: Fri Oct 23 12:44:19 PDT 2009 [INFO] Final Memory: 18M/32M [INFO] ------------------------------------------------------------------------ a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks$ was (Author: jaybytez): Okay, so the information you gave me about JCE helped me. I was able to run the TestWSSecurityNewST2.java example with OpenJDK an Sun's JDK (where before I was getting a NPE). Thanks!!! The next step I did was then take that example which does a SAML Signed Sender Voucher and switch the key type to use a jks keystore, which is what is at the core of my problem. So I introduced my companies keystore and information, but I get the "General security certificate error again". So what I did is follow the same steps to create a new test keystore and cer file using the following commands. keytool -genkey -alias fooprod -keyalg RSA -dname "CN=fooprod, OU=cto, O=Foo Inc, L=Sacramento, ST=CA, C=US" -validity 3650 -keystore fooidprod.jks -storepass password -keypass password keytool -export -alias fooprod -file fooprod.cer -keystore fooidprod.jks -storepass password I then used the project attached to this ticket and added the jks and cer files includng the information necessary in the properties files. I also included a sample SAML Assertion (not valid because I mixed some of the information), but its a valid format for what we currently produce using OpenSAML. It does appear that the following fields (int the properties files saml/crypto) are not relevant to the keystore creation and seem to be based more on the endpoint PEP (I guess): org.apache.ws.security.saml.issuer.key.name=sample_foo org.apache.ws.security.saml.issuer=www.foo.com/saml org.apache.ws.security.saml.subjectNameId.qualifier=www.foo.com/saml I have the console display below where I verify the keystore, and then I run "mvn clean package" that produces the errors". Is there an actual issue or am I providing the wrong information in the properties files. If I can fix this, then I can fix my custom interceptor for Spring Web Services, and then I can suggest an enhancement to Spring Web Services to expose the WSS4J support of SAML Tokens. I really really appreciate your time and insight into this. Thanks...jay a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks$ cd src/test/resources/ a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/src/test/resources$ keytool -list -v -keystore fooidprod.jks -alias fooprod Enter keystore password: Alias name: fooprod Creation date: Oct 23, 2009 Entry type: PrivateKeyEntry Certificate chain length: 1 Certificate[1]: Owner: CN=fooprod, OU=cto, O=Foo Inc, L=Sacramento, ST=CA, C=US Issuer: CN=fooprod, OU=cto, O=Foo Inc, L=Sacramento, ST=CA, C=US Serial number: 4ae20406 Valid from: Fri Oct 23 12:29:10 PDT 2009 until: Mon Oct 21 12:29:10 PDT 2019 Certificate fingerprints: MD5: 29:AF:0F:DA:63:69:96:84:A3:CF:1B:D7:8A:F8:7A:CA SHA1: 8E:2C:29:8B:79:64:79:F0:9D:4D:81:F5:65:51:5C:B8:D9:E3:8D:AB Signature algorithm name: SHA1withRSA Version: 3 a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/src/test/resources$ cd ../../../ a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks$ mvn clean package[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building Saml Sample Client [INFO] task-segment: [clean, package] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean] [INFO] Deleting directory /home/a068071/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/target [INFO] Preparing pmd:check [INFO] [pmd:pmd] [INFO] [pmd:check {execution: validate}] [INFO] [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] inceptionYear not specified, defaulting to 2009 [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Compiling 4 source files to /home/a068071/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/target/test-classes [INFO] [surefire:test] [INFO] Surefire report directory: /home/a068071/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running wssec.PackageTests - Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl] - Before SAMLSignedSenderVouches.... - Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl] - Before SAMLSignedSenderVouches.... - Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl] - Before SAMLSignedSenderVouches.... - Using Crypto Engine [org.apache.ws.security.saml.SAMLIssuerImpl] Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 5.512 sec <<< FAILURE! testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2) Time elapsed: 2.918 sec <<< ERROR! org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature) at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) at wssec.TestWSSecurityNewST2.testSAMLSignedSenderVouches(TestWSSecurityNewST2.java:146) testSAMLSignedSenderVouchesKeyIdentifier(wssec.TestWSSecurityNewST2) Time elapsed: 0.008 sec <<< ERROR! org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature) at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) at wssec.TestWSSecurityNewST2.testSAMLSignedSenderVouchesKeyIdentifier(TestWSSecurityNewST2.java:189) testDefaultIssuerClass(wssec.TestWSSecurityNewST2) Time elapsed: 0.017 sec <<< ERROR! org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature) at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) at wssec.TestWSSecurityNewST2.testDefaultIssuerClass(TestWSSecurityNewST2.java:234) testWSS62(wssec.TestWSSecurityNewST2) Time elapsed: 0.008 sec <<< ERROR! org.apache.ws.security.WSSecurityException: General security error (No certificates were found for SAML signature) at org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) at org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) at wssec.TestWSSecurityNewST2.testWSS62(TestWSSecurityNewST2.java:276) Results : Tests in error: testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2) testSAMLSignedSenderVouchesKeyIdentifier(wssec.TestWSSecurityNewST2) testDefaultIssuerClass(wssec.TestWSSecurityNewST2) testWSS62(wssec.TestWSSecurityNewST2) Tests run: 4, Failures: 0, Errors: 4, Skipped: 0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] There are test failures. Please refer to /home/a068071/Public/Development/eclipse3.5-workspace/wss4j.saml-jks/target/surefire-reports for the individual test results. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23 seconds [INFO] Finished at: Fri Oct 23 12:44:19 PDT 2009 [INFO] Final Memory: 18M/32M [INFO] ------------------------------------------------------------------------ a068...@a068071-desktop:~/Public/Development/eclipse3.5-workspace/wss4j.saml-jks$ > Running TestWSSecurityNewST2 Fails - General security error (No certificates > were found for SAML signature) > ----------------------------------------------------------------------------------------------------------- > > Key: WSS-213 > URL: https://issues.apache.org/jira/browse/WSS-213 > Project: WSS4J > Issue Type: Bug > Affects Versions: 1.5.8 > Environment: OS = Ubuntu 9.04 > Eclipse = JEE Eclipse, Galileo, STS, m2eclipse > JDK = java-6-sun-1.6.0.16, java-1.5.0-sun-1.5.0.19 (attempted as well) > Reporter: Jay Blanton > Assignee: Ruchith Udayanga Fernando > Priority: Critical > Attachments: wss4j.saml-jks.tar.gz, wss4j.saml.tar.gz > > > I pulled down the 1.5.8, 1.5.8-SNAPSHOT, and pulled down the trunk for 1.6. > I tried to build the trunk by doing a mvn package -Dmaven.test.skip=true > (because quite a few unit tests fail). > Then I try to run TestWSSecurityNewST2 and it fails. > This is the exact issue I am having when trying to get my Spring Web Service > Implementation to work with WSS4J's SAML Support (which it appears that > Spring does not expose so I have to create a custom Interceptor). > I have working examples of a digital signature, encryption, and UsernameToken > with Spring Web Services support for SAML, but the SAML is not working. So I > specifically went to the WSS4J examples to see if I could get those working > first, and then working with my keystores, but the default test does not work > for me that shipped with WSS4J. > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Ping Web Service Client > [INFO] > [INFO] Id: com.foo:ping.ws-saml:jar:0.0.1-SNAPSHOT > [INFO] task-segment: [package] > [INFO] > ------------------------------------------------------------------------ > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > url = http://repo1.maven.org/maven2 > Downloading: > http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > url = http://static.appfuse.org/repository > Downloading: > http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > url = http://repository.jboss.com/maven2 > Downloading: > http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > [INFO] [compiler:compile] > [INFO] Compiling 10 source files to > /home/a068071/Public/Development/eclipse3.5-workspace/ping.ws-saml/target/classes > url = http://repo1.maven.org/maven2 > Downloading: > http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > url = http://static.appfuse.org/repository > Downloading: > http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > url = http://repository.jboss.com/maven2 > Downloading: > http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > [INFO] [jibx:bind] > [INFO] Not running JiBX binding compiler (single-module mode) - no binding > files > [INFO] [resources:testResources] > [INFO] Using default encoding to copy filtered resources. > url = http://repo1.maven.org/maven2 > Downloading: > http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > url = http://static.appfuse.org/repository > Downloading: > http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > url = http://repository.jboss.com/maven2 > Downloading: > http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > [INFO] [compiler:testCompile] > [INFO] Compiling 4 source files to > /home/a068071/Public/Development/eclipse3.5-workspace/ping.ws-saml/target/test-classes > url = http://repo1.maven.org/maven2 > Downloading: > http://repo1.maven.org/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > url = http://static.appfuse.org/repository > Downloading: > http://static.appfuse.org/repository/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > url = http://repository.jboss.com/maven2 > Downloading: > http://repository.jboss.com/maven2/com/sun/xml/wss/xws-security/2.0-FCS/xws-security-2.0-FCS.pom > [INFO] [surefire:test] > [INFO] Surefire report directory: > /home/a068071/Public/Development/eclipse3.5-workspace/ping.ws-saml/target/surefire-reports > DEBUG [security.util.Loader] Trying to find [crypto.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > DEBUG [components.crypto.CryptoFactory] Using Crypto Engine > [org.apache.ws.security.components.crypto.Merlin] > DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded > DEBUG [security.util.Loader] Trying to find [crypto.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > DEBUG [components.crypto.CryptoFactory] Using Crypto Engine > [org.apache.ws.security.components.crypto.Merlin] > DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded > DEBUG [security.util.Loader] Trying to find [crypto.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > DEBUG [components.crypto.CryptoFactory] Using Crypto Engine > [org.apache.ws.security.components.crypto.Merlin] > DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded > DEBUG [security.util.Loader] Trying to find [crypto.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > DEBUG [components.crypto.CryptoFactory] Using Crypto Engine > [org.apache.ws.security.components.crypto.Merlin] > DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running wssec.TestWSSecurityNewST2 > DEBUG [security.util.Loader] Trying to find [saml.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > INFO [security.saml.SAMLIssuerFactory] Using Crypto Engine > [org.apache.ws.security.saml.SAMLIssuerImpl] > DEBUG [security.util.Loader] Trying to find [crypto.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > DEBUG [components.crypto.CryptoFactory] Using Crypto Engine > [org.apache.ws.security.components.crypto.Merlin] > DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded > DEBUG [security.saml.SAMLIssuerImpl] Begin add SAMLAssertion token... > INFO [wssec.TestWSSecurityNewST2] Before SAMLSignedSenderVouches.... > DEBUG [security.saml.WSSecSignatureSAML] Beginning ST signing... > DEBUG [security.util.Loader] Trying to find [saml.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > INFO [security.saml.SAMLIssuerFactory] Using Crypto Engine > [org.apache.ws.security.saml.SAMLIssuerImpl] > DEBUG [security.util.Loader] Trying to find [crypto.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > DEBUG [components.crypto.CryptoFactory] Using Crypto Engine > [org.apache.ws.security.components.crypto.Merlin] > DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded > DEBUG [security.saml.SAMLIssuerImpl] Begin add SAMLAssertion token... > INFO [wssec.TestWSSecurityNewST2] Before SAMLSignedSenderVouches.... > DEBUG [security.saml.WSSecSignatureSAML] Beginning ST signing... > DEBUG [security.util.Loader] Trying to find [saml3.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > INFO [security.saml.SAMLIssuerFactory] Using Crypto Engine > [org.apache.ws.security.saml.SAMLIssuerImpl] > DEBUG [security.util.Loader] Trying to find [crypto.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > DEBUG [components.crypto.CryptoFactory] Using Crypto Engine > [org.apache.ws.security.components.crypto.Merlin] > DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded > DEBUG [security.saml.SAMLIssuerImpl] Begin add SAMLAssertion token... > INFO [wssec.TestWSSecurityNewST2] Before SAMLSignedSenderVouches.... > DEBUG [security.saml.WSSecSignatureSAML] Beginning ST signing... > DEBUG [security.util.Loader] Trying to find [saml.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > INFO [security.saml.SAMLIssuerFactory] Using Crypto Engine > [org.apache.ws.security.saml.SAMLIssuerImpl] > DEBUG [security.util.Loader] Trying to find [crypto.properties] using > sun.misc.launcher$appclassloa...@133056f class loader. > DEBUG [components.crypto.CryptoFactory] Using Crypto Engine > [org.apache.ws.security.components.crypto.Merlin] > DEBUG [components.crypto.AbstractCrypto] CA certs have been loaded > DEBUG [security.saml.SAMLIssuerImpl] Begin add SAMLAssertion token... > DEBUG [security.saml.WSSecSignatureSAML] Beginning ST signing... > Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.222 sec <<< > FAILURE! > Results : > Tests in error: > testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2) > testSAMLSignedSenderVouchesKeyIdentifier(wssec.TestWSSecurityNewST2) > testDefaultIssuerClass(wssec.TestWSSecurityNewST2) > testWSS62(wssec.TestWSSecurityNewST2) > Tests run: 5, Failures: 0, Errors: 5, Skipped: 0 > [ERROR] > Mojo: > org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test > FAILED for project: > com.foo:ping.ws-saml:jar:0.0.1-SNAPSHOT > Reason: > There are test failures. > Please refer to > /home/jay/Public/Development/eclipse3.5-workspace/ping.ws-saml/target/surefire-reports > for the individual test results. > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run with the -e flag > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILED > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 16 seconds > [INFO] Finished at: Wed Oct 07 13:29:03 PDT 2009 > [INFO] Final Memory: 4M/25M > [INFO] > ------------------------------------------------------------------------ > Here is the errors from the test report: > ------------------------------------------------------------------------------- > Test set: wssec.TestWSSecurityNewST2 > ------------------------------------------------------------------------------- > Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.731 sec <<< > FAILURE! > testSAMLSignedSenderVouches(wssec.TestWSSecurityNewST2) Time elapsed: 0.486 > sec <<< ERROR! > org.apache.ws.security.WSSecurityException: General security error (No > certificates were found for SAML signature) > at > org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) > at > org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) > at > wssec.TestWSSecurityNewST2.testSAMLSignedSenderVouches(TestWSSecurityNewST2.java:114) > 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:585) > 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 > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > 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:585) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) > testSAMLSignedSenderVouchesKeyIdentifier(wssec.TestWSSecurityNewST2) Time > elapsed: 0.064 sec <<< ERROR! > org.apache.ws.security.WSSecurityException: General security error (No > certificates were found for SAML signature) > at > org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) > at > org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) > at > wssec.TestWSSecurityNewST2.testSAMLSignedSenderVouchesKeyIdentifier(TestWSSecurityNewST2.java:156) > 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:585) > 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 > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > 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:585) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) > testDefaultIssuerClass(wssec.TestWSSecurityNewST2) Time elapsed: 0.156 sec > <<< ERROR! > org.apache.ws.security.WSSecurityException: General security error (No > certificates were found for SAML signature) > at > org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) > at > org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) > at > wssec.TestWSSecurityNewST2.testDefaultIssuerClass(TestWSSecurityNewST2.java:200) > 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:585) > 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 > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > 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:585) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) > testWSS62(wssec.TestWSSecurityNewST2) Time elapsed: 0.011 sec <<< ERROR! > org.apache.ws.security.WSSecurityException: General security error (No > certificates were found for SAML signature) > at > org.apache.ws.security.saml.WSSecSignatureSAML.prepare(WSSecSignatureSAML.java:276) > at > org.apache.ws.security.saml.WSSecSignatureSAML.build(WSSecSignatureSAML.java:110) > at wssec.TestWSSecurityNewST2.testWSS62(TestWSSecurityNewST2.java:241) > 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:585) > 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 > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > 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:585) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997) > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: wss4j-dev-unsubscr...@ws.apache.org For additional commands, e-mail: wss4j-dev-h...@ws.apache.org