1 Reply Latest reply on May 14, 2016 3:10 AM by jboss1573

    Unable to deploy JAXWS webservice in Windows OS where as successfully deployed in Linux OS

    jboss1573

      Hi Developers,

       

      Currently we are using JBoss AS 5.0.1 as our application server, as per our Client request we are planning to migrate to WildFly -9.0.2 Final. Initially we developed the application in Linux OS (Ubuntu) and the application was deployed successfully but we were unable to deploy the same application in Windows OS. Strange thing is that the ear application built in Windows OS is perfectly running in Linux machine but the same ear failed in Windows OS. No changes in code and used same jars and same settings used for building the app but we got the below exceptions while running the server. The server log was given below for your review.

       

      19:09:11,101 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."ncp.ear"."ncppaymentsservice.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."ncp.ear"."ncppaymentsservice.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of subdeployment "ncppaymentsservice.war" of deployment "ncp.ear"

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:163)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

              at java.lang.Thread.run(Thread.java:745)

      Caused by: java.lang.RuntimeException: JBWS024076: Service {http://www.qfund.net/ncppaymentsservice/service/}NCPPaymentsServiceInterface, cannot publish wsdl to: D:\wildfly-9.0.2.Final\standalone\data\wsdl\ncp.ear\ncppaymentsservice.war\NCPPaymentsServiceInterface.wsdl

              at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:107)

              at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.publishContractToFilesystem(EndpointImpl.java:148)

              at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:85)

              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)

              at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)

              at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:119)

              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:120)

              at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:66)

              at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:73)

              at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:156)

              ... 5 more

      Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.

              at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(WSDLWriterImpl.java:1024)

              at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(WSDLWriterImpl.java:1043)

              at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.getWsdlDocument(WSDLFilePublisher.java:156)

              at org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:78)

              ... 14 more

      Caused by: org.xml.sax.SAXParseException; lineNumber: 21; columnNumber: 1; XML document structures must start and end within the same entity.

              at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:244)

              at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:298)

              at com.ibm.wsdl.xml.WSDLWriterImpl.getDocument(WSDLWriterImpl.java:1014)

              ... 17 more

       

      Any help would be highly appreciated.

       

      Thanks & Regards,

      Babu