[ckan-dev] SOLR Server

DA ROS Jonathan jdaros at sii.fr
Thu Nov 17 13:55:42 UTC 2011


hello everybody,

I'm particulary interested with solr. First i installed the plugin to 
test when i was in 1.4.3 and i got access in http://localhost:8983/solr.
Then I installed the new version of ckan 1.5 with the package installer 
in another instance of the ubuntu in vm. in the same adress i got error 
500 as followed :

*HTTP ERROR 500

Problem accessing /solr/. Reason:

     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.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"

Caused by:

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.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
     at 
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:108)
     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1062)
     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:885)
     at 
org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:226)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
     at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
     at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
     at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
     at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
     at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
     at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)*
*   ...*

... i tryed to solve the problem by adding the JAVA_HOME and path 
variable in the bash.bashrc as followed :


*JAVA_HOME=/usr/java-6-openjdk/
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH*


then after restart i still have the same problem.


Second, i'm asking how to use this module with ckan and how it makes 
ckan different ? Is that only in the way  to perform the search ?
In fact my objective is to index all the resources  files referenced in 
ckan and then be able to make seach INSIDE the files. Looks like i'm 
obliged to install solr independly from ckan

Can someone tell me if i'm far away from truth and gives me more details ?

Thanks

Jonathan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20111117/82dfc60e/attachment-0001.html>


More information about the ckan-dev mailing list