You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jagadish Channagiri <cj...@gmail.com> on 2007/01/03 19:10:46 UTC

Problem with running Solr Example in Example directory

I am trying to run the example in Solr Distribution and can't instantiate
http://localhost:8983/solr/admin.

Her below is the stack trace I get as soon as I instantiate
http://localhost:8983/solr/admin.
I have not set the classpath variable.
I have set JAVA_HOME c:\Java\jdk1.6.0

I have noticed that JRE is in Program Files\Java\JRE1.6.0.
This is what the Java installer from Sun does.

I have Curl and Sh in my PATH.

Kindly let me know if I am doing anything wrong. I appreciate any
help/suggestions.

Thanks,
Jagadish

---------------------------Begin Stack
Trace--------------------------------------------------
Jan 1, 2007 8:46:47 AM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Error compiling file:
/C:/DOCUME~1/Jagadish/LOCALS~1/Temp/Jetty__8983__solr//org/apache/jsp/admin\index_jsp.java
   [javac] Compiling 1 source file

Jan 1, 2007 8:46:46 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
       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.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: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)
Jan 1, 2007 8:46:46 AM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Env: Compile:
javaFileName=/C:/DOCUME~1
/Jagadish/LOCALS~1/Temp/Jetty__8983__solr//org/apache/jsp/admin\index_jsp

java

classpath=/C:/Documents%20and%20Settings/Jagadish/Local%20Settings/Temp/Jetty__8983__solr/webapp/WEB-INF/lib/apache-
olr-1.1.0-incubating.jar
;/C:/Documents%20and%20Settings/Jagadish/Local%20Settings/Temp/Jetty__8983__solr/webapp/WEB-INF/

ib/lucene-core-nightly.jar
;/C:/Documents%20and%20Settings/Jagadish/Local%20Settings/Temp/Jetty__8983__solr/webapp/WEB-IN
/lib/lucene-highlighter-nightly.jar
;/C:/Documents%20and%20Settings/Jagadish/Local%20Settings/Temp/Jetty__8983__solr/weba

p/WEB-INF/lib/lucene-snowball-nightly.jar
;/C:/Documents%20and%20Settings/Jagadish/Local%20Settings/Temp/Jetty__8983__sol
/webapp/WEB-INF/lib/xpp3-1.1.3.4.O.jar
;C:\DOCUME~1\Jagadish\LOCALS~1\Temp\Jetty__8983__solr;C:\Documents
and Settings\Ja
adish\Local Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\apache-
solr-1.1.0-incubating.jar;C:\Documents and Setting
\Jagadish\Local Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-
core-nightly.jar;C:\Documents and Settings\Jag
dish\Local Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-
highlighter-nightly.jar;C:\Documents and Settings\J
gadish\Local Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\lucene-
snowball-nightly.jar;C:\Documents and Settings\Ja
adish\Local Settings\Temp\Jetty__8983__solr\webapp\WEB-INF\lib\xpp3-
1.1.3.4.O.jar;C:\Program Files\Java\jre1.6.0\lib\ext
dnsns.jar;C:\Program Files\Java\jre1.6.0\lib\ext\localedata.jar;C:\Program
Files\Java\jre1.6.0\lib\ext\sunjce_provider.j
r;C:\Program Files\Java\jre1.6.0\lib\ext\sunmscapi.jar;C:\Program
Files\Java\jre1.6.0\lib\ext\sunpkcs11.jar;C:\OpenSourc
\apache-solr-1.1.0-incubating\example\start.jar;C:\OpenSource\apache-
solr-1.1.0-incubating\example\lib\org.mortbay.jetty
jar;C:\OpenSource\apache-solr-1.1.0-incubating\example\lib\javax.servlet.jar
;C:\OpenSource\apache-solr-1.1.0-incubating\
xample\lib\org.mortbay.jmx.jar;C:\OpenSource\apache-
solr-1.1.0-incubating\example\ext\ant.jar ;C:\OpenSource\apache-solr-
.1.0-incubating\example\ext\jasper-runtime.jar;C:\OpenSource\apache-
solr-1.1.0-incubating\example\ext\jasper-compiler.ja
;C:\OpenSource\apache-solr-1.1.0-incubating\example\ext\commons-el.jar
;C:\OpenSource\apache-
solr-1.1.0-incubating\exampl
\ext\commons-logging.jar;C:\OpenSource\apache-
solr-1.1.0-incubating\example\ext\mx4j-remote.jar;C:\OpenSource\apache-sol
-1.1.0-incubating\example\ext\mx4j-tools.jar ;C:\OpenSource\apache-
solr-1.1.0-incubating\example\ext\mx4j.jar
   cp=C:\OpenSource\apache-
solr-1.1.0-incubating\example\lib\org.mortbay.jetty.jar
;C:\OpenSource\apache-solr-1.1.0-incu
ating\example\lib\javax.servlet.jar;C:\OpenSource\apache-
solr-1.1.0-incubating\example\lib\org.mortbay.jmx.jar;C:\OpenSo
rce\apache-solr-1.1.0-incubating\example\ext\ant.jar;C:\OpenSource\apache-
solr-1.1.0-incubating\example\ext\jasper-runti
e.jar;C:\OpenSource\apache-
solr-1.1.0-incubating\example\ext\jasper-compiler.jar ;C:\OpenSource\apache-
solr-1.1.0-incubat
ng\example\ext\commons-el.jar;C:\OpenSource\apache-
solr-1.1.0-incubating\example\ext\commons-logging.jar;C:\OpenSource\a
ache-solr-1.1.0-incubating\example\ext\mx4j-remote.jar;C:\OpenSource\apache-
solr-1.1.0-incubating\example\ext\mx4j-tools
jar;C:\OpenSource\apache-solr-1.1.0-incubating\example\ext\mx4j.jar

Re: Problem with running Solr Example in Example directory

Posted by Jagadish Channagiri <cj...@gmail.com>.
Thanks Yonik. I will go ahead and try your suggestion.

-Jagadish

On 1/3/07, Yonik Seeley <yo...@apache.org> wrote:
>
> It looks like the jre is being picked up before the JDK.  Put the bin
> directory of the JDK in your path first, or use the full path to the
> JDK:
>
> c:\Java\jdk1.6.0\bin\java.exe -jar start.jar
>
> -Yonik
>
> On 1/3/07, Jagadish Channagiri <cj...@gmail.com> wrote:
> > I am trying to run the example in Solr Distribution and can't
> instantiate
> > http://localhost:8983/solr/admin.
> >
> > Her below is the stack trace I get as soon as I instantiate
> > http://localhost:8983/solr/admin.
> > I have not set the classpath variable.
> > I have set JAVA_HOME c:\Java\jdk1.6.0
> >
> > I have noticed that JRE is in Program Files\Java\JRE1.6.0.
> > This is what the Java installer from Sun does.
> >
> > I have Curl and Sh in my PATH.
> >
> > Kindly let me know if I am doing anything wrong. I appreciate any
> > help/suggestions.
> >
> > Thanks,
> > Jagadish
> >
> > ---------------------------Begin Stack
> > Trace--------------------------------------------------
> > Jan 1, 2007 8:46:47 AM org.apache.jasper.compiler.Compiler generateClass
> > SEVERE: Error compiling file:
> >
> /C:/DOCUME~1/Jagadish/LOCALS~1/Temp/Jetty__8983__solr//org/apache/jsp/admin\index_jsp.java
> >    [javac] Compiling 1 source file
> >
> > Jan 1, 2007 8:46:46 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
>

Re: Problem with running Solr Example in Example directory

Posted by Yonik Seeley <yo...@apache.org>.
It looks like the jre is being picked up before the JDK.  Put the bin
directory of the JDK in your path first, or use the full path to the
JDK:

c:\Java\jdk1.6.0\bin\java.exe -jar start.jar

-Yonik

On 1/3/07, Jagadish Channagiri <cj...@gmail.com> wrote:
> I am trying to run the example in Solr Distribution and can't instantiate
> http://localhost:8983/solr/admin.
>
> Her below is the stack trace I get as soon as I instantiate
> http://localhost:8983/solr/admin.
> I have not set the classpath variable.
> I have set JAVA_HOME c:\Java\jdk1.6.0
>
> I have noticed that JRE is in Program Files\Java\JRE1.6.0.
> This is what the Java installer from Sun does.
>
> I have Curl and Sh in my PATH.
>
> Kindly let me know if I am doing anything wrong. I appreciate any
> help/suggestions.
>
> Thanks,
> Jagadish
>
> ---------------------------Begin Stack
> Trace--------------------------------------------------
> Jan 1, 2007 8:46:47 AM org.apache.jasper.compiler.Compiler generateClass
> SEVERE: Error compiling file:
> /C:/DOCUME~1/Jagadish/LOCALS~1/Temp/Jetty__8983__solr//org/apache/jsp/admin\index_jsp.java
>    [javac] Compiling 1 source file
>
> Jan 1, 2007 8:46:46 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