IllegalArgumentException: Empty name segment is not allowed in EAP 6

Solution Unverified - Updated -

Issue

  • I get this strange exception in several web application deployments in JBoss AS7:

    16:07:23,656 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.subunit."helloWorld.ear"."helloWorld.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."helloWorld.ear"."helloWorld.war".INSTALL: Failed to process phase INSTALL of subdeployment "helloWorld.war" of deployment "helloWorld.ear"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
        at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_23]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_23]
        at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]
    Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed
        at org.jboss.msc.service.ServiceName.of(ServiceName.java:85)
        at org.jboss.msc.service.ServiceName.append(ServiceName.java:112)
        at org.jboss.as.web.deployment.WarDeploymentProcessor.processDeployment(WarDeploymentProcessor.java:209)
        at org.jboss.as.web.deployment.WarDeploymentProcessor.deploy(WarDeploymentProcessor.java:105)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
        ... 5 more
    
  • or

         Caused by: java.lang.IllegalArgumentException: Empty name segment is not allowed for env
    at org.jboss.msc.service.ServiceName.of(ServiceName.java:85) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
    at org.jboss.msc.service.ServiceName.append(ServiceName.java:112) [jboss-msc-1.0.2.GA-redhat-2.jar:1.0.2.GA-redhat-2]
    at org.jboss.as.naming.deployment.ContextNames.buildServiceName(ContextNames.java:178)
    at org.jboss.as.naming.deployment.ContextNames$BindInfo.<init>(ContextNames.java:190)
    at org.jboss.as.naming.deployment.ContextNames$BindInfo.<init>(ContextNames.java:181)
    at org.jboss.as.naming.deployment.ContextNames.bindInfoFor(ContextNames.java:138)
    at org.jboss.as.ee.component.LookupInjectionSource.getResourceValue(LookupInjectionSource.java:70)
    at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.processBindings(ComponentInstallProcessor.java:252)
    at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.access$000(ComponentInstallProcessor.java:76)
    at org.jboss.as.ee.component.deployers.ComponentInstallProcessor$1.handle(ComponentInstallProcessor.java:206)
    at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescriptionTraversal.java:54)
    at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.deployComponent(ComponentInstallProcessor.java:202)
    at org.jboss.as.ee.component.deployers.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:95)

Environment

  • JBoss Enterprise Application Platform (EAP) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In