lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joachim Martin <jmar...@path-works.com>
Subject Re: Embarrasing compilation errors with solr-nightly/example
Date Wed, 28 Jun 2006 20:25:08 GMT
Sounds to me like you are using the JRE and not a JDK.

Make sure $JAVA_HOME/lib/tools.jar is in your classpath.

--Joachim

James Pine wrote:

>I am trying to walk through the Solr tutorial at:
>http://incubator.apache.org/solr/tutorial.html and
>can't seem to get:
>http://localhost:8983/solr/admin/index.jsp
>
>to compile. Here's the top of the error, I've included
>the rest at the end of the message:
>
>HTTP ERROR: 500
>Unable to compile class for JSP
>Generated servlet error:
>Jun 28, 2006 9:52:42 AM
>org.apache.jasper.compiler.Compiler generateClass
>SEVERE: Javac exception 
>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
>
>I believe my workstation is setup run/compile java
>applications because it's part of my job ;o) but
>apparently something is amiss. I'm running on a
>windows box, using cygwin. My JAVA_HOME and CLASSPATH
>environment variables are setup properly AFAIK and I'm
>running the 1.5.0_04 JDK. The rest of the stacktrace
>appears below. Thanx for your help.
>
>JAMES
>
>
>	at
>org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
>	at
>org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
>	at
>org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
>	at
>org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
>	at
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
>	at
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
>	at
>org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
>	at
>org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
>	at
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
>	at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>	at
>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>	at
>javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>	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.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)
>
>
>Generated servlet error:
>Jun 28, 2006 9:52:42 AM
>org.apache.jasper.compiler.Compiler generateClass
>
>
>Generated servlet error:
>SEVERE: Env: Compile:
>javaFileName=/C:/DOCUME~1/user/LOCALS~1/Temp/Jetty__8983__solr//org/apache/jsp/admin\index_jsp.java
>
>
>Generated servlet error:
>   
>classpath=/C:/Documents%20and%20Settings/user/Local%20Settings/Temp/Jetty__8983__solr/webapp/WEB-INF/classes/;/C:/Documents%20and%20Settings/user/Local%20Settings/Temp/Jetty__8983__solr/webapp/WEB-INF/lib/lucene-core-nightly.jar;/C:/Documents%20and%20Settings/user/Local%20Settings/Temp/Jetty__8983__solr/webapp/WEB-INF/lib/lucene-highlighter-nightly.jar;/C:/Documents%20and%20Settings/user/Local%20Settings/Temp/Jetty__8983__solr/webapp/WEB-INF/lib/lucene-snowball-nightly.jar;/C:/Documents%20and%20Settings/user/Local%20Settings/Temp/Jetty__8983__solr/webapp/WEB-INF/lib/xpp3-1.1.3.4.O.jar;C:\DOCUME~1\user\LOCALS~1\Temp\Jetty__8983__solr;C:\Documents
>and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\classes;C:\Documents
>and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-core-nightly.jar;C:\Documents
>and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-highlighter-nightly.jar;C:\Documents
>and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-snowball-nightly.jar;C:\Documents
>and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\xpp3-1.1.3.4.O.jar;C:\Program
>Files\Java\jre1.5.0_06\lib\ext\dnsns.jar;C:\Program
>Files\Java\jre1.5.0_06\lib\ext\jai_codec.jar;C:\Program
>Files\Java\jre1.5.0_06\lib\ext\jai_core.jar;C:\Program
>Files\Java\jre1.5.0_06\lib\ext\mlibwrapper_jai.jar;C:\Program
>Files\Java\jre1.5.0_06\lib\ext\sunjce_provider.jar;C:\Program
>Files\Java\jre1.5.0_06\lib\ext\sunpkcs11.jar;C:\solr-nightly\example\start.jar;C:\solr-nightly\example\lib\org.mortbay.jetty.jar;C:\solr-nightly\example\lib\javax.servlet.jar;C:\solr-nightly\example\lib\org.mortbay.jmx.jar;C:\solr-nightly\example\ext\ant.jar;C:\solr-nightly\example\ext\jasper-runtime.jar;C:\solr-nightly\example\ext\jasper-compiler.jar;C:\solr-nightly\example\ext\commons-el.jar;C:\solr-nightly\example\ext\commons-logging.jar;C:\solr-nightly\example\ext\mx4j-remote.jar;C:\solr-nightly\example\ext\mx4j-tools.jar;C:\solr-nightly\example\ext\mx4j.jar
>
>
>Generated servlet error:
>   
>cp=C:\solr-nightly\example\lib\org.mortbay.jetty.jar;C:\solr-nightly\example\lib\javax.servlet.jar;C:\solr-nightly\example\lib\org.mortbay.jmx.jar;C:\solr-nightly\example\ext\ant.jar;C:\solr-nightly\example\ext\jasper-runtime.jar;C:\solr-nightly\example\ext\jasper-compiler.jar;C:\solr-nightly\example\ext\commons-el.jar;C:\solr-nightly\example\ext\commons-logging.jar;C:\solr-nightly\example\ext\mx4j-remote.jar;C:\solr-nightly\example\ext\mx4j-tools.jar;C:\solr-nightly\example\ext\mx4j.jar
>   
>cp=C:\Documents%20and%20Settings\user\Local%20Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\classes
>   
>cp=C:\Documents%20and%20Settings\user\Local%20Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-core-nightly.jar
>   
>cp=C:\Documents%20and%20Settings\user\Local%20Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-highlighter-nightly.jar
>   
>cp=C:\Documents%20and%20Settings\user\Local%20Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-snowball-nightly.jar
>   
>cp=C:\Documents%20and%20Settings\user\Local%20Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\xpp3-1.1.3.4.O.jar
>   
>cp=C:\DOCUME~1\user\LOCALS~1\Temp\Jetty__8983__solr
>    cp=C:\Documents and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\classes
>    cp=C:\Documents and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-core-nightly.jar
>    cp=C:\Documents and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-highlighter-nightly.jar
>    cp=C:\Documents and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-snowball-nightly.jar
>    cp=C:\Documents and Settings\user\Local
>Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\xpp3-1.1.3.4.O.jar
>    cp=C:\Program
>Files\Java\jre1.5.0_06\lib\ext\dnsns.jar
>    cp=C:\Program
>Files\Java\jre1.5.0_06\lib\ext\jai_codec.jar
>    cp=C:\Program
>Files\Java\jre1.5.0_06\lib\ext\jai_core.jar
>    cp=C:\Program
>Files\Java\jre1.5.0_06\lib\ext\mlibwrapper_jai.jar
>    cp=C:\Program
>Files\Java\jre1.5.0_06\lib\ext\sunjce_provider.jar
>    cp=C:\Program
>Files\Java\jre1.5.0_06\lib\ext\sunpkcs11.jar
>    cp=C:\solr-nightly\example\start.jar
>   
>cp=C:\solr-nightly\example\lib\org.mortbay.jetty.jar
>    cp=C:\solr-nightly\example\lib\javax.servlet.jar
>    cp=C:\solr-nightly\example\lib\org.mortbay.jmx.jar
>    cp=C:\solr-nightly\example\ext\ant.jar
>    cp=C:\solr-nightly\example\ext\jasper-runtime.jar
>    cp=C:\solr-nightly\example\ext\jasper-compiler.jar
>    cp=C:\solr-nightly\example\ext\commons-el.jar
>    cp=C:\solr-nightly\example\ext\commons-logging.jar
>    cp=C:\solr-nightly\example\ext\mx4j-remote.jar
>    cp=C:\solr-nightly\example\ext\mx4j-tools.jar
>    cp=C:\solr-nightly\example\ext\mx4j.jar
>    work
>dir=C:\DOCUME~1\user\LOCALS~1\Temp\Jetty__8983__solr
>    extension dir=C:\Program
>Files\Java\jre1.5.0_06\lib\ext
>   
>srcDir=C:\DOCUME~1\user\LOCALS~1\Temp\Jetty__8983__solr
>    include=org/apache/jsp/admin/index_jsp.java
>
>
>
>
>RequestURI=/solr/admin/index.jsp
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>  
>


Mime
View raw message