Skip to Content.
Sympa Menu

mace-opensaml-users - Re: SAML 2.0 metadata

Subject: OpenSAML user discussion

List archive

Re: SAML 2.0 metadata


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: SAML 2.0 metadata
  • Date: Thu, 20 Apr 2006 08:36:27 -0400

Ah, yes, that did help. You have to endorse Xerces and Xalan (and I need to add this step to the instructions). You can use the jars in the build-lib directory or get the latest from the xml.apache.org website. Here's the instructions on how to do the endorsement:

http://java.sun.com/j2se/1.5.0/docs/guide/standards/

When you do that, and if you still get this problem, you'll see that the all the class names are simply "org.apache.*" and not "com.sun.org.apache.*". If the class names didn't change than check to make sure you put the endorsed jars in the correct location (i.e. if you have multiple JDKs/JREs on your machine).

Manuela Stanica wrote:
Hi Chad,

Hmm... Is the machine you're working from online? We've had problems before (which I thought I had fixed) where Java was making a call to an external site during schema validation. If that's not the case I'm not sure what the problem would be. The prefix is definitely declared on line 4 of the file.
Yes I saw the prefixes are all declared, so I don't understand either what's happening. The machine I'm working on is online but I don't think that has anything to do with it because I got the same error when i went offline and tried again. It seems none of the prefixes from the config documents are recognised...
Here is a copy of the error log, just in case you get any idea of where the problem could be and what I could do about it.

2006-04-20 12:07:37,781 DEBUG [Configuration#load:151] Schema validating configuration Document
2006-04-20 12:07:37,937 ERROR [Configuration#validateConfiguration:614] Configuration file does not validate against schema
org.xml.sax.SAXParseException: UndeclaredPrefix: Cannot resolve 'xt:DEFAULT' as a QName: the prefix 'xt' is not declared.
at com.sun.org.apache.xerces.internal.jaxp.validation.Util.toSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(Unknown Source)
at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:357)
at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:143)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:389)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.process(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(Unknown Source)
at javax.xml.validation.Validator.validate(Unknown Source)
at org.opensaml.xml.Configuration.validateConfiguration(Configuration.java:606)
at org.opensaml.xml.Configuration.load(Configuration.java:153)

Thanks.

Manuela


--
Chad La Joie 2052-C Harris Bldg
OIS-Middleware 202.687.0124



Archive powered by MHonArc 2.6.16.

Top of Page