lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Sharp <forjsh...@gmail.com>
Subject Re: "Invalid or unreadable WAR file : .../solr.war" when starting solr 3.6.1 app on Tomcat 7?
Date Sun, 22 Jul 2012 21:08:21 GMT
/srv/www sounds like a doc root for a web server...



On Jul 22, 2012, at 1:24 PM, k9157@operamail.com wrote:

> 
> I've installed
> 
>    rpm -qa | grep -i ^tomcat-7
>        tomcat-7.0.27-7.1.noarch
> 
> with
> 
>    update-alternatives --query java | grep Value
>        Value: /usr/lib64/jvm/jre-1.7.0-openjdk/bin/java
> 
> on
>    GNU/Linux
>    x86_64
>    kernel 3.1.10
> 
> Tomcat is started & listening @ 127.0.0.1
> 
>    netstat -pan --tcp | grep 8080
>        tcp        0      0 127.0.0.1:8080          0.0.0.0:*   
>                   LISTEN      29513/java
> 
> @
> 
>    http://localhost:8080/
> 
> I see
> 
>    Apache Tomcat/7.0.27
>    If you're seeing this, you've successfully installed Tomcat.
>    Congratulations!
>    ...
> 
> Deploying SOLR 3.6.1
> 
>    cd /usr/local/apache-solr-3.6.1
>    /bin/cp -Rf ./example/solr/*               /srv/www/solr/home
>    /bin/cp -f  ./dist/apache-solr-3.6.1.war  
>    /srv/www/solr/home/solr.war
>    /bin/cp -f  ./example/solr/conf/schema.xml
>    /srv/www/solr/home/conf/
> 
> then, define solr/home
> 
>    cat /etc/tomcat/Catalina/localhost/solr.xml
>        <Context docBase="/srv/www/solr/home/solr.war" debug="0"
>        privileged="true" allowLinking="true"
>        crossContext="true" >
>          <Environment name="solr/home" type="java.lang.String"
>          value="/srv/www/solr/home" override="true" />
>        </Context>
> 
> and reference it,
> 
>    grep dataDir /srv/www/solr/home/conf/solrconfig.xml
>          <dataDir>${solr.data.dir:/srv/www/solr/home/data}</dataDir>
> 
> restart tomcat, then @:
> 
>    http://localhost:8080/manager/html
> 
> lists the deployed "/solr" app as NOT running,
> 
>    Path           Version         Display Name                   
>    Running Sessions
>    /              None specified  Welcome to Tomcat              
>    true    0
>    /docs          None specified  Tomcat Documentation           
>    true    0
>    /examples      None specified  Servlet and JSP Examples       
>    true    0
>    /host-manager  None specified  Tomcat Host Manager Application
>    true    1
>    /manager       None specified  Tomcat Manager Application     
>    true    1
>    /sample        None specified  Hello, World Application       
>    true    0
>    /solr          None specified                                 
>    false   0
> 
> clicking "start" @ the "/solr" app path link returns,
> 
> @ browser,
> 
>    HTTP Status 404 - /solr
>    type Status report
>    message /solr
>    description The requested resource (/solr) is not available.
>    Apache Tomcat/7.0.27
> 
> & @ logs:
> 
> 
>    ==> /var/log/tomcat/manager.2012-07-22.log <==
>    Jul 22, 2012 12:03:14 PM
>    org.apache.catalina.core.ApplicationContext log
>    INFO: HTMLManager: start: Starting web application '/solr'
> 
>    ==> /var/log/tomcat/catalina.2012-07-22.log <==
>    Jul 22, 2012 12:03:14 PM
>    org.apache.catalina.core.StandardContext resourcesStart
>    SEVERE: Error starting static Resources
>    java.lang.IllegalArgumentException: Invalid or unreadable WAR
>    file : /srv/www/solr/home/solr.war
>            at
>            org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:136)
>            at
>            org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4894)
>            at
>            org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5074)
>            at
>            org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>            at
>            org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
>            at
>            org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:747)
>            at
>            org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:222)
>            at
>            javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>            at
>            javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>            at
>            org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>            at
>            org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>            at
>            org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
>            at
>            org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>            at
>            org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
>            at
>            org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>            at
>            org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>            at
>            org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>            at
>            org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>            at
>            org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>            at
>            org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
>            at
>            org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
>            at
>            org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1770)
>            at
>            java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>            at
>            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>            at java.lang.Thread.run(Thread.java:722)
> 
> 
>    ==> /var/log/tomcat/catalina.out <==
>    Jul 22, 2012 12:03:14 PM
>    org.apache.catalina.core.StandardContext resourcesStart
>    SEVERE: Error starting static Resources
>    java.lang.IllegalArgumentException: Invalid or unreadable WAR
>    file : /srv/www/solr/home/solr.war
>            at
>            org.apache.naming.resources.WARDirContext.setDocBase(WARDirContext.java:136)
>            at
>            org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4894)
>            at
>            org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5074)
>            at
>            org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>            at
>            org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1247)
>            at
>            org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:747)
>            at
>            org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:222)
>            at
>            javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>            at
>            javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>            at
>            org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>            at
>            org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
>            at
>            org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>            at
>            org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
>            at
>            org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>            at
>            org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
>            at
>            org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>            at
>            org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>            at
>            org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>            at
>            org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>            at
>            org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>            at
>            org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
>            at
>            org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
>            at
>            org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1770)
>            at
>            java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>            at
>            java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>            at java.lang.Thread.run(Thread.java:722)
> 
> 
>    ==> /var/log/tomcat/catalina.2012-07-22.log <==
>    Jul 22, 2012 12:03:14 PM
>    org.apache.catalina.core.StandardContext startInternal
>    SEVERE: Error in resourceStart()
> 
>    ==> /var/log/tomcat/catalina.out <==
>    Jul 22, 2012 12:03:14 PM
>    org.apache.catalina.core.StandardContext startInternal
>    SEVERE: Error in resourceStart()
> 
>    ==> /var/log/tomcat/catalina.2012-07-22.log <==
>    Jul 22, 2012 12:03:14 PM
>    org.apache.catalina.core.StandardContext startInternal
>    SEVERE: Error getConfigured
> 
>    ==> /var/log/tomcat/catalina.out <==
>    Jul 22, 2012 12:03:14 PM
>    org.apache.catalina.core.StandardContext startInternal
>    SEVERE: Error getConfigured
> 
>    ==> /var/log/tomcat/catalina.2012-07-22.log <==
>    Jul 22, 2012 12:03:14 PM
>    org.apache.catalina.core.StandardContext startInternal
>    SEVERE: Context [/solr] startup failed due to previous errors
> 
>    ==> /var/log/tomcat/catalina.out <==
>    Jul 22, 2012 12:03:14 PM
>    org.apache.catalina.core.StandardContext startInternal
>    SEVERE: Context [/solr] startup failed due to previous errors
> 
>    ==> /var/log/tomcat/catalina.2012-07-22.log <==
>    Jul 22, 2012 12:03:14 PM org.apache.catalina.util.LifecycleBase
>    stop
>    INFO: The stop() method was called on component
>    [WebappLoader[/solr]] after stop() had already been called. The
>    second call will be ignored.
> 
>    ==> /var/log/tomcat/catalina.out <==
>    Jul 22, 2012 12:03:14 PM org.apache.catalina.util.LifecycleBase
>    stop
>    INFO: The stop() method was called on component
>    [WebappLoader[/solr]] after stop() had already been called. The
>    second call will be ignored.
> 
>    ==> /var/log/tomcat/manager.2012-07-22.log <==
>    Jul 22, 2012 12:03:15 PM
>    org.apache.catalina.core.ApplicationContext log
>    INFO: HTMLManager: list: Listing contexts for virtual host
>    'localhost'
> 
>    ==> /var/log/tomcat/localhost_access_log.2012-07-22.txt <==
>    127.0.0.1 - pgnet-tomcat [22/Jul/2012:12:03:15 -0700] "POST
>    /manager/html/start?path=/solr&org.apache.catalina.filters.CSRF_NONCE=F05BCE9F429E2E1984969CA29A4684D4
>    HTTP/1.1" 200 18774
> 
> Re: the "Invalid or unreadable WAR file : /srv/www/solr/home/solr.war",
> 
> checking, the deployed war appears identical to the source,
> 
>    diff -ur /usr/local/apache-solr-3.6.1/dist/apache-solr-3.6.1.war
>    /srv/www/solr/home/solr.war
>        (empty)
> 
>    file /usr/local/apache-solr-3.6.1/dist/apache-solr-3.6.1.war
>    /srv/www/solr/home/solr.war
>        /usr/local/apache-solr-3.6.1/dist/apache-solr-3.6.1.war:
>        Zip archive data, at least v1.0 to extract Zip archive
>        data, at least v1.0 to extract
>        /srv/www/solr/home/solr.war:                        Zip
>        archive data, at least v1.0 to extract Zip archive data,
>        at least v1.0 to extract
> 
> I've attempted to follow,
> 
>    https://wiki.apache.org/solr/SolrTomcat#Installing_Solr_instances_under_Tomcat
> 
> Thought I did it correctly, but am re-re-reading to see if I've missed
> something.
> 
> Have I deployed incorrectly? Bad config?

Mime
View raw message