lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Help with Debian solr/jetty install?
Date Wed, 21 Nov 2007 06:50:26 GMT
Phillip,

I won't go into details, but I'll point out that the Java compiler is called javac and if
memory serves me well, it is defined in one of Jetty's XML config files in its etc/ dir. 
The java compiler is used to compile JSPs that Solr uses for the admin UI.  So, make sure
you have javac and make sure Jetty can find it.
 
Otis

--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch

----- Original Message ----
From: Phillip Farber <pfarber@umich.edu>
To: solr-user@lucene.apache.org
Sent: Tuesday, November 20, 2007 5:55:27 PM
Subject: Help with Debian solr/jetty install?


Hi,

I've successfully run as far as the example admin page on Debian linux
 2.6.

So I installed the solr-jetty packaged for Debian testing which gives
 me 
Jetty 5.1.14-1 and Solr 1.2.0+ds1-1.  Jetty starts fine and so does the
 
Solr home page at http://localhost:8280/solr

But I get an error when I try to run http://localhost:8280/solr/admin

HTTP ERROR: 500
No Java compiler available

I have sun-java6-jre and sun-java6-jdk packages installed.  I'm new to 
servlet containers and java webapps.  What should I be looking for to 
fix this or what information could I provide the list to get me moving 
forward from here?

I've included the trace from the Jetty log, and the java properties
 dump 
from the example below.

Thanks,
Phil

---

Java properties (from the example):
----------------------------------

sun.boot.library.path = /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386
java.vm.version = 1.6.0-b105
java.vm.name = Java HotSpot(TM) Client VM
user.dir = /tmp/apache-solr-1.2.0/example
java.runtime.version = 1.6.0-b105
os.arch = i386
java.io.tmpdir = /tmp

java.library.path = 
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
java.class.version = 50.0
jetty.home = /tmp/apache-solr-1.2.0/example
sun.management.compiler = HotSpot Client Compiler
os.version = 2.6.22-2-686
java.class.path = 
/tmp/apache-solr-1.2.0/example:/tmp/apache-solr-1.2.0/example/lib/jetty-6.1.3.jar:/tmp/apache-solr-1.2.0/example/lib/jetty-util-6.1.3.jar:/tmp/apache-solr-1.2.0/example/lib/servlet-api-2.5-6.1.3.jar:/tmp/apache-solr-1.2.0/example/lib/jsp-2.1/ant-1.6.5.jar:/tmp/apache-solr-1.2.0/example/lib/jsp-2.1/core-3.1.1.jar:/tmp/apache-solr-1.2.0/example/lib/jsp-2.1/jsp-2.1.jar:/tmp/apache-solr-1.2.0/example/lib/jsp-2.1/jsp-api-2.1.jar:/usr/share/ant/lib/ant.jar
java.home = /usr/lib/jvm/java-6-sun-1.6.0.00/jre
java.version = 1.6.0
java.ext.dirs = 
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = 
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/classes




Jetty log (from the error under Debian Solr/Jetty):
----------------------------------------------------

org.apache.jasper.JasperException: No Java compiler available
    at 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460)
    at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:367)
    at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
    at
 org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
    at
 org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171)
    at org.mortbay.jetty.servlet.Default.handleGet(Default.java:302)
    at org.mortbay.jetty.servlet.Default.service(Default.java:223)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
    at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:185)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
    at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
    at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
    at org.mortbay.http.HttpServer.service(HttpServer.java:909)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
    at
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
    at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
getRootCause():
java.lang.IllegalStateException: No Java compiler available
    at 
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:225)
    at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:560)
    at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
    at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
    at
 org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
    at
 org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171)
    at org.mortbay.jetty.servlet.Default.handleGet(Default.java:302)
    at org.mortbay.jetty.servlet.Default.service(Default.java:223)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
    at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:185)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
    at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
    at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
    at org.mortbay.http.HttpServer.service(HttpServer.java:909)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
    at
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
    at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

20:50:00.509 ERROR! [SocketListener0-9] 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:593) 
 >11> /solr/admin/:
java.lang.IllegalStateException: No Java compiler available
    at 
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:225)
    at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:560)
    at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
    at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
    at
 org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286)
    at
 org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:171)
    at org.mortbay.jetty.servlet.Default.handleGet(Default.java:302)
    at org.mortbay.jetty.servlet.Default.service(Default.java:223)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
    at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:185)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
    at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
    at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
    at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
    at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
    at org.mortbay.http.HttpServer.service(HttpServer.java:909)
    at org.mortbay.http.HttpConnection.service(HttpConnection.java:820)
    at
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:986)
    at org.mortbay.http.HttpConnection.handle(HttpConnection.java:837)
    at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:245)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)





Mime
View raw message