6 Replies Latest reply on Aug 23, 2011 8:42 PM by M Mudu

    Error deploying solr.war into Jboss7

    M Mudu Newbie

      Hi there,

       

      I get the following error when deploying the solr.war into the /standalone/deployments/ directory:

       

      12:28:27,024 ERROR [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started (with errors) in 2151ms - Started 94 of 155 services (6 services failed or missing dependencies, 55 services are passive or on-demand)

      12:28:27,039 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting deployment of "solr.war"

      12:28:27,108 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-16) MSC00001: Failed to start service jboss.deployment.unit."solr.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."solr.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "solr.war"

                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_26]

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

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

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: org.jboss.as.server.deployment.DeploymentUnitProcessingException: failed to process "/opt/jboss-as-web-7.0.0.Final/standalone/deployments/solr.war/WEB-INF/lib/velocity-tools-2.0.jar"

                at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.deploy(WarStructureDeploymentProcessor.java:118)

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

                ... 5 more

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: failed to process "/opt/jboss-as-web-7.0.0.Final/standalone/deployments/solr.war/WEB-INF/lib/velocity-tools-2.0.jar"

                at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:173)

                at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createResourceRoots(WarStructureDeploymentProcessor.java:151)

                at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.deploy(WarStructureDeploymentProcessor.java:112)

                ... 6 more

      Caused by: java.util.zip.ZipException: error in opening zip file

                at java.util.zip.ZipFile.open(Native Method) [:1.6.0_26]

                at java.util.zip.ZipFile.<init>(ZipFile.java:127) [:1.6.0_26]

                at java.util.jar.JarFile.<init>(JarFile.java:135) [:1.6.0_26]

                at java.util.jar.JarFile.<init>(JarFile.java:99) [:1.6.0_26]

                at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:95)

                at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:81)

                at org.jboss.vfs.VFS.mountZip(VFS.java:408)

                at org.jboss.vfs.VFS.mountZip(VFS.java:434)

                at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDeploymentProcessor.java:168)

                ... 8 more

       

       

      12:28:27,112 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "solr.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"solr.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"solr.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"solr.war\""}}

      12:28:27,114 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-14) Stopped deployment solr.war in 1ms

      12:28:27,117 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"solr.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"solr.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"solr.war\""}}}}

       

      There is no documentation on the SOLR wiki on how to deploy SOLR into jboss7.

       

      The only way I found that I could deploy the solr.war was to remove the velocity-tools-2.0.jar from the solr.war/WEB-INF/lib directory.

      I am not sure this is the right fix.  Should this be reported as a bug to SOLR or to jBoss?

       

      Is there another solution for this problem?

       

      Regards,

       

      Max

        • 1. Re: Error deploying solr.war into Jboss7
          jaikiran pai Master

          Are you sure that velocity jar isn't corrupted? Post the output of

           

          jar -tf velocity-tools-2.0.jar

          • 2. Re: Error deploying solr.war into Jboss7
            M Mudu Newbie

            Here is the output of the content of velocity-tools-2.0.jar:

             

            max@max-desktop:~/Downloads$ jar -tf velocity-tools-2.0.jar

            META-INF/

            META-INF/MANIFEST.MF

            org/

            org/apache/

            org/apache/velocity/

            org/apache/velocity/tools/

            org/apache/velocity/tools/config/

            org/apache/velocity/tools/generic/

            org/apache/velocity/tools/generic/log/

            org/apache/velocity/tools/struts/

            org/apache/velocity/tools/view/

            org/apache/velocity/tools/view/context/

            org/apache/velocity/tools/view/i18n/

            org/apache/velocity/tools/view/jsp/

            org/apache/velocity/tools/view/servlet/

            org/apache/velocity/tools/view/tools/

            META-INF/velocity-view.tld

            org/apache/velocity/tools/ClassUtils.class

            org/apache/velocity/tools/ConversionUtils.class

            org/apache/velocity/tools/OldToolInfo.class

            org/apache/velocity/tools/Scope.class

            org/apache/velocity/tools/ToolContext.class

            org/apache/velocity/tools/ToolInfo.class

            org/apache/velocity/tools/ToolManager.class

            org/apache/velocity/tools/Toolbox.class

            org/apache/velocity/tools/ToolboxFactory.class

            org/apache/velocity/tools/config/CompoundConfiguration.class

            org/apache/velocity/tools/config/Configuration.class

            org/apache/velocity/tools/config/ConfigurationCleaner.class

            org/apache/velocity/tools/config/ConfigurationException.class

            org/apache/velocity/tools/config/ConfigurationUtils.class

            org/apache/velocity/tools/config/Data$AutoConverter.class

            org/apache/velocity/tools/config/Data$FieldConverter.class

            org/apache/velocity/tools/config/Data$NumberConverter.class

            org/apache/velocity/tools/config/Data$Type.class

            org/apache/velocity/tools/config/Data.class

            org/apache/velocity/tools/config/DefaultKey.class

            org/apache/velocity/tools/config/EasyFactoryConfiguration$EasyData.class

            org/apache/velocity/tools/config/EasyFactoryConfiguration$EasyWrap.class

            org/apache/velocity/tools/config/EasyFactoryConfiguration.class

            org/apache/velocity/tools/config/FactoryConfiguration.class

            org/apache/velocity/tools/config/FileFactoryConfiguration.class

            org/apache/velocity/tools/config/InvalidScope.class

            org/apache/velocity/tools/config/InvalidScopeException.class

            org/apache/velocity/tools/config/LogSupport.class

            org/apache/velocity/tools/config/NullKeyException.class

            org/apache/velocity/tools/config/OldXmlFactoryConfigurationRuleSet$BooleanConfigRule.class

            org/apache/velocity/tools/config/OldXmlFactoryConfigurationRuleSet$CreateSessionRule.class

            org/apache/velocity/tools/config/OldXmlFactoryConfigurationRuleSet$DeprecationRule.class

            org/apache/velocity/tools/config/OldXmlFactoryConfigurationRuleSet$ParameterRule.class

            org/apache/velocity/tools/config/OldXmlFactoryConfigurationRuleSet$ScopeRule.class

            org/apache/velocity/tools/config/OldXmlFactoryConfigurationRuleSet$SetNextDataRule.class

            org/apache/velocity/tools/config/OldXmlFactoryConfigurationRuleSet$XhtmlRule.class

            org/apache/velocity/tools/config/OldXmlFactoryConfigurationRuleSet.class

            org/apache/velocity/tools/config/PropertiesFactoryConfiguration.class

            org/apache/velocity/tools/config/Property.class

            org/apache/velocity/tools/config/SkipSetters.class

            org/apache/velocity/tools/config/ToolConfiguration$1.class

            org/apache/velocity/tools/config/ToolConfiguration$Status.class

            org/apache/velocity/tools/config/ToolConfiguration.class

            org/apache/velocity/tools/config/ToolboxConfiguration.class

            org/apache/velocity/tools/config/ValidScope.class

            org/apache/velocity/tools/config/XmlFactoryConfiguration.class

            org/apache/velocity/tools/config/XmlFactoryConfigurationRuleSet$DataValueInBodyRule.class

            org/apache/velocity/tools/config/XmlFactoryConfigurationRuleSet$PropertyAttributeRule.class

            org/apache/velocity/tools/config/XmlFactoryConfigurationRuleSet.class

            org/apache/velocity/tools/generic/AbstractLockConfig.class

            org/apache/velocity/tools/generic/Alternator.class

            org/apache/velocity/tools/generic/AlternatorTool.class

            org/apache/velocity/tools/generic/ClassTool$CallableSub.class

            org/apache/velocity/tools/generic/ClassTool$ConstructorSub.class

            org/apache/velocity/tools/generic/ClassTool$FieldSub.class

            org/apache/velocity/tools/generic/ClassTool$MethodSub.class

            org/apache/velocity/tools/generic/ClassTool$Sub.class

            org/apache/velocity/tools/generic/ClassTool.class

            org/apache/velocity/tools/generic/ComparisonDateTool$Comparison.class

            org/apache/velocity/tools/generic/ComparisonDateTool.class

            org/apache/velocity/tools/generic/ContextTool.class

            org/apache/velocity/tools/generic/ConversionTool.class

            org/apache/velocity/tools/generic/DateTool.class

            org/apache/velocity/tools/generic/DisplayTool$Measurements.class

            org/apache/velocity/tools/generic/DisplayTool.class

            org/apache/velocity/tools/generic/EscapeTool.class

            org/apache/velocity/tools/generic/FieldTool$FieldToolSub.class

            org/apache/velocity/tools/generic/FieldTool$MutableField.class

            org/apache/velocity/tools/generic/FieldTool.class

            org/apache/velocity/tools/generic/FormatConfig.class

            org/apache/velocity/tools/generic/IteratorTool.class

            org/apache/velocity/tools/generic/LinkTool.class

            org/apache/velocity/tools/generic/ListTool.class

            org/apache/velocity/tools/generic/LocaleConfig.class

            org/apache/velocity/tools/generic/LoopTool$1.class

            org/apache/velocity/tools/generic/LoopTool$Action.class

            org/apache/velocity/tools/generic/LoopTool$ActionCondition.class

            org/apache/velocity/tools/generic/LoopTool$Comparison.class

            org/apache/velocity/tools/generic/LoopTool$Condition.class

            org/apache/velocity/tools/generic/LoopTool$Equals.class

            org/apache/velocity/tools/generic/LoopTool$ManagedIterator.class

            org/apache/velocity/tools/generic/LoopTool$SyncedIterator.class

            org/apache/velocity/tools/generic/LoopTool.class

            org/apache/velocity/tools/generic/MarkupTool$1.class

            org/apache/velocity/tools/generic/MarkupTool$Mode.class

            org/apache/velocity/tools/generic/MarkupTool$Tag.class

            org/apache/velocity/tools/generic/MarkupTool.class

            org/apache/velocity/tools/generic/MathTool.class

            org/apache/velocity/tools/generic/NumberTool.class

            org/apache/velocity/tools/generic/RenderTool.class

            org/apache/velocity/tools/generic/ResourceTool$Key.class

            org/apache/velocity/tools/generic/ResourceTool.class

            org/apache/velocity/tools/generic/SafeConfig.class

            org/apache/velocity/tools/generic/SortTool$PropertiesComparator.class

            org/apache/velocity/tools/generic/SortTool.class

            org/apache/velocity/tools/generic/ValueParser.class

            org/apache/velocity/tools/generic/XmlTool$NodeIterator.class

            org/apache/velocity/tools/generic/XmlTool.class

            org/apache/velocity/tools/generic/log/CommonsLogLogSystem.class

            org/apache/velocity/tools/generic/log/LogChuteCommonsLog.class

            org/apache/velocity/tools/generic/log/LogSystemCommonsLog.class

            org/apache/velocity/tools/generic/times.properties

            org/apache/velocity/tools/generic/tools.xml

            org/apache/velocity/tools/struts/ActionMessagesTool.class

            org/apache/velocity/tools/struts/ErrorsTool.class

            org/apache/velocity/tools/struts/FormTool.class

            org/apache/velocity/tools/struts/MessageResourcesTool.class

            org/apache/velocity/tools/struts/MessageTool$TextKey.class

            org/apache/velocity/tools/struts/MessageTool.class

            org/apache/velocity/tools/struts/SecureLinkTool.class

            org/apache/velocity/tools/struts/StrutsLinkTool.class

            org/apache/velocity/tools/struts/StrutsUtils.class

            org/apache/velocity/tools/struts/TilesTool.class

            org/apache/velocity/tools/struts/ValidatorTool$1.class

            org/apache/velocity/tools/struts/ValidatorTool.class

            org/apache/velocity/tools/struts/tools.xml

            org/apache/velocity/tools/view/AbstractSearchTool$StoredResults.class

            org/apache/velocity/tools/view/AbstractSearchTool.class

            org/apache/velocity/tools/view/BrowserTool.class

            org/apache/velocity/tools/view/CookieTool$SugarCookie.class

            org/apache/velocity/tools/view/CookieTool.class

            org/apache/velocity/tools/view/DataInfo.class

            org/apache/velocity/tools/view/ImportSupport$ImportResponseWrapper$1.class

            org/apache/velocity/tools/view/ImportSupport$ImportResponseWrapper.class

            org/apache/velocity/tools/view/ImportSupport$SafeClosingHttpURLConnectionReader.class

            org/apache/velocity/tools/view/ImportSupport.class

            org/apache/velocity/tools/view/ImportTool.class

            org/apache/velocity/tools/view/IncludeTool.class

            org/apache/velocity/tools/view/JeeConfig.class

            org/apache/velocity/tools/view/JeeContextConfig.class

            org/apache/velocity/tools/view/JeeFilterConfig.class

            org/apache/velocity/tools/view/JeeServletConfig.class

            org/apache/velocity/tools/view/LinkTool.class

            org/apache/velocity/tools/view/PagerTool.class

            org/apache/velocity/tools/view/ParameterTool.class

            org/apache/velocity/tools/view/ServletLogChute.class

            org/apache/velocity/tools/view/ServletUtils$1.class

            org/apache/velocity/tools/view/ServletUtils$SessionMutex.class

            org/apache/velocity/tools/view/ServletUtils.class

            org/apache/velocity/tools/view/ToolInfo.class

            org/apache/velocity/tools/view/ToolboxManager.class

            org/apache/velocity/tools/view/ToolboxRuleSet$ParameterRule.class

            org/apache/velocity/tools/view/ToolboxRuleSet.class

            org/apache/velocity/tools/view/UiDependencyTool$FileRule.class

            org/apache/velocity/tools/view/UiDependencyTool$Group.class

            org/apache/velocity/tools/view/UiDependencyTool$GroupRule.class

            org/apache/velocity/tools/view/UiDependencyTool$NeedsRule.class

            org/apache/velocity/tools/view/UiDependencyTool$Type.class

            org/apache/velocity/tools/view/UiDependencyTool$TypeRule.class

            org/apache/velocity/tools/view/UiDependencyTool.class

            org/apache/velocity/tools/view/VelocityLayoutServlet.class

            org/apache/velocity/tools/view/VelocityView.class

            org/apache/velocity/tools/view/VelocityViewFilter.class

            org/apache/velocity/tools/view/VelocityViewServlet.class

            org/apache/velocity/tools/view/ViewContext.class

            org/apache/velocity/tools/view/ViewContextTool.class

            org/apache/velocity/tools/view/ViewToolContext.class

            org/apache/velocity/tools/view/ViewToolInfo.class

            org/apache/velocity/tools/view/ViewToolManager.class

            org/apache/velocity/tools/view/WebappResourceLoader.class

            org/apache/velocity/tools/view/WebappUberspector$GetAttributeExecutor.class

            org/apache/velocity/tools/view/WebappUberspector$SetAttributeExecutor.class

            org/apache/velocity/tools/view/WebappUberspector.class

            org/apache/velocity/tools/view/XMLToolboxManager.class

            org/apache/velocity/tools/view/context/ChainedContext.class

            org/apache/velocity/tools/view/context/ViewContext.class

            org/apache/velocity/tools/view/i18n/MultiViewsTool.class

            org/apache/velocity/tools/view/jsp/JspToolContext.class

            org/apache/velocity/tools/view/jsp/VelocityViewTag.class

            org/apache/velocity/tools/view/servlet/ServletLogger.class

            org/apache/velocity/tools/view/servlet/ServletToolInfo.class

            org/apache/velocity/tools/view/servlet/ServletToolboxManager.class

            org/apache/velocity/tools/view/servlet/ServletToolboxRuleSet$BooleanConfigRule.class

            org/apache/velocity/tools/view/servlet/ServletToolboxRuleSet$CreateSessionRule.class

            org/apache/velocity/tools/view/servlet/ServletToolboxRuleSet$XhtmlRule.class

            org/apache/velocity/tools/view/servlet/ServletToolboxRuleSet.class

            org/apache/velocity/tools/view/servlet/ServletUtils.class

            org/apache/velocity/tools/view/servlet/VelocityLayoutServlet.class

            org/apache/velocity/tools/view/servlet/VelocityViewServlet.class

            org/apache/velocity/tools/view/servlet/WebappLoader.class

            org/apache/velocity/tools/view/tools.xml

            org/apache/velocity/tools/view/tools/AbstractPagerTool.class

            org/apache/velocity/tools/view/tools/AbstractSearchTool.class

            org/apache/velocity/tools/view/tools/BrowserSnifferTool.class

            org/apache/velocity/tools/view/tools/ContextTool.class

            org/apache/velocity/tools/view/tools/CookieTool.class

            org/apache/velocity/tools/view/tools/ImportTool.class

            org/apache/velocity/tools/view/tools/LinkTool.class

            org/apache/velocity/tools/view/tools/ParameterParser.class

            org/apache/velocity/tools/view/tools/ViewRenderTool.class

            org/apache/velocity/tools/view/tools/ViewResourceTool.class

            org/apache/velocity/tools/view/velocity.properties

            META-INF/LICENSE

            META-INF/NOTICE

             

            Thanks

             

            Max

            • 3. Re: Error deploying solr.war into Jboss7
              jaikiran pai Master

              If jar -tf works then I'm not too sure why VFS fails with ZipException. Can you attach that velocity jar to this thread?

              • 4. Re: Error deploying solr.war into Jboss7
                M Mudu Newbie

                I have attached the velocity .jar file.

                 

                Thanks,

                 

                Max

                • 5. Re: Error deploying solr.war into Jboss7
                  M Mudu Newbie

                  SOLR 3.3 comes with velocity-tools-2.0-beta3.jar but on the SOLR wiki for JBoss 6 they reccomend swapping the beta jar with non beta one http://wiki.apache.org/solr/SolrJBoss.

                   

                  I have tried to deploy the velocity-tools-2.0-beta3.jar too but I got exactly the same error.

                   

                  Thanks,

                   

                  Max

                  • 6. Re: Error deploying solr.war into Jboss7
                    M Mudu Newbie

                    This is not an issue.  I had an error in my ant script when copying jars into the solr.war/WEB-INF/lib directory.

                     

                    Now everything works.

                     

                    Thanks for you help.