Exactly, when you localize WSDL in the JAR file (often in /META-INF/wsdl), one has to make sure the XSD imports (if there are any) are also localized - the XSDs are alongside the WSDL and the path is LOCAL and not an http address that has to be resolved.
Perhaps this thread re: a similar issue: http://cxf.547215.n5.nabble.com/WSDLException-faultCode-PARSER-ERROR-Connection-reset-td5711085.html#a5711241 might help. On Wed, Jul 25, 2012 at 3:35 PM, Daniel Kulp <[email protected]> wrote: > > > It looks like while the WSDL's are internal to the jar, it's referencing > schemas that are not. The error message indicates that it could not locate > the schema: > > http://lolabroker-int-dev.devel.cuc.com:80/soa- > > infra/services/default/accountinforequest/AccountInfoRequestWS?XSD=xsd/AccountInfoRQ.xsd > > > > Dan > > > On Wednesday, July 25, 2012 10:28:31 AM sanndsu wrote: > > Hello, > > > > I'm getting following exception while deploying my services on TOMCAT > > SERVER. The same services executed successfully on eclipse IDE. FYI, > > the WSDL is included in a jar file. Any insight appreciatd. > > > > > > Thanks, > > San > > > > javax.xml.ws.WebServiceException: > > org.apache.cxf.service.factory.ServiceConstructionException: Failed to > > create service. > > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:334) > > at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:319) > > at javax.xml.ws.Service.getPort(Service.java:46) > > at > > > com.oracle.sca.soapservice.lbmember.accountinforequest.accountinforequestw > > > s.AccountInfoRequestWS.getAccountInfoRequestPt(AccountInfoRequestWS.java:7 > > 6) at > > > callcenter.ivr.interfaces.alg.rewards.ALGRewardsServiceImpl.getAccountInfo > > RequestPort(ALGRewardsServiceImpl.java:125) at > > > callcenter.ivr.interfaces.alg.rewards.ALGRewardsServiceImpl.getAccountInfo > > Request(ALGRewardsServiceImpl.java:272) at > > > callcenter.ivr.interfaces.alg.rewards.elements.GetTLSAccountInfo.doAction( > > GetTLSAccountInfo.java:150) at > > > com.audium.server.voiceElement.ActionElementBase.service(ActionElementBase > > .java:387) at > > com.audium.server.controller.Controller.goToAction(Controller.java:2959) > > at > > com.audium.server.controller.Controller.goToElement(Controller.java:2691) > > at > > > com.audium.server.controller.Controller.continueCall(Controller.java:2511) > > at > > com.audium.server.controller.Controller.goToElement(Controller.java:2742) > > at > > > com.audium.server.controller.Controller.continueCall(Controller.java:2511) > > at com.audium.server.controller.Controller.doPost(Controller.java:733) at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati > > onFilterChain.java:269) at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter > > Chain.java:188) at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. > > java:210) at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. > > java:174) at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 > > 27) at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 > > 17) at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja > > va:108) at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151 > > ) at > > > org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.jav > > a:834) at > > > org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process > > (Http11AprProtocol.java:640) at > > org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286) > > at java.lang.Thread.run(Thread.java:595) > > Caused by: org.apache.cxf.service.factory.ServiceConstructionException: > > Failed to create service. > > at > > > org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:15 > > 0) at > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFr > > omWSDL(ReflectionServiceFactoryBean.java:383) at > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServ > > iceModel(ReflectionServiceFactoryBean.java:506) at > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflect > > ionServiceFactoryBean.java:242) at > > > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFa > > ctoryBean.java:205) at > > > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(Ab > > stractWSDLBasedEndpointFactory.java:101) at > > > org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.java:90 > > ) at > > > org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryBe > > an.java:155) at > > > org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBean.ja > > va:155) at > > org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:465) at > > org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:332) ... 27 > > more > > Caused by: org.apache.ws.commons.schema.XmlSchemaException: Unable to > > locate imported document at > > ' > http://lolabroker-int-dev.devel.cuc.com:80/soa-infra/services/default/acc > > ountinforequest/AccountInfoRequestWS?XSD=xsd/AccountInfoRQ.xsd', relative > > to > > > 'jar:file:C:\Cisco\CallStudio\eclipse\plugins\com.audiumcorp.studio.debug. > > > runtime_8.5.1\AUDIUM_HOME\common\lib\ALGRewards.jar!/wsdls/AccountInfoRequ > > estWS.wsdl#types1'. at > > > org.apache.cxf.catalog.CatalogXmlSchemaURIResolver.resolveEntity(CatalogXm > > lSchemaURIResolver.java:76) at > > > org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder. > > java:684) at > > > org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java > > :538) at > > > org.apache.ws.commons.schema.SchemaBuilder.handleSchemaElementChild(Schema > > Builder.java:1513) at > > > org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBu > > ilder.java:659) at > > > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection. > > java:542) at > > > org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.jav > > a:129) at > > org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:133) at > > org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:73) at > > org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:65) at > > org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:60) at > > > org.apache.cxf.wsdl11.WSDLServiceBuilder.getSchemas(WSDLServiceBuilder.jav > > a:372) at > > > org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder. > > java:339) at > > > org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder. > > java:203) at > > > org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:14 > > 2) > > > > > > > > -- > > View this message in context: > > > http://cxf.547215.n5.nabble.com/WSDL-Service-Creation-Exception-tp5711590 > > .html Sent from the cxf-user mailing list archive at Nabble.com. > -- > Daniel Kulp > [email protected] - http://dankulp.com/blog > Talend Community Coder - http://coders.talend.com > * *
