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)
> >
> >             at
> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBe
> >anDefinitions(XmlBeanDefinitionReader.java:340)
> >
> >             at
> > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBe
> >anDefinitions(XmlBeanDefinitionReader.java:317)
> >
> >             at
> > org.springframework.beans.factory.support.AbstractBeanDefinitionRead
> >er.loadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
> >
> >             at
> > org.springframework.beans.factory.support.AbstractBeanDefinitionRead
> >er.loadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
> >
> >             at
> > org.springframework.beans.factory.support.AbstractBeanDefinitionRead
> >er.loadBeanDefinitions(AbstractBeanDefinitionReader.java:167)
> >
> >             at
> > org.springframework.context.support.AbstractXmlApplicationContext.lo
> >adBeanDefinitions(AbstractXmlApplicationContext.java:113)
> >
> >             at
> > org.springframework.context.support.AbstractXmlApplicationContext.lo
> >adBeanDefinitions(AbstractXmlApplicationContext.java:79)
> >
> >             at
> > org.springframework.context.support.AbstractRefreshableApplicationCo
> >ntext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:9
> >4)
> >
> >             at
> > org.springframework.context.support.AbstractApplicationContext.refre
> >sh(AbstractApplicationContext.java:292)
> >
> >             at
> > org.springframework.context.support.ClassPathXmlApplicationContext.<
> >init>(ClassPathXmlApplicationContext.java:92)
> >
> >             at
> > org.springframework.context.support.ClassPathXmlApplicationContext.<
> >init>(ClassPathXmlApplicationContext.java:77)
> >
> >             at
> > com.daon.ws.de.identitymanagement.junit.AbstractIdentityManagementTe
> >st.setUpBeforeClass(AbstractIdentityManagementTest.java:66)
> >
> >             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >
> >             at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
> >.java:39)
> >
> >             at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> >ssorImpl.java:25)
> >
> >             at java.lang.reflect.Method.invoke(Method.java:585)
> >
> >             at
> > org.junit.internal.runners.ClassRoadie.runBefores(ClassRoadie.java:4
> >9)
> >
> >             at
> > org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java
> >:36)
> >
> >             at
> > org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.j
> >ava:42)
> >
> >             at
> > org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit
> >4TestReference.java:38)
> >
> >             at
> > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecutio
> >n.java:38)
> >
> >             at
> > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remo
> >teTestRunner.java:460)
> >
> >             at
> > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remo
> >teTestRunner.java:673)
> >
> >             at
> > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTes
> >tRunner.java:386)
> >
> >             at
> > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTe
> >stRunner.java:196)



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to