1 Reply Latest reply on Jun 11, 2014 10:14 AM by ctomc

    JBoss AS 7.2.0 Deployment : Child 'classpath:wsdl/device-1.0.xsd' not found for VirtualFile

    voulzy

      Hello

       

      I'm a starter developer and I am actually trying to migrate a web application from Jonas-5.2.2 to JBoss-AS-7.2.0.

       

       

      During deployment of a war file, I'm getting this error :

       

       

       

          15:53:41,906 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."myapp.war".INSTALL: org.jb

          c.service.StartException in service jboss.deployment.unit."myapp.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "myapp.war"

                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final.jar:7.2.0.Final]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [rt.jar:1.6.0_45]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [rt.jar:1.6.0_45]

                  at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_45]

          Caused by: java.lang.RuntimeException: JBWS024076: Service {urn:app.carabine.com:wsdl:WSControlor:Controlor#WSControlor_1}ControlorService

          ot publish wsdl to: C:\JBoss7\standalone\data\wsdl\myapp.war\ControlorService.wsdl

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

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

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

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

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

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

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

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

                  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.2.0.Final.jar:7.2.0.Final]

                  ... 5 more

          Caused by: java.io.IOException: JBAS015526: Child 'classpath:wsdl/device-1.0.xsd' not found for VirtualFile: "/C:/JBoss7/bin/content/myapp.war"

                  at org.jboss.as.webservices.util.VirtualFileAdaptor.findChild(VirtualFileAdaptor.java:61)

                  at org.jboss.as.webservices.util.VirtualFileAdaptor.findChild(VirtualFileAdaptor.java:71)

                  at org.jboss.ws.common.deployment.ResourceResolverImpl.resolve(ResourceResolverImpl.java:76)

                  at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:228)

                  at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:253)

                  at org.jboss.ws.common.utils.AbstractWSDLFilePublisher.publishSchemaImports(AbstractWSDLFilePublisher.java:257)

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

                  ... 14 more

       

       

      This is the MANIFEST of jar file containing the device-1.0.xsd file :

       

       

          Project-ArtifactId: appComControlorWs

          Archiver-Version: Plexus Archiver

          Built-By: jonas

          Build-Jdk: 1.5.0_11

          Project-GroupId: com.carabine.myapplication.shared

          Created-By: Apache Maven 3.0.4

          Project-Version: G01R01C02

       

       

      I thought this error usually happened when the file was declared in the Class path in the MANIFEST, but it's not the case here.

       

       

      The device-1.0.xsd file is placed in WEB-INF/wsdl AND in WEB-INF/lib/ControlorService.jar/wsdl.

       

      If you could just have a look and give me a clue on what I should investigate, it could be very helpfull.

       

      Thank you !