Re: cannot resolve wsdl:tExtensibilityElement
Hate to be answering my own posts but the cause of this is the fact that I am behind a proxy server. Seems that the following import in jms-conf.xsd, http-conf.xsd causes the xsd resolver to run off to the internet to try and find the schema. Is there anyway around this? xs:import namespace=http://schemas.xmlsoap.org/wsdl/; schemaLocation=http://schemas.xmlsoap.org/schemas/wsdl/wsdl.xsd/ How did I know this - -well if I hack http-conf.xsd to do the following it works! xs:import namespace=http://schemas.xmlsoap.org/wsdl/; schemaLocation=file:///c:/temp/schemas/wsdl/wsdl.xsd/ Thanks Adrian C wrote: Hi, Am doing some testing with jms am getting the error below, has anyone seen anything like this before? Thanks org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 175 in XML document from class path resource [junit/wsclient-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type definition' component. Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type definition' component. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaError(XSDHandler.java:2241) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1201) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexContent(XSDComplexTypeTraverser.java:715) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseComplexTypeDecl(XSDComplexTypeTraverser.java:288) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexTypeTraverser.traverseGlobal(XSDComplexTypeTraverser.java:196) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getGlobalDecl(XSDHandler.java:1333) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(XSDElementTraverser.java:376) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTraverser.traverseGlobal(XSDElementTraverser.java:248) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.traverseSchemas(XSDHandler.java:1081) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:481) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:556) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2459) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1807) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:330) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292) at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:340) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317) at
Re: cannot resolve wsdl:tExtensibilityElement
looks like its using spring's PluggableSchemaResolver, which looks like it should work based on the entries in the META-INF/spring.schemas ... but I am seeing the spring.schemas loaded up twice! 31 [main] DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver - Loading schema mappings from [META-INF/spring.schemas] 47 [main] DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver - Loaded schema mappings: {http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://cxf.apache.org/schemas/policy.xsd=schemas/policy.xsd, http://cxf.apache.org/schemas/configuration/security.xsd=schemas/configuration/security.xsd, http://cxf.apache.org/schemas/wsdl/jms.xsd=schemas/wsdl/jms.xsd, http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd=schemas/oasis-200401-wss-wssecurity-utility-1.0.xsd, http://cxf.apache.org/schemas/configuration/soap.xsd=schemas/configuration/soap.xsd, http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://cxf.apache.org/schemas/configuration/wsrm-manager.xsd=schemas/configuration/wsrm-manager.xsd, http://cxf.apache.org/schemas/wsdl/http-conf.xsd=schemas/wsdl/http-conf.xsd, http://cxf.apache.org/schemas/jaxws.xsd=schemas/jaxws.xsd, http://www.w3.org/2006/07/ws-policy.xsd=schemas/ws-policy-200607.xsd, http://cxf.apache.org/schema/bindings/object.xsd=org/apache/cxf/binding/soap/spring/object.xsd, http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd=schemas/ws-policy-200409.xsd, http://www.springframework.org/schema/gienah/gienah.xsd=org/gienah/testing/xml/spring-gienah-0.2.xsd, http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd, http://cxf.apache.org/schemas/simple.xsd=schemas/simple.xsd, http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd, http://cxf.apache.org/schemas/configuration/wsrm-manager-types.xsd=schemas/configuration/wsrm-manager-types.xsd, http://schemas.xmlsoap.org/ws/2005/02/rm/wsrm-policy.xsd=schemas/configuration/wsrm-policy.xsd, http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool-2.0.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://cxf.apache.org/schemas/configuration/cxf-beans.xsd=schemas/configuration/cxf-beans.xsd, http://cxf.apache.org/schemas/ws/addressing.xsd=schemas/ws-addr-conf.xsd, http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd=schemas/oasis-200401-wss-wssecurity-secext-1.0.xsd, http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://cxf.apache.org/schemas/core.xsd=schemas/core.xsd, http://www.w3.org/2007/02/ws-policy.xsd=schemas/ws-policy-200702.xsd, http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd, http://www.w3.org/2001/xml.xsd=schemas/xml.xsd, http://cxf.apache.org/schemas/configuration/http-conf.xsd=schemas/configuration/http-conf.xsd, http://cxf.apache.org/schemas/configuration/http-jetty.xsd=schemas/configuration/http-jetty.xsd, http://cxf.apache.org/schemas/configuration/jms.xsd=schemas/configuration/jms.xsd, http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd, http://www.springframework.org/schema/tool/spring-tool.xsd=org/springframework/beans/factory/xml/spring-tool-2.0.xsd, http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, http://schemas.xmlsoap.org/wsdl/http/=schemas/wsdl/http.xsd, http://schemas.xmlsoap.org/wsdl/=schemas/wsdl/wsdl.xsd, http://schemas.xmlsoap.org/ws/2004/08/addressing=schemas/wsdl/addressing.xsd} 47 [main] DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver - Loading schema mappings from [META-INF/spring.schemas] 47 [main] DEBUG org.springframework.beans.factory.xml.PluggableSchemaResolver - Loaded schema mappings: {http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd, http://cxf.apache.org/schemas/policy.xsd=schemas/policy.xsd, http://cxf.apache.org/schemas/configuration/security.xsd=schemas/configuration/security.xsd, http://cxf.apache.org/schemas/wsdl/jms.xsd=schemas/wsdl/jms.xsd,
Re: cannot resolve wsdl:tExtensibilityElement
You could add an XmlCatalog to the catalog resolver to map the http://schemas.xmlsoap.org/schemas/wsdl/wsdl.xsd location to something that's local. Dan On Wednesday 07 November 2007, Adrian C wrote: Hate to be answering my own posts but the cause of this is the fact that I am behind a proxy server. Seems that the following import in jms-conf.xsd, http-conf.xsd causes the xsd resolver to run off to the internet to try and find the schema. Is there anyway around this? xs:import namespace=http://schemas.xmlsoap.org/wsdl/; schemaLocation=http://schemas.xmlsoap.org/schemas/wsdl/wsdl.xsd/ How did I know this - -well if I hack http-conf.xsd to do the following it works! xs:import namespace=http://schemas.xmlsoap.org/wsdl/; schemaLocation=file:///c:/temp/schemas/wsdl/wsdl.xsd/ Thanks Adrian C wrote: Hi, Am doing some testing with jms am getting the error below, has anyone seen anything like this before? Thanks org.springframework.beans.factory.xml.XmlBeanDefinitionStoreExceptio n: Line 175 in XML document from class path resource [junit/wsclient-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type definition' component. Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type definition' component. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSA XParseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Er rorHandlerWrapper.java:172) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (XMLErrorReporter.java:382) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.rep ortSchemaError(XSDHandler.java:2241) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.get GlobalDecl(XSDHandler.java:1201) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexType Traverser.traverseComplexContent(XSDComplexTypeTraverser.java:715) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexType Traverser.traverseComplexTypeDecl(XSDComplexTypeTraverser.java:288) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexType Traverser.traverseGlobal(XSDComplexTypeTraverser.java:196) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.get GlobalDecl(XSDHandler.java:1333) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTrav erser.traverseNamedElement(XSDElementTraverser.java:376) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTrav erser.traverseGlobal(XSDElementTraverser.java:248) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.tra verseSchemas(XSDHandler.java:1081) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.par seSchema(XSDHandler.java:481) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchem a(XMLSchemaLoader.java:556) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSc hemaGrammar(XMLSchemaValidator.java:2459) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handle StartElement(XMLSchemaValidator.java:1807) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startE lement(XMLSchemaValidator.java:705) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.sca nStartElement(XMLNSDocumentScannerImpl.java:330) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerIm pl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl. java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerIm pl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser .java:148) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser .java:250) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Do cumentBuilderImpl.java:292) at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocu ment(DefaultDocumentLoader.java:76) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoad BeanDefinitions(XmlBeanDefinitionReader.java:388)
Re: cannot resolve wsdl:tExtensibilityElement
should this not be working out of the box? I see that the schema is there - the entry is there for the pluggablespringresolver. It looks like its an issue that has been looked at before: http://www.ohloh.net/projects/4982/contributors/30202/commits/10289783 Is it possible that this issue has not been competly fixed? dkulp wrote: You could add an XmlCatalog to the catalog resolver to map the http://schemas.xmlsoap.org/schemas/wsdl/wsdl.xsd location to something that's local. Dan On Wednesday 07 November 2007, Adrian C wrote: Hate to be answering my own posts but the cause of this is the fact that I am behind a proxy server. Seems that the following import in jms-conf.xsd, http-conf.xsd causes the xsd resolver to run off to the internet to try and find the schema. Is there anyway around this? xs:import namespace=http://schemas.xmlsoap.org/wsdl/; schemaLocation=http://schemas.xmlsoap.org/schemas/wsdl/wsdl.xsd/ How did I know this - -well if I hack http-conf.xsd to do the following it works! xs:import namespace=http://schemas.xmlsoap.org/wsdl/; schemaLocation=file:///c:/temp/schemas/wsdl/wsdl.xsd/ Thanks Adrian C wrote: Hi, Am doing some testing with jms am getting the error below, has anyone seen anything like this before? Thanks org.springframework.beans.factory.xml.XmlBeanDefinitionStoreExceptio n: Line 175 in XML document from class path resource [junit/wsclient-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type definition' component. Caused by: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'wsdl:tExtensibilityElement' to a(n) 'type definition' component. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSA XParseException(ErrorHandlerWrapper.java:236) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Er rorHandlerWrapper.java:172) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (XMLErrorReporter.java:382) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.rep ortSchemaError(XSDHandler.java:2241) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.get GlobalDecl(XSDHandler.java:1201) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexType Traverser.traverseComplexContent(XSDComplexTypeTraverser.java:715) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexType Traverser.traverseComplexTypeDecl(XSDComplexTypeTraverser.java:288) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDComplexType Traverser.traverseGlobal(XSDComplexTypeTraverser.java:196) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.get GlobalDecl(XSDHandler.java:1333) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTrav erser.traverseNamedElement(XSDElementTraverser.java:376) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDElementTrav erser.traverseGlobal(XSDElementTraverser.java:248) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.tra verseSchemas(XSDHandler.java:1081) at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.par seSchema(XSDHandler.java:481) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchem a(XMLSchemaLoader.java:556) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSc hemaGrammar(XMLSchemaValidator.java:2459) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handle StartElement(XMLSchemaValidator.java:1807) at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startE lement(XMLSchemaValidator.java:705) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.sca nStartElement(XMLNSDocumentScannerImpl.java:330) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerIm pl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl. java:1693) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerIm pl.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( XML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( XML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser .java:148) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser .java:250) at