SourceID1.2 and WSAD5.1 -Federation Error-

NUMATA Masahito <[email protected]> Wed, 26 Jan 2005 10:46:30 +0900
Newsgroups gmane.comp.sourceid.sso.user
Message-ID <[email protected]>
 Hello,

 I am a new SourceID.java user.
 I am trying to run the demo application using SourceID.Java 1.2 
and Websphere 5.1 . WSAD uses IBM JVM 1.4.1 , and I deploy sp and idp 
in two seperate machines.
 
 SP and IDP work fine in themselves, but when trying to federate
I get the error .
 For further information , see below.

1. go to SP and login
2. click on the "Click to Federate" link
3. redirected IdP and enter credentials
4. click on submit
5. EXCEPTION as stated below

An error occured. Replace this page (or the pointer in sourceid-sso.xml) with a "real" error page. 

		=== Throwable (or Exception) information ===
throwable class name: org.apache.xml.security.signature.XMLSignatureException
toString(): org.apache.xml.security.signature.XMLSignatureException: The requested algorithm http://www.w3.org/2000/09/xmldsig#rsa-sha1 does not exist. Original Message was: null
Original Exception was java.lang.NullPointerException
getMessage(): The requested algorithm http://www.w3.org/2000/09/xmldsig#rsa-sha1 does not exist. Original Message was: null
Stack Trace: org.apache.xml.security.signature.XMLSignatureException: The requested algorithm http://www.w3.org/2000/09/xmldsig#rsa-sha1 does not exist. Original Message was: null
Original Exception was java.lang.NullPointerException
	at org.apache.xml.security.algorithms.SignatureAlgorithm.(SignatureAlgorithm.java:148)
	at org.apache.xml.security.signature.SignedInfo.(SignedInfo.java:154)
	at org.apache.xml.security.signature.XMLSignature.(XMLSignature.java:236)
	at org.apache.xml.security.signature.XMLSignature.(XMLSignature.java:214)
	at org.sourceid.sso.util.XMLUtils.sign(XMLUtils.java:430)
	at org.sourceid.sso.servlets.AuthnRequestor.consumeResponse(AuthnRequestor.java:503)
	at org.sourceid.sso.servlets.AuthnRequestor.service(AuthnRequestor.java:105)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
	at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
	at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
	at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
	at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
	at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
	at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
	at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
	at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
	at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
	at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
	at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
java.lang.NullPointerException
	at org.apache.xml.security.algorithms.implementations.SignatureBaseRSA.(SignatureBaseRSA.java:111)
	at org.apache.xml.security.algorithms.implementations.SignatureBaseRSA$SignatureRSASHA1.(SignatureBaseRSA.java:368)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:79)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:43)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:313)
	at java.lang.Class.newInstance3(Class.java:363)
	at java.lang.Class.newInstance(Class.java:301)
	at org.apache.xml.security.algorithms.SignatureAlgorithm.(SignatureAlgorithm.java:127)
	at org.apache.xml.security.signature.SignedInfo.(SignedInfo.java:154)
	at org.apache.xml.security.signature.XMLSignature.(XMLSignature.java:236)
	at org.apache.xml.security.signature.XMLSignature.(XMLSignature.java:214)
	at org.sourceid.sso.util.XMLUtils.sign(XMLUtils.java:430)
	at org.sourceid.sso.servlets.AuthnRequestor.consumeResponse(AuthnRequestor.java:503)
	at org.sourceid.sso.servlets.AuthnRequestor.service(AuthnRequestor.java:105)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
	at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
	at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
	at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
	at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
	at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
	at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
	at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
	at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
	at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
	at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
	at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
	at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)



=== This is a debug dump of the HTTP Request we are currently processing ===
Liberty ProviderID of this context: SourceID-Sample-SP
Liberty Role       of this context: sp
=== Parameters (Form and/or Querystring) ===
Requested URL: http://172.24.152.122:8080/sso-sample-sp/defaultExceptionHandler.jsp
Unparsed QueryString: SAMLart=AAMLx0NDCozXgVrYIgCwBg5OsdLIe7%2BQMA4CCtwmkCYcC%2BEpb5KuDMFr
SAMLart: AAMLx0NDCozXgVrYIgCwBg5OsdLIe7+QMA4CCtwmkCYcC+Epb5KuDMFr
=== Request Attributes ===
com.ibm.servlet.engine.webapp.dispatch_nested: true
javax.servlet.jsp.jspException: org.apache.xml.security.signature.XMLSignatureException: The requested algorithm http://www.w3.org/2000/09/xmldsig#rsa-sha1 does not exist. Original Message was: null
Original Exception was java.lang.NullPointerException
com.ibm.servlet.engine.webapp.dispatch_type: forward
org.sourceid.sso.exception: org.apache.xml.security.signature.XMLSignatureException: The requested algorithm http://www.w3.org/2000/09/xmldsig#rsa-sha1 does not exist. Original Message was: null
Original Exception was java.lang.NullPointerException
=== Session Attributes ===
Session ID: YNCNQPbU0t1KNv8yXIWquW8
sso-sample.userID: numata
org.sourceid.sso.Return.Failure: /sp/home.jsp
org.sourceid.sso.federateOnReturn: true
org.sourceid.sso.userID: numata
org.sourceid.sso.Return.Success: /sp/home.jsp
org.sourceid.sso.ProviderID: SourceID-Sample-IDP
=== HTTP Header contents ===
Method: GET
accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*
referer: http://172.24.17.84:9080/sso-sample-idp/sso/authn?RequestID=mvimO9iUdUVGaOLJ2Mwv_af6pBc&MajorVersion=1&MinorVersion=0&IssueInstant=2005-01-26T01%3A34%3A34Z&ProviderID=SourceID-Sample-SP&ForceAuthn=false&IsPassive=false&Federate=true&ProtocolProfile=http%3A%2F%2Fprojectliberty.org%2Fprofiles%2Fbrws-art&SigAlg=http%3A%2F%2Fwww.w3.org%2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=ZUZjFb%2BXbh%2B99tgM0J8qpivj12WDKn6MZy3NElY%2B3w7oYR4DY%2FpUS1fW7ZfWtAPeV2wDgNIH%2FakQ%0D%0AOZioMm5OJHIjX82AbxbI0D3GW%2B1rMYMY7OF7Z9IGD6xtOQkf4pkVmBFzRNz%2BPegAdG3p%2FepS0ey9%0D%0ABLRMAhDA%2BwO4Z3FDt2o%3D
accept-language: ja
cookie: JSESSIONID=0000YNCNQPbU0t1KNv8yXIWquW8:-1
accept-encoding: gzip, deflate
user-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
connection: Keep-Alive
cache-control: no-cache
host: 172.24.152.122:8080

----------------------------------------------------------------------------

 Does anybody know how to solve it?

 Thank you.
 Masahito Numata