You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Kainth, Sachin" <Sa...@atkinsglobal.com> on 2007/02/12 17:25:07 UTC

Solr issue

Hello all,

When running the example in the solr release has anyone come up with the
following issue when going to http://localhost:8983/solr/admin/:

HTTP ERROR: 500
Unable to compile class for JSP

Generated servlet error:
12-Feb-2007 16:24:17 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.getCompil
er(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)
...


Sachin


This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered in England No. 1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.

Consider the environment. Please don't print this e-mail unless you really need to. 

RE: Solr issue

Posted by Chris Hostetter <ho...@fucit.org>.
: SOLR seem to have a problem if you don't specify the full path to
: java.exewhen starting Jetty.

To clarify: this isn't an issue with Solr, or with Jetty - it's an issue
with Windows java installations ignoring JAVA_HOME in favor of a registry
key; so no matter which java.exe comes first in your path, you get tools
from the jRE instead of hte JDK (hence: no compiler)

(And yes: please send Solr questions to the solr-user list in the future)

http://www.nabble.com/Embarrasing-compilation-errors-with-solr-nightly-example-tf1863717.html#a5095264
http://www.google.com/search?hl=en&safe=off&c2coff=1&q=+HKEY_LOCAL_MACHINE%5CSOFTWARE%5CJavaSoft%5C+java+jre+jdk+%22com.sun.tools.javac.Main+is+not+on+the+classpath%22&btnG=Search



-Hoss

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


RE: Solr issue

Posted by "Kainth, Sachin" <Sa...@atkinsglobal.com>.
Cool thanks Marius that did the trick.  It's a shame I spent most of the
day fiddleing with Java_home and classpath environment variables and
copying tools.jar to various locations and all sorts of other things I
read on forums and it turns out to be this! 

-----Original Message-----
From: Marius Hanganu [mailto:hanganum@gmail.com] 
Sent: 12 February 2007 17:28
To: java-user@lucene.apache.org
Subject: Re: Solr issue

SOLR seem to have a problem if you don't specify the full path to
java.exewhen starting Jetty.

Here's my script for starting SOLR:

d:\programs\jdk15\bin\java -jar start.jar

Regards,
Marius Hanganu

On 2/12/07, Kainth, Sachin <Sa...@atkinsglobal.com> wrote:
>
> Hello all,
>
> When running the example in the solr release has anyone come up with 
> the following issue when going to http://localhost:8983/solr/admin/:
>
> HTTP ERROR: 500
> Unable to compile class for JSP
>
> Generated servlet error:
> 12-Feb-2007 16:24:17 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.getComp
> il
> er(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)
> ...
>
>
> Sachin
>
>
> This email and any attached files are confidential and copyright 
> protected. If you are not the addressee, any dissemination of this 
> communication is strictly prohibited. Unless otherwise expressly 
> agreed in writing, nothing stated in this communication shall be
legally binding.
>
> The ultimate parent company of the Atkins Group is WS Atkins plc.  
> Registered in England No. 1885586.  Registered Office Woodcote Grove, 
> Ashley Road, Epsom, Surrey KT18 5BW.
>
> Consider the environment. Please don't print this e-mail unless you 
> really need to.
>


This message has been scanned for viruses by MailControl - (see
http://bluepages.wsatkins.co.uk/?4318150)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Solr issue

Posted by Marius Hanganu <ha...@gmail.com>.
SOLR seem to have a problem if you don't specify the full path to
java.exewhen starting Jetty.

Here's my script for starting SOLR:

d:\programs\jdk15\bin\java -jar start.jar

Regards,
Marius Hanganu

On 2/12/07, Kainth, Sachin <Sa...@atkinsglobal.com> wrote:
>
> Hello all,
>
> When running the example in the solr release has anyone come up with the
> following issue when going to http://localhost:8983/solr/admin/:
>
> HTTP ERROR: 500
> Unable to compile class for JSP
>
> Generated servlet error:
> 12-Feb-2007 16:24:17 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.getCompil
> er(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)
> ...
>
>
> Sachin
>
>
> This email and any attached files are confidential and copyright
> protected. If you are not the addressee, any dissemination of this
> communication is strictly prohibited. Unless otherwise expressly agreed in
> writing, nothing stated in this communication shall be legally binding.
>
> The ultimate parent company of the Atkins Group is WS Atkins
> plc.  Registered in England No. 1885586.  Registered Office Woodcote Grove,
> Ashley Road, Epsom, Surrey KT18 5BW.
>
> Consider the environment. Please don't print this e-mail unless you really
> need to.
>

Re: Solr issue

Posted by Grant Ingersoll <gs...@apache.org>.
You should ask on the Solr list.

On Feb 12, 2007, at 11:25 AM, Kainth, Sachin wrote:

> Hello all,
>
> When running the example in the solr release has anyone come up  
> with the
> following issue when going to http://localhost:8983/solr/admin/:
>
> HTTP ERROR: 500
> Unable to compile class for JSP
>
> Generated servlet error:
> 12-Feb-2007 16:24:17 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.getComp 
> il
> er(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)
> ...
>
>
> Sachin
>
>
> This email and any attached files are confidential and copyright  
> protected. If you are not the addressee, any dissemination of this  
> communication is strictly prohibited. Unless otherwise expressly  
> agreed in writing, nothing stated in this communication shall be  
> legally binding.
>
> The ultimate parent company of the Atkins Group is WS Atkins plc.   
> Registered in England No. 1885586.  Registered Office Woodcote  
> Grove, Ashley Road, Epsom, Surrey KT18 5BW.
>
> Consider the environment. Please don't print this e-mail unless you  
> really need to.

--------------------------
Grant Ingersoll
Center for Natural Language Processing
http://www.cnlp.org

Read the Lucene Java FAQ at http://wiki.apache.org/jakarta-lucene/ 
LuceneFAQ



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org