: I removed distro pacakged Tomcat from the eqaation,
        ...
: replacing it with an upstream instance
        ...
: Repeating the process, at attempt to 'start' the /solr webapp, there's
: no change.  I still get
        ...
:       java.lang.IllegalArgumentException: Invalid or unreadable WAR
:       file : /srv/solr_home/solr.war

Are you sure you didn't accidently corrupt the war file in some way?

what is the md5 or sha1sum of the war file you have?
does "jar tf solr.war" give you any errors?

        ......

I just used the following steps (basically the same as yours just 
different paths) and got solr running in tomcat 7.0.29 with no 
problems.... 

hossman@frisbee:/var/tmp$ ls -al
total 110188
drwxrwxrwt  2 root    root         4096 Jul 24 10:37 .
drwxr-xr-x 13 root    root         4096 Jul 18 09:34 ..
-rw-rw-r--  1 hossman hossman 105132366 Jul 24 10:29 apache-solr-4.0.0-ALPHA.tgz
-rw-rw-r--  1 hossman hossman   7679160 Jul  3 04:25 apache-tomcat-7.0.29.tar.gz
-rw-rw-r--  1 hossman hossman       183 Jul 24 10:29 solr-context-file.xml
hossman@frisbee:/var/tmp$ tar -xzf apache-solr-4.0.0-ALPHA.tgz 
hossman@frisbee:/var/tmp$ tar -xzf apache-tomcat-7.0.29.tar.gz 
hossman@frisbee:/var/tmp$ cp -r apache-solr-4.0.0-ALPHA/example/solr solr-home
hossman@frisbee:/var/tmp$ cp 
apache-solr-4.0.0-ALPHA/dist/apache-solr-4.0.0-ALPHA.war solr.war
hossman@frisbee:/var/tmp$ sha1sum solr.war 
51c9e4bf6f022ea3873ee315eb08a96687e71964  solr.war
hossman@frisbee:/var/tmp$ md5sum solr.war 
a154197657bb5cb9cee13fb5cfca931b  solr.war
hossman@frisbee:/var/tmp$ cat solr-context-file.xml 
<Context docBase="/var/tmp/solr.war" debug="0" crossContext="true" >
   <Environment name="solr/home" type="java.lang.String" 
value="/var/tmp/solr-home" override="true" />
</Context>
hossman@frisbee:/var/tmp$ mkdir -p apache-tomcat-7.0.29/conf/Catalina/localhost/
hossman@frisbee:/var/tmp$ cp solr-context-file.xml 
apache-tomcat-7.0.29/conf/Catalina/localhost/solr.xml
hossman@frisbee:/var/tmp$ ./apache-tomcat-7.0.29/bin/catalina.sh start
Using CATALINA_BASE:   /var/tmp/apache-tomcat-7.0.29
Using CATALINA_HOME:   /var/tmp/apache-tomcat-7.0.29
Using CATALINA_TMPDIR: /var/tmp/apache-tomcat-7.0.29/temp
Using JRE_HOME:        /usr/lib/jvm/java-6-openjdk-amd64/
Using CLASSPATH:       
/var/tmp/apache-tomcat-7.0.29/bin/bootstrap.jar:/var/tmp/apache-tomcat-7.0.29/bin/tomcat-juli.jar
hossman@frisbee:/var/tmp$ 


...and now solr is up and running on http://localhost:8080/solr/ and there 
are no errors in the logs.




-Hoss

Reply via email to