Dear all, I am running into an issue and I dont even know where to search for an answer... I'm starting here, if this is a totally wrong place, I'd appreciate a pointer
I am using cxf to provide a SOAP service defined by a WSDL. The WSDL uses soap envelopes and I have to add the definition. To be a self-contained application (no dependency on internet on startup), I add a local copy of the soap/envelope xsd: <xsd:import namespace="http://schemas.xmlsoap.org/soap/envelope/" schemaLocation="soap_envelope.xsd"/> The soap_envelope.xsd is in the same folder as the main WSDL, which is in the webapp under WEB-INF/wsdl the whole thing is packed in an EAR and deployed on a JBoss. I'm using own cxf 3.5.5 delivered in the EAR. on my local workstation in eclipse, the deployment works fine, mostly because it is just the exploded EAR and there are true files on the file system. On the real JBoss, it does not work - it tries to load the .xsd file from the file system (which it shouldnt, because JBoss usually does not explode the EAR) and from a strange path (the path of the EAR file) What can I do to make the xsd load correctly? (no I dont want to place a file on the file system, I want to solve the root problem) any help is appreciated! Regards, Gernot Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'GernotService': Invocation of init method failed; nested exception is javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620) ... Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:373) ... Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:87) ... Caused by: javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=PARSER_ERROR: Problem parsing 'soap_envelope.xsd'.: java.io.FileNotFoundException: /opt/gernot/jbossApps/something/deployments/soap_envelope.xsd (No such file or directory) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2198) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:830) at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(WSDLReaderImpl.java:654) at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(WSDLReaderImpl.java:610) at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(WSDLReaderImpl.java:320) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2352) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2338) at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:255) at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:165) at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:85) ... 39 more Caused by: java.io.FileNotFoundException: /opt/gernot/jbossApps/something/deployments/soap_envelope.xsd (No such file or directory) at java.io.FileInputStream.open0(Native Method) [rt.jar:1.8.0_242] at java.io.FileInputStream.open(FileInputStream.java:195) [rt.jar:1.8.0_242] at java.io.FileInputStream.<init>(FileInputStream.java:138) [rt.jar:1.8.0_242] at java.io.FileInputStream.<init>(FileInputStream.java:93) [rt.jar:1.8.0_242] at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) [rt.jar:1.8.0_242] at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) [rt.jar:1.8.0_242] at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source) [xercesImpl-2.9.1-jbossas-2.jar:] at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source) [xercesImpl-2.9.1-jbossas-2.jar:] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl-2.9.1-jbossas-2.jar:] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl-2.9.1-jbossas-2.jar:] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [xercesImpl-2.9.1-jbossas-2.jar:] at org.apache.xerces.parsers.DOMParser.parse(Unknown Source) [xercesImpl-2.9.1-jbossas-2.jar:] at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) [xercesImpl-2.9.1-jbossas-2.jar:] at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2188) ... 48 more