Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2120

WAR deployments fail if EE subsystem removed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.1.0.Beta1
    • 7.0.2.Final, 7.1.0.Alpha1
    • Web
    • None
    • Low

    Description

      If the org.jboss.as.ee extension is removed from the configuration, the deployment of WAR files doesn't work anymore. The following exception is thrown:

      14:49:53,938 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.web.deployment.default-host./datagrid: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./datagrid: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_23]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_23]
      	at java.lang.Thread.run(Thread.java:679) [:1.6.0_23]
      Caused by: java.lang.NullPointerException
      	at java.util.ArrayDeque.addFirst(ArrayDeque.java:226) [:1.6.0_23]
      	at java.util.ArrayDeque.push(ArrayDeque.java:493) [:1.6.0_23]
      	at org.jboss.as.naming.util.ThreadLocalStack.push(ThreadLocalStack.java:43)
      	at org.jboss.as.naming.context.NamespaceContextSelector.pushCurrentSelector(NamespaceContextSelector.java:48)
      	at org.jboss.as.web.NamingValve.beginComponentStart(NamingValve.java:65)
      	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:62)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
      	... 3 more
      

      Looking at the code, it seems like the NamespaceContextSelector should be injected only if there is a moduleDescription. Unfortunately if it isn't (like in my case), it fails. If the moduleDescription should never be null, then a better exception should be thrown, otherwise the code shouldn't break.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            NadirX NadirX
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: