7 Replies Latest reply on Mar 11, 2012 1:57 PM by Viggo Navarsete

    Upgrading from JBoss 6.1.0.Final to 7.1.0.Final gives "Empty name segment is not allowed for env"

    Viggo Navarsete Expert

      I'm currently upgrading an application from JBoss 6.1.0.Final to JBoss 7.1.0.Final, and I get the following stacktrace:

       

      14:45:32,568 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named CertificateLoaderFactoryBean in deployment unit deployment "tix-5.1.5-SNAPSHOT.war" are as follows:

       

       

                java:global/tix-5.1.5-SNAPSHOT/CertificateLoaderFactoryBean!com.tracetracker.tix.config.CertificateLoaderFactoryBean

                java:app/tix-5.1.5-SNAPSHOT/CertificateLoaderFactoryBean!com.tracetracker.tix.config.CertificateLoaderFactoryBean

                java:module/CertificateLoaderFactoryBean!com.tracetracker.tix.config.CertificateLoaderFactoryBean

                java:global/tix-5.1.5-SNAPSHOT/CertificateLoaderFactoryBean

                java:app/tix-5.1.5-SNAPSHOT/CertificateLoaderFactoryBean

                java:module/CertificateLoaderFactoryBean

       

       

      14:45:33,015 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."tix-5.1.5-SNAPSHOT.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."tix-5.1.5-SNAPSHOT.war".INSTALL: Failed to process phase INSTALL of deployment "tix-5.1.5-SNAPSHOT.war"

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                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(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_26]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_26]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26]

      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.jar:1.0.2.GA]

                at org.jboss.msc.service.ServiceName.append(ServiceName.java:112) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                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:136)

                at org.jboss.as.ee.component.LookupInjectionSource.getResourceValue(LookupInjectionSource.java:70)

                at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:227)

                at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor$1.handle(ModuleJndiBindingProcessor.java:194)

                at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescriptionTraversal.java:54)

                at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.processClassConfigurations(ModuleJndiBindingProcessor.java:162)

                at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:155)

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]

                ... 5 more

       

       

      14:45:33,397 INFO  [org.jboss.as.server] (management-handler-threads - 2) JBAS015870: Deploy of deployment "tix-5.1.5-SNAPSHOT.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"tix-5.1.5-SNAPSHOT.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"tix-5.1.5-SNAPSHOT.war\".INSTALL: Failed to process phase INSTALL of deployment \"tix-5.1.5-SNAPSHOT.war\""}}

      14:45:33,817 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment tix-5.1.5-SNAPSHOT.war in 410ms

      14:45:33,821 INFO  [org.jboss.as.controller] (management-handler-threads - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."tix-5.1.5-SNAPSHOT.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."tix-5.1.5-SNAPSHOT.war".INSTALL: Failed to process phase INSTALL of deployment "tix-5.1.5-SNAPSHOT.war"

       

       

      How can I figure out what is wrong? Is it something about the last EJB that is printed, or something else? I can't find any indication where to start looking..