[ https://issues.apache.org/jira/browse/WSS-213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771600#action_12771600 ]
Jay Blanton commented on WSS-213: --------------------------------- Thank you very much Colm. I probably can close this bug now because I got it working after I followed your suggestions. I was able to successfully build a SAML Assertion without getting the General security error. The SAML Assertion produced is not the same as the one I need, so I just need to figure out through the forums on how to Sign the Assertion, not the message itself. The one I need is like this (so I also need to add a Conditions statement if possible): <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <Assertion xmlns="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" AssertionID="_a80ca890be635405680be55ac4ee6d93" IssueInstant="2008-03-07T17:47:56.848Z" Issuer="www.foo.com/saml" MajorVersion="1" MinorVersion="1"> <Conditions NotBefore="2008-03-07T17:46:16.770Z" NotOnOrAfter="2008-03-07T17:49:36.770Z" /> <AuthenticationStatement AuthenticationInstant="2008-03-07T17:47:56.770Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password"> <Subject> <NameIdentifier>sample_foo</NameIdentifier> <SubjectConfirmation> <ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:sender-vouches </ConfirmationMethod> </SubjectConfirmation> </Subject> </AuthenticationStatement> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> <ds:Reference URI="#_a80ca890be635405680be55ac4ee6d93"> <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="code ds kind rw saml samlp typens #default xsd xsi" /> </ds:Transform> </ds:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <ds:DigestValue>0ywwQM3nARW323423423H+0kVdUyw4=</ds:DigestValue> </ds:Reference> </ds:SignedInfo> <ds:SignatureValue> asdjdsjsakhfk2324h234kj2hkh23kkjj2hkhitwScJBT6vM48eKkmWBIhXJrLH8MKQ5dVApKmBm ZKZhjDW2+8qrrsVDWHXLt7zEFrwmLasdfsadf8MbCTTgiukAlkygwpJeC2W7tFdLL+Cj0hppJJ/N F9so+/1ohJciQ99KfOg= </ds:SignatureValue> </ds:Signature> </Assertion> </wsse:Security> The one that was generated looks like this: <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1"> <Assertion xmlns="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol" AssertionID="_841476b57b62a33f09e713cb5b00227a" IssueInstant="2009-10-29T20:39:17.458Z" Issuer="www.foo.com/saml" MajorVersion="1" MinorVersion="1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AuthenticationStatement AuthenticationInstant="2009-10-29T20:39:17.448Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password"> <Subject> <NameIdentifier>sample_foo</NameIdentifier> <SubjectConfirmation> <ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:sender-vouches</ConfirmationMethod> </SubjectConfirmation> </Subject> </AuthenticationStatement> </Assertion> <wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRSAMLId-813BCA6C616ADD2FD112568487575664" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:Reference URI="#_841476b57b62a33f09e713cb5b00227a" ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" /> </wsse:SecurityTokenReference> <wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-813BCA6C616ADD2FD112568487575663" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">MIICOTCCAaKgAwIBAgIESuIEBjANBgkqhkiG9w0BAQUFADBhMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExEzARBgNVBAcTClNhY3JhbWVudG8xEDAOBgNVBAoTB0ZvbyBJbmMxDDAKBgNVBAsTA2N0bzEQMA4GA1UEAxMHZm9vcHJvZDAeFw0wOTEwMjMxOTI5MTBaFw0xOTEwMjExOTI5MTBaMGExCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTETMBEGA1UEBxMKU2FjcmFtZW50bzEQMA4GA1UEChMHRm9vIEluYzEMMAoGA1UECxMDY3RvMRAwDgYDVQQDEwdmb29wcm9kMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCSqSJmuu16jhF/Wro/bkaSo+eqqCRxwfcH8VkeOVHgmyHK3DH6hav43FepNgR1pnOxiu7oHEVIGqLgFU5T1Lb82Y7DNfnmNQfRswGf900k687wm14H73uJe5XNg+craDR2cv5POV6sqCU+WTLmykKs3X89CXWKxpGGYnFS2SnsqQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAF/HmyXcKgqqFke15C2fTRzPV+OZ2Txe/QvNaQ7PrYk3uk3K9gIgT773cBsdYPepEN1WCzALWew9HBEJyunCYcSi6wY3EqDXdXjsDG3ZNXzWcv88x8gHgoKpws+1xQ5FCOXgc0EUISeX2g+QIlnbrC926e6pDro0nnx3zCEeUzqa </wsse:BinarySecurityToken> <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-1"> <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> <ds:Reference URI="#STRSAMLId-813BCA6C616ADD2FD112568487575664"> <ds:Transforms> <ds:Transform Algorithm="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#STR-Transform"> <wsse:TransformationParameters xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" /> </wsse:TransformationParameters> </ds:Transform> </ds:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <ds:DigestValue>ueNtY5s89fxfAWxuZr1L79j5W68=</ds:DigestValue> </ds:Reference> <ds:Reference URI="#id-2"> <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /> </ds:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <ds:DigestValue>cFoMux4UEiqzRSXPHWwTO/v62jk=</ds:DigestValue> </ds:Reference> </ds:SignedInfo> <ds:SignatureValue> Q8mjQXS0ddrfbOVY0DmbHCjfQ2ZM0yT1T1Ryw1uIyAe7opp4SrjU/gV57YnyCaurxj8npdocEjBm kDcMfhqV7V1l1oXFfTgPPb/MTUhTDdvR0Trx0M04+Ntlh5FR+HFXtGj2vZpE091o6f6KDOGfbALQ ppBQTKIlt13FSQPSPHU= </ds:SignatureValue> <ds:KeyInfo Id="KeyId-813BCA6C616ADD2FD112568487575641" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-813BCA6C616ADD2FD112568487575662" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:Reference URI="#CertId-813BCA6C616ADD2FD112568487575663" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" /> </wsse:SecurityTokenReference> </ds:KeyInfo> </ds:Signature> </wsse:Security> Thank you so much for your help!....jay > 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