Deploying web service fails with JBWS022088 error
Issue
The webservice deployment fails with the following error:
10:14:15,774 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.subunit."WebServices.ear"."MyEndpoint.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."WebServices.ear"."MyEndpoint.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "MyEndpoint.war" of deployment "WebServices.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
Caused by: javax.xml.ws.WebServiceException: JBWS022087: Failed to read vfs:/C:/jboss-eap-6.2/bin/content/WebServices.ear/MyEndpoint.war/WEB-INF/wsdl/someSchema.xsd: JBWS022088: Unexpected element parsing vfs:/C:/jboss-eap-6.2/bin/content/WebServices.ear/MyEndpoint.war/WEB-INF/wsdl/someSchema.xsd: schema
at org.jboss.ws.common.deployment.SOAPAddressWSDLParser.parse(SOAPAddressWSDLParser.java:140)
at org.jboss.ws.common.deployment.SOAPAddressWSDLParser.parse(SOAPAddressWSDLParser.java:121)
at org.jboss.ws.common.deployment.SOAPAddressWSDLParser.<init>(SOAPAddressWSDLParser.java:81)
at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.getCurrentSOAPAddressWSDLParser(MetadataBuilder.java:312)
at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.processAddressRewrite(MetadataBuilder.java:284)
at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.build(MetadataBuilder.java:89)
at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.generateMetadataFromDeployment(DescriptorDeploymentAspect.java:135)
at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.start(DescriptorDeploymentAspect.java:68)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.3.0.Final-redhat-14.jar:7.3.0.Final-redhat-14]
... 5 more
Caused by: java.lang.IllegalStateException: JBWS022088: Unexpected element parsing vfs:/C:/jboss-eap-6.2/bin/content/WebServices.ear/MyEndpoint.war/WEB-INF/wsdl/someSchema.xsd: schema
at org.jboss.ws.common.deployment.SOAPAddressWSDLParser.parse(SOAPAddressWSDLParser.java:179)
at org.jboss.ws.common.deployment.SOAPAddressWSDLParser.parse(SOAPAddressWSDLParser.java:136)
... 14 more
This appears to be caused by the following import statement in the WSDL file:
<wsdl:import namespace="http://test.com/" location="someSchema.xsd" />
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.