mace-opensaml-users - Re: [OpenSAML] Bootstrap Initialization Error
Subject: OpenSAML user discussion
List archive
- From: lakshmi narasimhan <>
- To:
- Subject: Re: [OpenSAML] Bootstrap Initialization Error
- Date: Wed, 28 Oct 2009 14:26:51 +0000
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mHHsZoytoEC/X8CkbK1HPoRUSBeZUGFt1dRzzV5y+Nx9XYH9NbTJ+zh/OwqbCOIMIw PJf4EUi1aweEKMVJ1KMi5wtUjEKaP7q/wCknyPy+r1P2K6XDg8E0zx0fBAQUkRqpuIy1 jwVRLzzRxBTQ+FMBHL4L3DRBCC5DyzRWHG72E=
Hi,
I'm able to get over the bootstrap initialization problem. However, when I try to parse the Base64-decoded SAML, the document object is coming up as null. Here's the code snippet which I'm using for this purpose:
String samlResponseB64Str = (String)session.getAttribute("samlToken");
DefaultBootstrap.bootstrap();
// Decodage URL encoding with Base64
String samlResponseStr = new String(Base64.decode(samlResponseB64Str),"UTF-8");
out.println("<br/> Base64 decode of SAML: "+samlResponseStr);
// Get parser pool manager
BasicParserPool pp = new BasicParserPool();
pp.setNamespaceAware(true);
Document doc = pp.parse(new StringReader(samlResponseStr));
out.println("Document is: "+doc);
DefaultBootstrap.bootstrap();
// Decodage URL encoding with Base64
String samlResponseStr = new String(Base64.decode(samlResponseB64Str),"UTF-8");
out.println("<br/> Base64 decode of SAML: "+samlResponseStr);
// Get parser pool manager
BasicParserPool pp = new BasicParserPool();
pp.setNamespaceAware(true);
Document doc = pp.parse(new StringReader(samlResponseStr));
out.println("Document is: "+doc);
Any thoughts please?
Thanks,
Laks.
On Wed, Oct 28, 2009 at 4:03 AM, Chad La Joie <> wrote:
This comes from having an older version of Xalan or Xerces on your classpath somewhere. You'll need to examine your classpath and make sure that you have only one version, and that that version is up to date.
wrote:--Hi,
I'm trying to parse a SAML token and while initializing bootstrap(DefaultBootstrap.bootstrap();), I'm encountering the error message pasted below. I'm using xalan-2.7.0.jar in my classpath. I tried using xalan-2.6.0.jar too but was getting the same error message. Any suggestions would be gratefully received.
java.lang.NoSuchMethodError: org.apache.xpath.compiler.FunctionTable.installFunction(Ljava/lang/String;Lorg/apache/xpath/_expression_;)I
org.apache.xml.security.Init.init(Init.java:215)
org.opensaml.DefaultBootstrap.initializeXMLSecurity(DefaultBootstrap.java:97)
org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:71)
org.apache.jsp.service_005fprovider_jsp._jspService(service_005fprovider_jsp.java:121)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
Thanks,
Laks.
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Net Services
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
, http://www.switch.ch
- Bootstrap Initialization Error, lakshmi . narasimhanvm, 10/27/2009
- Re: [OpenSAML] Bootstrap Initialization Error, Paul Hethmon, 10/27/2009
- Message not available
- Fwd: [OpenSAML] Bootstrap Initialization Error, lakshmi narasimhan, 10/27/2009
- Re: [OpenSAML] Bootstrap Initialization Error, Chad La Joie, 10/28/2009
- Re: [OpenSAML] Bootstrap Initialization Error, lakshmi narasimhan, 10/28/2009
- Re: [OpenSAML] Bootstrap Initialization Error, Paul Hethmon, 10/28/2009
- Re: [OpenSAML] Bootstrap Initialization Error, lakshmi narasimhan, 10/28/2009
- Re: [OpenSAML] Bootstrap Initialization Error, Xavier Drudis Ferran, 10/28/2009
- Re: [OpenSAML] Bootstrap Initialization Error, lakshmi narasimhan, 10/28/2009
- Re: [OpenSAML] Bootstrap Initialization Error, Chad La Joie, 10/28/2009
- Re: [OpenSAML] Bootstrap Initialization Error, lakshmi narasimhan, 10/28/2009
- Re: [OpenSAML] Bootstrap Initialization Error, Paul Hethmon, 10/28/2009
- Re: [OpenSAML] Bootstrap Initialization Error, lakshmi narasimhan, 10/28/2009
Archive powered by MHonArc 2.6.16.