[ckan-dev] SOLR Server

Friedrich Lindenberg friedrich.lindenberg at okfn.org
Thu Nov 17 13:58:59 UTC 2011


Hi Jonathan,

I've seen this before on Ubuntu 10.04, you want to install
openjdk-6-jdk which includes the javac needed to run Solr. Its a
missing dependency.

As for how it makes CKAN different: you will get better full text
search, search facets and for 1.5 its default.

Best,

- Friedrich

2011/11/17 DA ROS Jonathan <jdaros at sii.fr>:
> 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
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
>
>



-- 
Open Knowledge Foundation
Promoting Open Knowledge in a Digital Age
http://www.okfn.org/ - http://blog.okfn.org/

http://twitter.com/pudo
http://pudo.org




More information about the ckan-dev mailing list