You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Paolo <pa...@libero.it> on 2005/07/20 16:43:39 UTC
XMLSignatureException: The algorithm http://www.w3.org/2000/09/xmldsig#rsa-sha1 does not exist
Hi gurus,
I developing a Servlet on SAP Web AS 6.40 SP 11, but when I try to sign my XML
message I get this error:
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.<init>
(SignatureAlgorithm.java:148)#
at org.apache.xml.security.signature.SignedInfo.<init>(SignedInfo.java:154)#
at org.apache.xml.security.signature.XMLSignature.<init>(XMLSignature.java:236)
#
at org.apache.xml.security.signature.XMLSignature.<init>(XMLSignature.java:214)
#
at org.sourceid.sso.util.SAMLUtils.sign(SAMLUtils.java:80)#
.....
Do you have any idea?
Best Regards,
Paolo
Re: XMLSignatureException: The algorithm
http://www.w3.org/2000/09/xmldsig#rsa-sha1 does not exist
Posted by Sean Mullan <Se...@Sun.COM>.
Paolo wrote:
> Hi gurus,
>
> I developing a Servlet on SAP Web AS 6.40 SP 11, but when I try to sign my XML
> message I get this error:
>
> org.apache.xml.security.signature.XMLSignatureException: The requested
> algorithm http://www.w3.org/2000/09/xmldsig\#rsa-sha1 does not exist.
^
The algorithm above has a typo, remove the '\'.
--Sean
Original
> Message was: null
> Original Exception was java.lang.NullPointerException#
> at org.apache.xml.security.algorithms.SignatureAlgorithm.<init>
> (SignatureAlgorithm.java:148)#
> at org.apache.xml.security.signature.SignedInfo.<init>(SignedInfo.java:154)#
> at org.apache.xml.security.signature.XMLSignature.<init>(XMLSignature.java:236)
> #
> at org.apache.xml.security.signature.XMLSignature.<init>(XMLSignature.java:214)
> #
> at org.sourceid.sso.util.SAMLUtils.sign(SAMLUtils.java:80)#
> .....
>
> Do you have any idea?
>
> Best Regards,
> Paolo
>
Re: XMLSignatureException: The algorithm http://www.w3.org/2000/09/xmldsig#rsa-sha1 does not exist
Posted by raghu konala <ra...@gmail.com>.
/Before using the Crypt
Security.addProvider("rsa-sha1");
Add the provider dynamically rather than statically.
Make sure on the java.security file on your JDK14 installation
directory the below line is listed.
security.provider.3=com.sun.rsajca.Provider.
If you are using the apache xml security Xalan.jar should be under
JAVA_HOME/jre/lib/endorsed.
On 7/20/05, Paolo <pa...@libero.it> wrote:
>
> Hi gurus,
>
> I developing a Servlet on SAP Web AS 6.40 SP 11, but when I try to sign my XML
> message I get this error:
>
> 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.<init>
> (SignatureAlgorithm.java:148)#
> at org.apache.xml.security.signature.SignedInfo.<init>(SignedInfo.java:154)#
> at org.apache.xml.security.signature.XMLSignature.<init>(XMLSignature.java:236)
> #
> at org.apache.xml.security.signature.XMLSignature.<init>(XMLSignature.java:214)
> #
> at org.sourceid.sso.util.SAMLUtils.sign(SAMLUtils.java:80)#
> .....
>
> Do you have any idea?
>
> Best Regards,
> Paolo
>
>
--
Thanks,
Raghu Konala
Cell: 913 579 3663