3 Replies Latest reply on Jan 9, 2010 5:24 PM by madhujr

    Unable to deploy a war(includes web services)packaged into EAR on jboss 5.0.1 GA

      I am new to web services and wanted to develop one
      I used the following softwares / IDE
      Eclipse 3.4.2
      Apache Ant 1.7
      Jboss AS 5.0.1
      JBoss ws 2.0
      jbossws-native-bin-dist 3.2.1GA
      sun jdk 1.6.0_12

       

      So i started off quite well configuring all that is required to create a web service
      i took the help of eclipse ide tools like create web service and create web service clients.

      when i created the web project in eclipse i selected the option add project to ear.
      and finally i start the jboss server with in eclipse and add project the ear file that contains the war file.
      just when i thought all is fine the server throws an error

       

      13:01:52,929 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/TempWs.war/

       

      I have searched jira  to find a solution for this , but i think i couldnt find an appropriate solution

      I am not sure if the search critirea i entered was close to the issue.

       

      The log pasted below is the one when i start jboss from with in eclipse .

       

      Also i have attached a log file when i start jboss from the command prompt with the same ear deployed in C:/jboss-5.0.1.GA/server/all/deploy/

       

       

      13:01:52,929 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/TempWs.war/
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.NoSuchMethodError: org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit.getMetaDataFiles(Lorg/jboss/virtual/VirtualFileFilter;)Ljava/util/List;
      at org.jboss.webservices.integration.deployers.deployment.AbstractDeploymentModelBuilder.newDeployment(AbstractDeploymentModelBuilder.java:119)
      at org.jboss.webservices.integration.deployers.deployment.AbstractDeploymentModelBuilder.newDeploymentModel(AbstractDeploymentModelBuilder.java:62)
      at org.jboss.webservices.integration.deployers.deployment.WSDeploymentBuilder.build(WSDeploymentBuilder.java:82)
      at org.jboss.webservices.integration.deployers.WSDeploymentDeployer.internalDeploy(WSDeploymentDeployer.java:66)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      ... 24 more
      13:01:52,945 WARN [HDScanner] Failed to process changes
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTS IN ERROR:
      Deployment "vfsfile:/C:/jboss-5.0.1.GA/server/all/deploy/TempWsEAR.ear/" is in error due to the following reason(s): java.lang.NoSuchMethodError: org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit.getMetaDataFiles(Lorg/jboss/virtual/VirtualFileFilter;)Ljava/util/List;

       

      at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:806)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

       

       

      Please help.

        • 1. Re: Unable to deploy a war(includes web services)packaged into EAR on jboss 5.0.1 GA
          wolfgangknauf

          Hi,

           

          does your EAR/WAR contain JBoss JAR files? The error sounds like some old JBoss JAR.

          I suspect JBoss WS. You claim that you use 2.0. Why this? Current release is 3.2.2 ( http://www.jboss.org/jbossws ), and JBoss 5.0.1 bundles 3.0.5 (see Manifest.mf in file "jboss-5.0.1.GA\server\default\deployers\jbossws.deployer\jbossws-framework.jar")

           

          Hope this helps

           

          Wolfgang

          • 2. Re: Unable to deploy a war(includes web services)packaged into EAR on jboss 5.0.1 GA
            peterj

            I see that your list of software is missing JBoss Tools. Why not install JBoss Tools into Eclipse and use it's web service capabilities? The Toold documentaiton even contains a tutorial on building web services.  (Also, I recommend moving up to the latest version of Eclipse, the older version you are using might not have the best support for JBoss AS 5.x)

             

            Or if you want to roll your own by hand, go to http://www.manning.com/jamae and download the free chapter 9, it tells you everything you need to know to develop and deploy a web service to JBoss AS 5.x, and all you need is a text editor.

            • 3. Re: Unable to deploy a war(includes web services)packaged into EAR on jboss 5.0.1 GA

              Thanks for all your help guys,

               

              The good news is the issue is resolved.

               

              Actaully if we see the section mentioned in http://community.jboss.org/wiki/JBossWS-Installation

               

              Using JBossWS Native with JDK 6

              Copy the following jars to ${JBOSS_HOME}/lib/endorsed from <JBossWS-Dist>/lib for JBossWS since 3.0.2 version:

              • jaxb-api.jar
              • jbossws-native-jaxrpc.jar
              • jbossws-native-jaxws.jar
              • jbossws-native-jaxws-ext.jar
              • jbossws-native-saaj.jar

               

                one might face the error what i have faced even after following the instructions mentioned here.

               

              Here is what i did to resolve the issue.

               

              copy the jbossws-jboss501.jar from <JBossWS-Dist>/lib  to {JBOSS_HOME}/server/all(the server instance

              mentioned in ant properties)/lib.

               

              This resolved the issue. Can we add this step to the instructions.

               

              Is this already there as part of JIRA i am not sure.

               

              You guys are really great

               

              Thanks jboss community.