Skip to Content.
Sympa Menu

mace-opensaml-users - Re: Problems initializing XML tooling in servlet (TOMCAT) environment

Subject: OpenSAML user discussion

List archive

Re: Problems initializing XML tooling in servlet (TOMCAT) environment


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: Problems initializing XML tooling in servlet (TOMCAT) environment
  • Date: Thu, 07 Jun 2007 08:07:40 -0400
  • Organization: OIS - Middleware

Look at the mailing list archives for that error. It's been mentioned numerous times.

Pedro Navarro Pérez wrote:
Hi,

I'm trying to initialize opensaml librairies in a Servlet (embebbed in a Tomcat) and I have an error when the library tries to validate the "xmltoolingconfigs". In local mode, I have no error.

Logs error:

13:19:34,109 (ContainerBackgroundProcessor[StandardEngine[Catalina]]) DEBUG [org.opensaml.DefaultBootstrap ] - Initializing Velocity template engine
13:19:35,640 (ContainerBackgroundProcessor[StandardEngine[Catalina]]) DEBUG [org.opensaml.xml.Configuration ] - VM using JAXP parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
13:19:36,468 (ContainerBackgroundProcessor[StandardEngine[Catalina]]) DEBUG [org.opensaml.xml.Configuration ] - VM using JAXP parser org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
13:19:44,390 (ContainerBackgroundProcessor[StandardEngine[Catalina]]) DEBUG [org.opensaml.DefaultBootstrap ] - Loading XMLTooling configuration /default-config.xml
13:19:44,406 (ContainerBackgroundProcessor[StandardEngine[Catalina]]) DEBUG [org.opensaml.xml.XMLConfigurator ] - Loading configuration from XML Document
13:19:44,421 (ContainerBackgroundProcessor[StandardEngine[Catalina]]) DEBUG [org.opensaml.xml.XMLConfigurator ] - <?xml version="1.0" encoding="UTF-16"?>
<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 ../../resources/classpath/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>
13:19:44,421 (ContainerBackgroundProcessor[StandardEngine[Catalina]]) DEBUG [org.opensaml.xml.XMLConfigurator ] - Schema validating configuration Document
13:19:44,468 (ContainerBackgroundProcessor[StandardEngine[Catalina]]) ERROR [org.opensaml.xml.XMLConfigurator ] - 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(Util.java:109)
at com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2799)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2735)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2094)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:335)
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(ValidatorImpl.java:220)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:141)
at javax.xml.validation.Validator.validate(Validator.java:82)
at org.opensaml.xml.XMLConfigurator.validateConfiguration(XMLConfigurator.java:388)
at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:156)
at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:129)
at org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:126)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:71)
at com.evidian.security.authz.AuthzServiceFactory.init(AuthzServiceFactory.java:92)
at com.evidian.security.authz.AuthzServiceFactory.newAuthzServiceInstance(AuthzServiceFactory.java:54)
at com.evidian.security.authz.server.AuthorizationServlet.init(AuthorizationServlet.java:140)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:595)
13:19:44,468 (ContainerBackgroundProcessor[StandardEngine[Catalina]]) FATAL [com.evidian.security.authz.server.AuthorizationServlet ] - SERVLET INITIALIZATION EXCEPTION
java.lang.Exception: Unable to initialize authorization service
at com.evidian.security.authz.server.AuthorizationServlet.init(AuthorizationServlet.java:146)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.evidian.security.authz.APIException: Error while initializing OpenSAML
at com.evidian.security.authz.AuthzServiceFactory.init(AuthzServiceFactory.java:109)
at com.evidian.security.authz.AuthzServiceFactory.newAuthzServiceInstance(AuthzServiceFactory.java:54)
at com.evidian.security.authz.server.AuthorizationServlet.init(AuthorizationServlet.java:140)
... 19 more
Caused by: org.opensaml.xml.ConfigurationException: Configuration file does not validate against schema
at org.opensaml.xml.XMLConfigurator.validateConfiguration(XMLConfigurator.java:397)
at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:156)
at org.opensaml.xml.XMLConfigurator.load(XMLConfigurator.java:129)
at org.opensaml.DefaultBootstrap.initializeXMLTooling(DefaultBootstrap.java:126)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:71)
at com.evidian.security.authz.AuthzServiceFactory.init(AuthzServiceFactory.java:92)
... 21 more
Caused by: 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(Util.java:109)
at com.sun.org.apache.xerces.internal.jaxp.validation.ErrorHandlerAdaptor.error(ErrorHandlerAdaptor.java:104)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:429)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3185)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processOneAttribute(XMLSchemaValidator.java:2799)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2735)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2094)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.startElement(ValidatorHandlerImpl.java:335)
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(ValidatorImpl.java:220)
at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:141)
at javax.xml.validation.Validator.validate(Validator.java:82)
at org.opensaml.xml.XMLConfigurator.validateConfiguration(XMLConfigurator.java:388)
... 26 more


Thanks

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



Archive powered by MHonArc 2.6.16.

Top of Page