7 Replies Latest reply on Mar 12, 2013 8:18 AM by vishalsharma04

    Error while Publishing war ---org.jboss.msc.service.StartException

    vishalsharma04 Newbie

      Hi,

       

      i m getting below Error while Publishing "MyTestApp" on JBoss 7.

       

       

      16:29:00,390 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011907: Register module: Module "deployment.MyTestApp.war:main" from Service Module Loader

      16:29:01,515 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Error listenerStart

      16:29:01,515 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Context [/MyTestApp] startup failed due to previous errors

      16:29:01,593 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.web.deployment.default-host./MyTestApp: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./MyTestApp: 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-redhat-1.jar:1.0.2.GA-redhat-1]

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

            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_11]

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_11]

            at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_11]

       

      16:29:01,827 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "MyTestApp.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host./MyTestApp" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./MyTestApp: JBAS018040: Failed to start context"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"MyTestApp.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]"]}

      16:29:01,827 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

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

       

      16:29:01,827 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./MyTestApp" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./MyTestApp: JBAS018040: Failed to start context"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"MyTestApp.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]"]}}}

      16:29:01,843 INFO  [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011908: Unregister module: Module "deployment.MyTestApp.war:main" from Service Module Loader

      16:29:13,357 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment MyTestApp.war in 11522ms

       

       

       

      Can you suggest.

       

      Regards

        • 1. Re: Error while Publishing war ---org.jboss.msc.service.StartException
          Nicklas Karlsson Master

          Is that 7.1.1? You might want to try the "7.2" to see if the error message gives some more details since that one doesn't tell much. You might also want to do a jar tf of the war and list your libs

          • 2. Re: Error while Publishing war ---org.jboss.msc.service.StartException
            vishalsharma04 Newbie

            i m using "JBoss AS 7.1.1.Final "Brontes"

             

            Details of error:-

             

            12:32:33,449 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-4) Context initialization failed: java.lang.NoClassDefFoundError: org/jboss/virtual/VirtualFileVisitor

                  at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:348) [org.springframework.core-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:282) [org.springframework.core-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1197) [org.springframework.context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:177) [org.springframework.beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [org.springframework.beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) [org.springframework.context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:465) [org.springframework.context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:395) [org.springframework.context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  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$Worker.runTask(Unknown Source) [rt.jar:1.6.0_11]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_11]

                  at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_11]

            Caused by: java.lang.ClassNotFoundException: org.jboss.virtual.VirtualFileVisitor from [Module "deployment.MyTestApp.war:main" from Service Module Loader]

                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                  at java.lang.ClassLoader.loadClassInternal(Unknown Source) [rt.jar:1.6.0_11]

                  ... 21 more

             

            12:32:33,496 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/MyTestApp]] (MSC service thread 1-4) Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener: java.lang.NoClassDefFoundError: org/jboss/virtual/VirtualFileVisitor

                  at org.springframework.core.io.support.PathMatchingResourcePatternResolver.findPathMatchingResources(PathMatchingResourcePatternResolver.java:348) [org.springframework.core-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.core.io.support.PathMatchingResourcePatternResolver.getResources(PathMatchingResourcePatternResolver.java:282) [org.springframework.core-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.context.support.AbstractApplicationContext.getResources(AbstractApplicationContext.java:1197) [org.springframework.context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:177) [org.springframework.beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) [org.springframework.beans-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) [org.springframework.context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:465) [org.springframework.context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:395) [org.springframework.context-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [org.springframework.web-3.0.2.RELEASE.jar:3.0.2.RELEASE]

                  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$Worker.runTask(Unknown Source) [rt.jar:1.6.0_11]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_11]

                  at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_11]

            Caused by: java.lang.ClassNotFoundException: org.jboss.virtual.VirtualFileVisitor from [Module "deployment.MyTestApp.war:main" from Service Module Loader]

                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                  at java.lang.ClassLoader.loadClassInternal(Unknown Source) [rt.jar:1.6.0_11]

                  ... 21 more

             

            12:32:33,667 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Error listenerStart

            12:32:33,683 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Context [/MyTestApp] startup failed due to previous errors

            12:32:33,714 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/MyTestApp]] (MSC service thread 1-4) Closing Spring root WebApplicationContext

            12:32:33,730 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.web.deployment.default-host./MyTestApp: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./MyTestApp: 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$Worker.runTask(Unknown Source) [rt.jar:1.6.0_11]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_11]

                  at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_11]

             

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

            12:32:34,605 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment MyTestApp.war in 659ms

            12:32:34,605 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

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

             

            12:32:34,605 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./MyTestApp" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./MyTestApp: JBAS018040: Failed to start context"}}}}

             

             

            is it saying "rt.Jar" not found or somthing else ?

             

             

            Regards

            • 3. Re: Error while Publishing war ---org.jboss.msc.service.StartException
              Nicklas Karlsson Master

              It looks more like something Spring-classloading related. Have you tried upgrading Spring (altough I have a faint recollection that 3.0.2 could work)?

              1 of 1 people found this helpful
              • 4. Re: Error while Publishing war ---org.jboss.msc.service.StartException
                Stephen Coy Master

                You need to use Spring Framework 3.0.3 or newer on JBoss AS 7.x.

                1 of 1 people found this helpful
                • 5. Re: Error while Publishing war ---org.jboss.msc.service.StartException
                  vishalsharma04 Newbie

                  Thanks a lot.

                  I tried JBoss 6 also and find some issue for same war.

                  Error detail:-

                   

                  16:26:03,983 INFO  [org.jboss.modules] JBoss Modules version 1.1.2.GA-redhat-1

                  16:26:06,342 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA-redhat-1

                  16:26:06,576 INFO  [org.jboss.as] JBAS015899: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) starting

                  16:26:21,262 INFO  [org.jboss.as.server.deployment.scanner] JBAS015003: Found checkPrice.war in deployment directory. To trigger deployment create a file called checkPrice.war.dodeploy

                  16:26:21,262 INFO  [org.jboss.as.server.deployment.scanner] JBAS015003: Found MyTestApp.war in deployment directory. To trigger deployment create a file called MyTestApp.war.dodeploy

                  16:26:21,403 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

                  16:26:21,496 INFO  [org.xnio] XNIO Version 3.0.4.GA-redhat-1

                  16:26:21,637 INFO  [org.xnio.nio] XNIO NIO Implementation Version

                  16:26:31,370 INFO  [org.jboss.as.server.deployment]

                  (

                  MSC service thread 1-4) JBAS015876: Starting deployment of "MyTestApp.war"

                   

                  JBAS011907: Register module: Module "deployment.MyTestApp.war:main" from Service Module Loader

                   

                  16:27:23,146 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Error listenerStart

                  16:27:23,146 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) Context [/MyTestApp] startup failed due to previous errors

                  16:27:23,193 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.web.deployment.default-host./MyTestApp: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./MyTestApp: 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-redhat-1.jar:1.0.2.GA-redhat-1]

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

                        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_11]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_11]

                        at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_11]

                   

                  16:27:23,411 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 40) JBAS018559: Deployed "MyTestApp.war"

                  16:27:23,411 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

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

                   

                  16:27:23,583 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

                  16:27:23,583 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1) started (with errors) in 81491ms - Started 470 of 554 services (2 services failed or missing dependencies, 81 services are passive or on-demand)

                   

                  • 6. Re: Error while Publishing war ---org.jboss.msc.service.StartException
                    Stephen Coy Master

                    JBoss EAP 6.x is a version of JBoss AS 7.x that Red Hat provides to customers as a supported product.

                     

                    As such, it has exactly the same constraints regarding Spring Framework versions.