Skip to Content.
Sympa Menu

mace-opensaml-users - Re: The endorsing problem revisited

Subject: OpenSAML user discussion

List archive

Re: The endorsing problem revisited


Chronological Thread 
  • From: Massimiliano Masi <>
  • To:
  • Subject: Re: The endorsing problem revisited
  • Date: Thu, 23 Aug 2007 18:09:53 +0200

Hi,

Quoting Brent Putman
<>:

Yeah, that example code is very old and the library init process has
changed. You no longer call Configuration.init() (because it doesn't
exist anymore). Instead you do:

org.opensaml.DefaultBootstrap.bootstrap().

Thank you, now it works half and half. I'm using mac os x with java version "1.5.0_07" and everything works perfectly (once one understand how to bootstrap,
the opensaml library looks very nice and easy: I'm trying to write a simple
howto on my website).

The problem persist when I try to run the same code on Linux using
max@fourier
~ $ java -version
java version "1.5.0_12"

I endorsed the same libraries:

max@fourier /afs/mascanc.net/users/m/max/workspace/massiprova $ ls -l $JAVA_HOME/lib/endorsed
total 4.5M
-rw-r--r-- 1 max max1 185K Aug 23 17:51 xalan-2.7.0-serializer.jar
-rw-r--r-- 1 max max1 3.0M Aug 23 17:51 xalan-2.7.0.jar
-rw-r--r-- 1 max max1 1.2M Aug 23 17:51 xerces-2.9.0-xercesImpl.jar
-rw-r--r-- 1 max max1 190K Aug 23 17:51 xerces-2.9.0-xml-apis.jar


But I cannot get the opensaml libraries working due to this error:

[java] VM using JAXP parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl org.opensaml.xml.Configuration
[java] VM using JAXP parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl org.opensaml.xml.Configuration
[java] Loading XMLTooling configuration /default-config.xml org.opensaml.DefaultBootstrap
[java] Loading configuration from XML Document org.opensaml.xml.XMLConfigurator
[java]
[java] <?xml version="1.0" encoding="UTF-8"?>
[java] <XMLTooling xmlns="http://www.opensaml.org/xmltooling-config"; xmlns:ds="http://www.w3.org/2000/09/xmldsig#"; xmlns:saml1p="urn:oasis:names:tc:SAML:1.0:protocol" xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xt="http://www.opensaml.org/xmltooling-config"; xsi:schemaLocation="http://www.opensaml.org/xmltooling-config ../../src/schema/xmltooling-config.xsd"><ObjectProviders><ObjectProvider qualifiedName="xt:DEFAULT"><BuilderClass className="org.opensaml.xml.ElementProxyBuilder"/><MarshallingClass className="org.opensaml.xml.ElementProxyMarshaller"/><UnmarshallingClass className="org.opensaml.xml.ElementProxyUnmarshaller"/></ObjectProvider></ObjectProviders></XMLTooling> org.opensaml.xml.XMLConfigurator
[java] Schema validating configuration Document org.opensaml.xml.XMLConfigurator
[java] Configuration file does not validate against schema org.opensaml.xml.XMLConfigurator
[java] org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'xt:DEFAULT' as a QName: the prefix 'xt' is not declared.
[java] at com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Util.java:109)
[java] at com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)


Now, the xt namespace is defined, so it seems an error about parser.
Do you have any idea?

Thank you!!!

PS: In mac os x I have the same warning, that VM is using Jaxp not endorsed:

[java] VM using JAXP parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl org.opensaml.xml.Configuration
[java] VM using JAXP parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl org.opensaml.xml.Configuration
[java] Loading XMLTooling configuration /default-config.xml org.opensaml.DefaultBootstrap
[java] Loading configuration from XML Document org.opensaml.xml.XMLConfigurator

[java] <?xml version="1.0" encoding="UTF-8"?>
[java] <XMLTooling xmlns="http://www.opensaml.org/xmltooling-config"; xmlns:ds="http://www.w3.org/2000/09/xmldsig#"; xmlns:saml1p="urn:oasis:names:tc:SAML:1.0:protocol" xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xt="http://www.opensaml.org/xmltooling-config"; xsi:schemaLocation="http://www.opensaml.org/xmltooling-config ../../src/schema/xmltooling-config.xsd">
[java]
[java] <ObjectProviders>
[java]
[java]
[java] <ObjectProvider qualifiedName="xt:DEFAULT">
[java] <BuilderClass className="org.opensaml.xml.ElementProxyBuilder"/>
[java] <MarshallingClass className="org.opensaml.xml.ElementProxyMarshaller"/>
[java] <UnmarshallingClass className="org.opensaml.xml.ElementProxyUnmarshaller"/>
[java] </ObjectProvider>
[java]
[java] </ObjectProviders>
[java] </XMLTooling> org.opensaml.xml.XMLConfigurator
[java] Schema validating configuration Document org.opensaml.xml.XMLConfigurator

--
Massimiliano Masi

http://www.comunidelchianti.it/~max



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





Archive powered by MHonArc 2.6.16.

Top of Page