Hey all,
We've created a simple servlet that accesses a cxf web service running on a
remote host. We're running the servlet inside of a customized Tomcat container.
When the servlet is running inside of a Windows environment, everything works
as expected. However, when we move to a Red Hat environment (same container,
same WAR), the service call fails with the error below. Does anyone have any
clues as to what may be the issue?
Thanks in advance for your help,
--Chris
javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Failed tocreate
service.
at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:150)
at
org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:65)
at javax.xml.ws.Service.<init>(Service.java:36)
at
org.cis.ws.api.CustomerInformationServiceClient.<init>(CustomerInformationServiceClient.java:51)
at
org.cis.ws.api.CustomerInformationService.setWsdlUrl(CustomerInformationService.java:69)
at
org.cis.ws.api.CustomerInformationService.<init>(CustomerInformationService.java:58)
at
org.cis.ws.api.CustomerInformationService.<init>(CustomerInformationService.java:48)
at
org.cis.webapp.servlet.CisGetOrganizationServlet.service(CisGetOrganizationServlet.java:55)
at
com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.java:228)
at
com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:315)
at
com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:334)
at
com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:378)
at
com.day.j2ee.servletengine.ServletHandlerImpl.execute(ServletHandlerImpl.java:313)
at
com.day.j2ee.servletengine.DefaultThreadPool$DequeueThread.run(DefaultThreadPool.java:134)
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.<init>(WSDLServiceFactory.java:93)
at
org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:205)
at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:148)
... 14 more
Caused by: javax.wsdl.WSDLException: WSDLException (at /TITLE):
faultCode=INVALID_WSDL: Expected element
'{http://schemas.xmlsoap.org/wsdl/}definitions'.
at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:229)
at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:179)
at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:91)
... 16 more