Re: Help with ClassCastException at IdResolver.registerElementById
Bryan Field-Elliot <[email protected]> Thu, 03 Feb 2005 06:08:57 -0700
| Newsgroups | gmane.comp.sourceid.sso.user |
|---|---|
| Message-ID | <[email protected]> |
--===============2003458385== Content-Type: multipart/alternative; boundary="=-tqtyDb4ioxRdHYmxsMLq" --=-tqtyDb4ioxRdHYmxsMLq Content-Type: text/plain Content-Transfer-Encoding: 7bit Om, Are you using Weblogic? There is sometimes a problem with SourceID running on Weblogic. SourceID ships with a recent version of the Xerces XML library, whereas Weblogic ships with an older version, and furthermore, does not allow web application (like SourceID) to load the newer version which is bundled with it. This causes the problem you see with the xmlsec library. Can you confirm whether you're in fact running Weblogic, and if so, which version? Thank you, Bryan On Mon, 2005-01-31 at 10:45 -0700, Om Sivanesan wrote: > Hi All: > > I am brand new to SourceId and even SAML. After getting the public key > from the certificate I have this statement: > > SAMLUtils.checkSignature(docResponse.getDocumentElement(), publicKey); > > And I get this error: > java.lang.ClassCastException > at > org.apache.xml.security.utils.IdResolver.registerElementById > (IdResolver.java:111) > at org.sourceid.sso.util.SAMLUtils.checkSignature > (SAMLUtils.java:181) > > I think I am using the wrong xmlsec.jar file. Am I right? If so what > is the right jar file to use? And if I am wrong please tell me where I > am going wrong. > > Thank you, > Om > > > _______________________________________________ > sso-users mailing list > [email protected] > http://lists.sourceid.org/mailman/listinfo/sso-users --=-tqtyDb4ioxRdHYmxsMLq Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <META NAME="GENERATOR" CONTENT="GtkHTML/3.3.2"> <TITLE>Help with ClassCastException at IdResolver.registerElementById</TITLE> </HEAD> <BODY> Om,<BR> <BR> Are you using Weblogic?<BR> <BR> There is sometimes a problem with SourceID running on Weblogic. SourceID ships with a recent version of the Xerces XML library, whereas Weblogic ships with an older version, and furthermore, does not allow web application (like SourceID) to load the newer version which is bundled with it. This causes the problem you see with the xmlsec library. Can you confirm whether you're in fact running Weblogic, and if so, which version?<BR> <BR> Thank you,<BR> <BR> Bryan<BR> <BR> On Mon, 2005-01-31 at 10:45 -0700, Om Sivanesan wrote:<BR> <BLOCKQUOTE TYPE=CITE> <FONT SIZE="2"><FONT COLOR="#000000">Hi All:</FONT></FONT><BR> <BR> <FONT SIZE="2"><FONT COLOR="#000000">I am brand new to SourceId and even SAML. After getting the public key from the certificate I have this statement:</FONT></FONT><BR> <BR> <FONT SIZE="2"><FONT COLOR="#000000">SAMLUtils.checkSignature(docResponse.getDocumentElement(), publicKey);</FONT></FONT><BR> <BR> <FONT SIZE="2"><FONT COLOR="#000000">And I get this error:</FONT></FONT><FONT COLOR="#000000"> </FONT><BR> <FONT SIZE="2"><FONT COLOR="#000000">java.lang.ClassCastException</FONT></FONT><FONT COLOR="#000000"> </FONT><BR> <FONT COLOR="#000000"> </FONT><FONT COLOR="#000000"><FONT SIZE="2">at org.apache.xml.security.utils.IdResolver.registerElementById(IdResolver.java:111)</FONT></FONT><FONT COLOR="#000000"> </FONT><BR> <FONT COLOR="#000000"> </FONT><FONT COLOR="#000000"><FONT SIZE="2">at org.sourceid.sso.util.SAMLUtils.checkSignature(SAMLUtils.java:181)</FONT></FONT><BR> <BR> <FONT SIZE="2"><FONT COLOR="#000000">I think I am using the wrong xmlsec.jar file. Am I right? If so what is the right jar file to use? And if I am wrong please tell me where I am going wrong.</FONT></FONT><BR> <BR> <FONT SIZE="2"><FONT COLOR="#000000">Thank you,</FONT></FONT><FONT COLOR="#000000"> </FONT><BR> <FONT SIZE="2"><FONT COLOR="#000000">Om</FONT></FONT><BR> <BR> <PRE> <FONT COLOR="#000000">_______________________________________________</FONT> <FONT COLOR="#000000">sso-users mailing list</FONT> <FONT COLOR="#000000"><A HREF="mailto:[email protected]">[email protected]</A></FONT> <FONT COLOR="#000000"><A HREF="http://lists.sourceid.org/mailman/listinfo/sso-users">http://lists.sourceid.org/mailman/listinfo/sso-users</A></FONT> </PRE> </BLOCKQUOTE> </BODY> </HTML> --=-tqtyDb4ioxRdHYmxsMLq-- --===============2003458385== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ sso-users mailing list [email protected] http://lists.sourceid.org/mailman/listinfo/sso-users --===============2003458385==--