You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by jaybytez <ja...@gmail.com> on 2009/10/07 22:37:30 UTC
Running TestWSSecurityNewST2 - Caused by:
org.apache.ws.security.WSSecurityException: General security error (No
certificates were found for SAML signature)
I am trying to run the TestWSSecurityNewST2 and I get
"org.apache.ws.security.WSSecurityException: General security error (No
certificates were found for SAML signature)" on each one of the methods.
I am currently trying to use WSS4J with Spring to build SAML Assertions and
I get the same exceptions.
Any thoughts?
Thanks...jay
[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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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$AppClassLoader@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]
------------------------------------------------------------------------
--
View this message in context: http://www.nabble.com/Running-TestWSSecurityNewST2---Caused-by%3A-org.apache.ws.security.WSSecurityException%3A-General-security-error-%28No-certificates-were-found-for-SAML-signature%29-tp25793959p25793959.html
Sent from the WSS4J mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org