I just did 'apt-get install solr-jetty' (1.4.0+ds1-1ubuntu1) on a fresh
server install of Beta 1.

Visiting http://localhost:8080/solr/ yields:
-----
HTTP ERROR 500

Problem accessing /solr/. Reason:

    Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
Caused by:

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
        at 
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:108)
        ...
-----

It seems as if a java compiler, such as the one installed by openjdk-6-jdk, is 
required for proper operation.
It's however not installed by default.

Installing openjdk-6-jdk fixes the issue.


While not specific to the solr package itself, minor jetty related annoyances 
include:
a) "/etc/init.d/jetty restart" doesn't stop Jetty if it's running
b) /etc/init.d/jetty says it binds to $HOSTNAME:8080, where HOSTNAME is given 
from $(uname -n), when it's in fact binding to 127.0.0.1 - which in most cases 
!= the hostname.

-- 
Please merge solr 1.4.0+ds1-1 (universe) from Debian testing/unstable (main)
https://bugs.launchpad.net/bugs/321889
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to