2 Replies Latest reply on Jan 16, 2014 12:46 AM by Dionissis Aletras

    Help on running "The ... Quote Machine" oreilly example on JBoss 7.1.1

    Dionissis Aletras Newbie

      Trying to deploy the mentioned example from the chapter 2 of Book "JBoss A Developer's Notebook" oreilly edition on

      Fedora 19 With JBoss AS 7.1.1 Final, oracle JDK7 using ant 1.9.2

      FROM the published environment JBoss 4.0.2 using ant 1.6.2

      I GET the following error message:

       

      14:32:22,365 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "quote.war"
      14:32:22,945 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
          at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
      Caused by: java.lang.IllegalArgumentException: Child container with name  already exists
          at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:804)
          at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:792)
          at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:356)
          at org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:62)
          at org.jboss.as.web.deployment.WebContextInjector.inject(WebContextInjector.java:38)
          at org.jboss.msc.inject.CastingInjector.inject(CastingInjector.java:55) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl.doInject(ServiceControllerImpl.java:1549) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl.access$1900(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.performInjections(ServiceControllerImpl.java:1780) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1741) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
          ... 3 more

       

      14:32:23,162 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "quote.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service"}}
      14:32:23,194 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment quote.war in 31ms
      14:32:23,196 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service

       

      14:32:23,197 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./: Failed to start service"}}}}

       

       

      PLEASE ANY IDEA

      THANKS IN ADVANCE