RE: Help with ClassCastException atIdResolver.registerElementById
"Om Sivanesan" <[email protected]> Thu, 3 Feb 2005 09:00:10 -0700
| Newsgroups | gmane.comp.sourceid.sso.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============2033636523== Content-Class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C50A09.7038093C" This is a multi-part message in MIME format. ------_=_NextPart_001_01C50A09.7038093C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Bryan: =20 Thanks for your response. I actually found the problem on Monday itself. Yes, you are right I had an ancient version of xerces.jar in which the Document and DocumentImpl clases weren't "compatible". Once I got the latest version everything was great. Sorry for not sending a note to the mailing list. I was lazy and busy :) =20 Thank you for your help. You nailed it. =20 Thank you, Om -----Original Message----- From: Bryan Field-Elliot [mailto:[email protected]]=20 Sent: Thursday, February 03, 2005 6:09 AM To: SourceID Users List Subject: Re: [SourceID SSO-users] Help with ClassCastException atIdResolver.registerElementById =09 =09 Om, =09 Are you using Weblogic? =09 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? =09 Thank you, =09 Bryan =09 On Mon, 2005-01-31 at 10:45 -0700, Om Sivanesan wrote: =09 Hi All: =09 I am brand new to SourceId and even SAML. After getting the public key from the certificate I have this statement: =09 =09 SAMLUtils.checkSignature(docResponse.getDocumentElement(), publicKey); =09 And I get this error:=20 java.lang.ClassCastException=20 at org.apache.xml.security.utils.IdResolver.registerElementById(IdResolver. java:111)=20 at org.sourceid.sso.util.SAMLUtils.checkSignature(SAMLUtils.java:181) =09 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. =09 Thank you,=20 Om =09 =09 _______________________________________________ sso-users mailing list [email protected] http://lists.sourceid.org/mailman/listinfo/sso-users ------_=_NextPart_001_01C50A09.7038093C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2800.1476" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D452205715-03022005><FONT face=3DArial color=3D#0000ff = size=3D2>Hi=20 Bryan:</FONT></SPAN></DIV> <DIV><SPAN class=3D452205715-03022005><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D452205715-03022005><FONT face=3DArial color=3D#0000ff = size=3D2>Thanks=20 for your response. I actually found the problem on Monday itself. Yes, = you are=20 right I had an ancient version of xerces.jar in which the Document and=20 DocumentImpl clases weren't "compatible". Once I got the latest version=20 everything was great. Sorry for not sending a note to the mailing list. = I was=20 lazy and busy :)</FONT></SPAN></DIV> <DIV><SPAN class=3D452205715-03022005><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D452205715-03022005><FONT face=3DArial color=3D#0000ff = size=3D2>Thank=20 you for your help. You nailed it.</FONT></SPAN></DIV> <DIV><SPAN class=3D452205715-03022005><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D452205715-03022005><FONT face=3DArial color=3D#0000ff = size=3D2>Thank=20 you,</FONT></SPAN></DIV> <DIV><SPAN class=3D452205715-03022005><FONT face=3DArial color=3D#0000ff = size=3D2>Om</FONT></SPAN></DIV> <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr = align=3Dleft><FONT=20 face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> = Bryan=20 Field-Elliot [mailto:[email protected]] <BR><B>Sent:</B> = Thursday,=20 February 03, 2005 6:09 AM<BR><B>To:</B> SourceID Users = List<BR><B>Subject:</B>=20 Re: [SourceID SSO-users] Help with ClassCastException=20 atIdResolver.registerElementById<BR><BR></FONT></DIV>Om,<BR><BR>Are = you using=20 Weblogic?<BR><BR>There is sometimes a problem with SourceID running on = Weblogic. SourceID ships with a recent version of the Xerces XML = library,=20 whereas Weblogic ships with an older version, and furthermore, does = not allow=20 web application (like SourceID) to load the newer version which is = bundled=20 with it. This causes the problem you see with the xmlsec library. Can = you=20 confirm whether you're in fact running Weblogic, and if so, which=20 version?<BR><BR>Thank you,<BR><BR>Bryan<BR><BR>On Mon, 2005-01-31 at = 10:45=20 -0700, Om Sivanesan wrote:<BR> <BLOCKQUOTE TYPE=3D"CITE"><FONT size=3D2><FONT color=3D#000000>Hi=20 All:</FONT></FONT><BR><BR><FONT size=3D2><FONT color=3D#000000>I am = brand new to=20 SourceId and even SAML. After getting the public key from the = certificate I=20 have this statement:</FONT></FONT><BR><BR><FONT size=3D2><FONT=20 = color=3D#000000>SAMLUtils.checkSignature(docResponse.getDocumentElement()= ,=20 publicKey);</FONT></FONT><BR><BR><FONT size=3D2><FONT = color=3D#000000>And I get=20 this error:</FONT></FONT><FONT color=3D#000000> </FONT><BR><FONT = size=3D2><FONT=20 color=3D#000000>java.lang.ClassCastException</FONT></FONT><FONT = color=3D#000000>=20 </FONT><BR><FONT = color=3D#000000> =20 </FONT><FONT color=3D#000000><FONT size=3D2>at=20 = org.apache.xml.security.utils.IdResolver.registerElementById(IdResolver.j= ava:111)</FONT></FONT><FONT=20 color=3D#000000> </FONT><BR><FONT=20 color=3D#000000> = </FONT><FONT=20 color=3D#000000><FONT size=3D2>at=20 = org.sourceid.sso.util.SAMLUtils.checkSignature(SAMLUtils.java:181)</FONT>= </FONT><BR><BR><FONT=20 size=3D2><FONT color=3D#000000>I think I am using the wrong = xmlsec.jar file. Am=20 I right? If so what is the right jar file to use? And if I am wrong = please=20 tell me where I am going wrong.</FONT></FONT><BR><BR><FONT = size=3D2><FONT=20 color=3D#000000>Thank you,</FONT></FONT><FONT color=3D#000000> = </FONT><BR><FONT=20 size=3D2><FONT color=3D#000000>Om</FONT></FONT><BR><BR><PRE><FONT = color=3D#000000>_______________________________________________</FONT> <FONT color=3D#000000>sso-users mailing list</FONT> <FONT color=3D#000000><A = href=3D"mailto:[email protected]">[email protected]</A></FONT> <FONT color=3D#000000><A = href=3D"http://lists.sourceid.org/mailman/listinfo/sso-users">http://list= s.sourceid.org/mailman/listinfo/sso-users</A></FONT> </PRE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML> =00 ------_=_NextPart_001_01C50A09.7038093C-- --===============2033636523== 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 --===============2033636523==--