Hi Ambarish, Looks like your servlet container doesn't have the required jar with the DOM mechanism in the classpath. Have you tried copying xmldsig.jar, xmlsec.jar to your servlet container's default classpath ?
-Anirudh On Dec 26, 7:19 pm, ambarish <[email protected]> wrote: > Hello all, > > I am on JRE 1.4.2_05, and trying out the sample SSO client provided. > In the code of XmlDigitalSigner.java, there is: > > .... > private static final String JSR_105_PROVIDER = > "org.jcp.xml.dsig.internal.dom.XMLDSigRI"; > > String providerName = System.getProperty > ("jsr105Provider",JSR_105_PROVIDER); > > XMLSignatureFactory sigFactory = XMLSignatureFactory.getInstance > ("DOM", > (Provider) Class.forName(providerName).newInstance()); > > .... > > the last line emits this exception: > javax.xml.crypto.NoSuchMechanismException: Cannot find DOM mechanism > type > > I tried these lines in a stand-alone Java program in the same JRE, and > it worked. However, as a part of servlet this does not work. > > I tried with JWSDP 1.5 and JWSDP 2.0, but same result, ie works in a > Java program, but not in the servlet. > > I tried to add this provider in the jre/lib/security/java.security > file, but no success. > > Can anyone give me some hints on where to look for what to make this > line work in the servlet? > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
