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 ViruS <sv...@gmail.com> on 2012/03/15 15:48:05 UTC

Re: Apache solr issue after configuration

Hello,

I have still same problem after installation.
Files are loaded:

~/appl/apache-solr-3.5.0/example $ java -Dsolr.solr.home=multicore/ -jar
start.jar 2>&1 | grep contrib
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-2.0.jar'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-NOTICE.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-NOTICE.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-NOTICE.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-1.6.4.jar'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-NOTICE.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-LICENSE-ASL.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-3.2.1.jar'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-1.7.0.jar'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-LICENSE-ASL.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-LICENSE-ASL.txt'
to classloader
INFO: Adding
'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-LICENSE-ASL.txt'
to classloader


my config multicore/ac/conf/solrconfig.xml

<config>
  <luceneMatchVersion>LUCENE_35</luceneMatchVersion>
 <lib dir="../../../contrib/velocity/lib" />
...
<queryResponseWriter name="velocity" class="solr.VelocityResponseWriter"
enable="true"/>
</config>

And I still get error:

INFO: [ac] Opening new SolrCore at multicore/ac/,
dataDir=multicore/ac/data/
2012-03-15 13:18:11 org.apache.solr.core.JmxMonitoredMap <init>
INFO: No JMX servers found, not exposing Solr information with JMX.
2012-03-15 13:18:11 org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: Error Instantiating
QueryResponseWriter, solr.VelocityResponseWriter is not a
org.apache.solr.response.QueryResponseWriter
        at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:427)
...

What's wrong?

Thanks in advanced for help!



-- 
Piotr (ViruS) Sikora
virus@cdt.pl
svirus@gmail.com
JID: virus@ipc.net.pl

Re: Apache solr issue after configuration

Posted by Richard Noble <ra...@gmail.com>.
Solr newbie here, but this looks familier.

Another thing to make sure of is that the plugin jars are not ialready
loaded from the standard java classpath.
I had a problem with this in that some jars were being loaded by the
standard java classloader,
and my some other plugins were being loaded by Solr,
so QueryResponseWriter was not an instance of
VelocityResponseWriter due to the classloader differences.

They should be loaded by Solr's classloader.

Regards

Richard

On Fri, Mar 16, 2012 at 1:24 PM, Erick Erickson <er...@gmail.com>wrote:

> At a guess, you don't have any paths to solr dist. Try copying all the
> other lib
> directives from the example (not core) dir (adjusting paths as necessary).
> The
> error message indicates you aren't getting to
> ..../dist/apache-solr-velocity-3.5.0.jar
>
> Best
> Erick
>
> On Thu, Mar 15, 2012 at 9:48 AM, ViruS <sv...@gmail.com> wrote:
> > Hello,
> >
> > I have still same problem after installation.
> > Files are loaded:
> >
> > ~/appl/apache-solr-3.5.0/example $ java -Dsolr.solr.home=multicore/ -jar
> > start.jar 2>&1 | grep contrib
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-2.0.jar'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-NOTICE.txt'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-NOTICE.txt'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-NOTICE.txt'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-1.6.4.jar'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-NOTICE.txt'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-LICENSE-ASL.txt'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-3.2.1.jar'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-1.7.0.jar'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-LICENSE-ASL.txt'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-LICENSE-ASL.txt'
> > to classloader
> > INFO: Adding
> >
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-LICENSE-ASL.txt'
> > to classloader
> >
> >
> > my config multicore/ac/conf/solrconfig.xml
> >
> > <config>
> >  <luceneMatchVersion>LUCENE_35</luceneMatchVersion>
> >  <lib dir="../../../contrib/velocity/lib" />
> > ...
> > <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter"
> > enable="true"/>
> > </config>
> >
> > And I still get error:
> >
> > INFO: [ac] Opening new SolrCore at multicore/ac/,
> > dataDir=multicore/ac/data/
> > 2012-03-15 13:18:11 org.apache.solr.core.JmxMonitoredMap <init>
> > INFO: No JMX servers found, not exposing Solr information with JMX.
> > 2012-03-15 13:18:11 org.apache.solr.common.SolrException log
> > SEVERE: org.apache.solr.common.SolrException: Error Instantiating
> > QueryResponseWriter, solr.VelocityResponseWriter is not a
> > org.apache.solr.response.QueryResponseWriter
> >        at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:427)
> > ...
> >
> > What's wrong?
> >
> > Thanks in advanced for help!
> >
> >
> >
> > --
> > Piotr (ViruS) Sikora
> > virus@cdt.pl
> > svirus@gmail.com
> > JID: virus@ipc.net.pl
>



-- 
*nix has users, Mac has fans, Windows has victims.

Re: Apache solr issue after configuration

Posted by Erick Erickson <er...@gmail.com>.
At a guess, you don't have any paths to solr dist. Try copying all the other lib
directives from the example (not core) dir (adjusting paths as necessary). The
error message indicates you aren't getting to
..../dist/apache-solr-velocity-3.5.0.jar

Best
Erick

On Thu, Mar 15, 2012 at 9:48 AM, ViruS <sv...@gmail.com> wrote:
> Hello,
>
> I have still same problem after installation.
> Files are loaded:
>
> ~/appl/apache-solr-3.5.0/example $ java -Dsolr.solr.home=multicore/ -jar
> start.jar 2>&1 | grep contrib
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-2.0.jar'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-NOTICE.txt'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-NOTICE.txt'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-NOTICE.txt'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-1.6.4.jar'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-NOTICE.txt'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-tools-LICENSE-ASL.txt'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-3.2.1.jar'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-1.7.0.jar'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-beanutils-LICENSE-ASL.txt'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/velocity-LICENSE-ASL.txt'
> to classloader
> INFO: Adding
> 'file:/home/virus/appl/apache-solr-3.5.0/contrib/velocity/lib/commons-collections-LICENSE-ASL.txt'
> to classloader
>
>
> my config multicore/ac/conf/solrconfig.xml
>
> <config>
>  <luceneMatchVersion>LUCENE_35</luceneMatchVersion>
>  <lib dir="../../../contrib/velocity/lib" />
> ...
> <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter"
> enable="true"/>
> </config>
>
> And I still get error:
>
> INFO: [ac] Opening new SolrCore at multicore/ac/,
> dataDir=multicore/ac/data/
> 2012-03-15 13:18:11 org.apache.solr.core.JmxMonitoredMap <init>
> INFO: No JMX servers found, not exposing Solr information with JMX.
> 2012-03-15 13:18:11 org.apache.solr.common.SolrException log
> SEVERE: org.apache.solr.common.SolrException: Error Instantiating
> QueryResponseWriter, solr.VelocityResponseWriter is not a
> org.apache.solr.response.QueryResponseWriter
>        at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:427)
> ...
>
> What's wrong?
>
> Thanks in advanced for help!
>
>
>
> --
> Piotr (ViruS) Sikora
> virus@cdt.pl
> svirus@gmail.com
> JID: virus@ipc.net.pl