Embarrasing compilation errors with solr-nightly/example

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Embarrasing compilation errors with solr-nightly/example

James Pine
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 
Reply | Threaded
Open this post in threaded view
|

Re: Embarrasing compilation errors with solr-nightly/example

Patrick Ruhkopf
I have had the same problem. It works with tomcat5, though.

> 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

Reply | Threaded
Open this post in threaded view
|

Re: Embarrasing compilation errors with solr-nightly/example

Joachim Martin
In reply to this post by James Pine
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 
>  
>

Reply | Threaded
Open this post in threaded view
|

Re: Embarrasing compilation errors with solr-nightly/example

Chris Hostetter-3

: Sounds to me like you are using the JRE and not a JDK.
:
: Make sure $JAVA_HOME/lib/tools.jar is in your classpath.

Interesting ... it never occured to me that the demo would require a
JDK instead of a JRE so that Jetty can compile the JSPs ... but it makes
sense.

I'll try to verify this when i have a few moments and see if there's
something we can do to make it more portable and easy to use for people
who aren't familiar with JDKs ... but in the mean time can you try
Joachim's suggestion and see if that solves the problem for you (or if
there is more to it then that)



:
: --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
: >
: >
:



-Hoss

Reply | Threaded
Open this post in threaded view
|

Re: Embarrasing compilation errors with solr-nightly/example

Erik Hatcher

On Jun 28, 2006, at 8:30 PM, Chris Hostetter wrote:
> Interesting ... it never occured to me that the demo would require a
> JDK instead of a JRE so that Jetty can compile the JSPs ... but it  
> makes
> sense.

There are ways to precompile JSP's, but last time I tinkered with  
this it was container specific.  Maybe it's gotten better?  There is  
an Ant task to do this:

        <http://ant.apache.org/manual/OptionalTasks/jspc.html>

Maybe all is well with container neutral JSP precompilation these  
days?!  Wouldn't that be nice!

Another option if the admin section is going to expand dramatically,  
is to actually use a web framework such Tapestry, WebWork/Struts, or  
even just Velocity's servlet to avoid JSP compilation.

It's not just the demo, it's the admin application altogether that  
uses JSPs.  And I sound like such a fanboy, but kudos to the very  
handy admin stats page!

Personally, I'd like to see us build out the Ruby tie to Solr so any  
admining could be done through Ruby command-line tools and a RoR UI  
if need be.  :)

        Erik

Reply | Threaded
Open this post in threaded view
|

Re: Embarrasing compilation errors with solr-nightly/example

James Pine
Hey,

Moving the tools.jar to my JRE's lib directory worked.
I did some further research concerning tools.jar and
JRE/JDK/JAVA_HOME environment variables and it seems
that they all have their own JavaHome entry in the
registry under HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\

I think part of my problem is that when I type:

java -jar start.jar I'm using the java.exe from the
jre and it seems to ignore the JAVA_HOME environment
variable and use its JavaHome registry entry.

I feel like I've run into this problem on another
Windows box with Ant before. It's pretty awesome when
both cygwin and the DOS shell, echo $JAVA_HOME,
displays the path to the jdk, and then Windows decides
to ignore it. w00t

JAMES

--- Erik Hatcher <[hidden email]> wrote:

>
> On Jun 28, 2006, at 8:30 PM, Chris Hostetter wrote:
> > Interesting ... it never occured to me that the
> demo would require a
> > JDK instead of a JRE so that Jetty can compile the
> JSPs ... but it  
> > makes
> > sense.
>
> There are ways to precompile JSP's, but last time I
> tinkered with  
> this it was container specific.  Maybe it's gotten
> better?  There is  
> an Ant task to do this:
>
>
>
<http://ant.apache.org/manual/OptionalTasks/jspc.html>

>
> Maybe all is well with container neutral JSP
> precompilation these  
> days?!  Wouldn't that be nice!
>
> Another option if the admin section is going to
> expand dramatically,  
> is to actually use a web framework such Tapestry,
> WebWork/Struts, or  
> even just Velocity's servlet to avoid JSP
> compilation.
>
> It's not just the demo, it's the admin application
> altogether that  
> uses JSPs.  And I sound like such a fanboy, but
> kudos to the very  
> handy admin stats page!
>
> Personally, I'd like to see us build out the Ruby
> tie to Solr so any  
> admining could be done through Ruby command-line
> tools and a RoR UI  
> if need be.  :)
>
> Erik
>
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 
Reply | Threaded
Open this post in threaded view
|

Re: Embarrasing compilation errors with solr-nightly/example

Yonik Seeley
In reply to this post by Chris Hostetter-3
On 6/28/06, Chris Hostetter <[hidden email]> wrote:
> Interesting ... it never occured to me that the demo would require a
> JDK instead of a JRE so that Jetty can compile the JSPs ... but it makes
> sense.

It didn't require a JDK previously.
The downgrade in Jetty caused a JDK to be required because that
version doesn't use the JDT  for JSP/Java compilation.
Neither Tomcat 5.5 or Jetty6 require a JDK.

This is an issue even if you have a JDK installed on your system
because often "java" from the JRE will be in your path first.

-Yonik