You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kai Unewisse <ka...@innovations.de> on 2003/06/26 15:45:08 UTC

Signing in Server Handler: The requested algorithm DSA does not exist

Hi all,

I am trying to use Apache XML-Security in my Handler.

It works singning a client message in a client handler and verfying in a
server handler.
But when I try to sign the answer in the server handler using the same code
fragment, it returns a "XMLSignatureException: The requested algorithm DSA
does not exist."

SO it has something todo with Tomcat ???

I have the following configuration:
- added my BouncyCastle.JAR to my classpath.

- java.security file  added :
  security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider

- extra Server-Handler Code :
   Security.addProvider(new BouncyCastleProvider());

Of course I created 2 keystore files and it i used. I created RSA and DSA
Keypairs, but no changes except in the classname, which couldn't be found.


----> Does anybody use Signing on Encrypting on the serverside ? ?????? Can
you post it, what jar are you using and how the handler looks like ?

Thanks for help,

Kai


AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.apache.xml.security.signature.XMLSignatureException: The
requested algorithm DSA does not exist. Original Message was: class
configured for Signature(provider: BC)cannot be found.
org.bouncycastle.jce.provider.JDKDSASigner$stdDSA
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.apache.xml.security.signature.XMLSignatureException: The
requested algorithm DSA does not exist. Original Message was: class
configured for Signature(provider: BC)cannot be found.
org.bouncycastle.jce.provider.JDKDSASigner$stdDSA
faultActor:
faultNode:
faultDetail:
org.apache.xml.security.signature.XMLSignatureException: The requested
algorithm DSA does not exist. Original Message was: class configured for
Signature(provider: BC)cannot be found.
org.bouncycastle.jce.provider.JDKDSASigner$stdDSA
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2
49)