I was hoping someone may be able to shed some light on this problem. Sorry about there being so much text, i know its a pain. I am trying to validate an enveloped xml digital signature. The signature element is shown below:
When i check the core validity i get the following error(I am also not running a Junittest, this must be from somewhere else):
junit.framework.AssertionFailedError: javax.xml.crypto.dsig.XMLSignatureException: javax.xml.crypto.URIReferenceException: com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolverException: Could not find a resolver for URI null and Base null at com.qxlva.nhs.hl7.helperclasses.DigitalSignatureValidationTest.testDigitalSignature(DigitalSignatureValidationTest.java:48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:32) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
I would really appreciate any help on this as i just cannot understand why this is failing.
That stack trace says that your main() method is calling an invoke() method at line 90. The code you posted doesn't do that, so I would agree with you that the error must be coming from somewhere else. I would go further and suggest you look at line 90, which appears to be that somewhere else. [ August 03, 2006: Message edited by: Paul Clapham ]
Joined: Oct 13, 2005
Thanks for the reply.
The code throwing the error is actually in the java web service development pack. I think that i am not setting something befor calling the : boolean coreValidity = signature.validate(valContext); line.
Do you have an more ideas of where i could look.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com