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 <erickerick...@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 <svi...@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
> > vi...@cdt.pl
> > svi...@gmail.com
> > JID: vi...@ipc.net.pl
>



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

Reply via email to