4 Replies Latest reply on Aug 7, 2013 5:58 AM by Raghavan Ramanujam

    Deployment error in Jboss 7.

    Nancy Marido Newbie

      I am trying to deploy a war in JBoss 7 and facing the below given error...

       

      15:12:44,631 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/MyWar]]

      (MSC service thread 1-5) Exception sending context initialized event to listener instance of class <<MyPackage>>.GuiceServletConfig: java.lang.NullPointerException

                at <<MyPackage>>.ConfigurationUtility.getEnvironment(ConfigurationUtility.java:110) [<<Dependency_jar>>.jar:]

                at <<MyPackage>>.ConfigurationUtility.configSetup(ConfigurationUtility.java:163) [<<Dependency_jar>>.2.jar:]

                at <<MyPackage>>.GuiceServletConfig.contextInitialized(GuiceServletConfig.java:85) [classes:]

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

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

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

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]

       

       

      15:12:44,708 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-5) Error listenerStart

      15:12:44,710 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-5) Context [/MyWar]

      startup failed due to previous errors

      15:12:44,735 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5)

      MSC00001: Failed to start service jboss.web.deployment.default-host./MyWar:

      org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./MyWar: JBAS018040: Failed to start context

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)

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

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [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_17]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]

                at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]

       

       

      15:12:44,745 INFO  [org.jboss.as] (MSC service thread 1-5) JBAS015951: Admin console listening on http://127.0.0.1:9990

      15:12:44,747 ERROR [org.jboss.as] (MSC service thread 1-5) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 18136ms - Started 383 of 462 services (2 services failed or missing dependencies, 76 services are passive or on-demand)

      15:12:44,948 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "MyWar.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./MyWar" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./MyWar: JBAS018040: Failed to start context"}}

      15:12:53,707 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment MyWar.war in 8756ms

      15:12:53,709 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host./MyWar: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./MyWar: JBAS018040: Failed to start context

       

       

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