2 Replies Latest reply on Nov 8, 2013 7:50 PM by Brendan Greene

    Deploy Solr 4.5 in Jboss 7.1

    Brendan Greene Newbie

      Trying to deploy solr.war in Jboss 7.1 and seeing this error when starting the server:

      13:16:24,337 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."solr-4.5.1.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."solr-4.5.1.war".PARSE: JBAS018733:

      Failed to process phase PARSE of deployment "solr-4.5.1.war"

      at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.3.Final.jar:7.1.3.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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_13] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_13] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_13] Caused by: java.lang.IllegalStateException:


      Failed to resolve expression: ${context}

      at org.jboss.metadata.property.DefaultPropertyReplacer.replaceProperties(DefaultPropertyReplacer.java:125) at org.jboss.metadata.parser.util.MetaDataElementParser.getElementText(MetaDataElementParser.java:194) at org.jboss.metadata.parser.ee.ParamValueMetaDataParser.parse(ParamValueMetaDataParser.java:78) at org.jboss.metadata.parser.servlet.ServletMetaDataParser.parse(ServletMetaDataParser.java:93) at org.jboss.metadata.parser.servlet.WebCommonMetaDataParser.parse(WebCommonMetaDataParser.java:102) at org.jboss.metadata.parser.servlet.WebMetaDataParser.parse(WebMetaDataParser.java:175) at org.jboss.metadata.parser.servlet.WebMetaDataParser.parse(WebMetaDataParser.java:55) at org.jboss.as.web.deployment.WebParsingDeploymentProcessor.deploy(WebParsingDeploymentProcessor.java:91) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.3.Final.jar:7.1.3.Final] ... 5 more

      Any ideas?

        • 1. Re: Deploy Solr 4.5 in Jboss 7.1
          Brendan Greene Newbie

          Got passed the initial issue by commenting out some not needed code in solr web.xml.  However, not I'm seeing this

           

          21:37:30,961 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."solr.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."solr.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "solr.war"

            at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.3.Final.jar:7.1.3.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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_13]

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

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

          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.deploy(ModuleJndiBindingProcessor.java:118)

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

            ... 5 more

          • 2. Re: Deploy Solr 4.5 in Jboss 7.1
            Brendan Greene Newbie

            This seems to be a jboss 7.1.3 issue.

             

            I followed thee same exact steps in jboss 7.1.1 and Solr deployed just fine.