XML Digital Signature Problem - Enveloping Signature

Hi there,

While i was running the sample GenEnveloping class, i got this error:

>>

java.lang.NoClassDefFoundError: java/net/URISyntaxException

at org.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory.newReference(DOMXMLSignatureFactory.java:56)

at org.jcp.xml.dsig.internal.dom.DOMXMLSignatureFactory.newReference(DOMXMLSignatureFactory.java:51)

at GenEnveloping.main(GenEnveloping.java:47)

Exception in thread "main"

<<

I'm working on websphere 5.0; i've already added the following jar/classpath variables to websphere and to my project:

xmldsig.jar, xmlsec.jar, xws-security.jar.

I've surfed through the threads in this forum and i realized that this problem is related to missing jar. so what i want is the list of jar to add to my environment and project if it is possible or if this list already exists somewhere in a thread, just let me know.

Thanks in advance for your help.

[983 byte] By [zada_bha] at [2007-11-27 9:43:26]
# 1

Hi again,

I don't think it's a missing jar problem because i've added the following jar which i found in the build.xml document which come with the GenEnveloping class in the sample folder:

xmldsig.jar, jaxp-api.jar, dom.jar, xercesImpl.jar, xmlsec.jar, xalan.jar, commons-logging.jar.

and still the same error.

Any help is appreciated.

Thanks.

zada_bha at 2007-7-12 23:48:47 > top of Java-index,Security,Cryptography...
# 2
It sounds like you are using JDK 1.3 because it is complaining that it can't find the java.net. URISyntaxException class which was introduced in JDK 1.4. You need to use at least JDK 1.4 for the Java XML DSig API.
smullana at 2007-7-12 23:48:47 > top of Java-index,Security,Cryptography...
# 3
I'm using Java2 SDK, SE v1.4.2_06. Is SDK1.4 equivalent to JDK1.4? Do i have to install another kit?Thanks for your help.
zada_bha at 2007-7-12 23:48:47 > top of Java-index,Security,Cryptography...