Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
Hi, Apologies if this is really basic. I'm trying to learn how to create a custom request handler, so I wrote the minimal class (attached), compiled and jar'd it, and placed it in example/lib. I added this to solrconfig.xml: requestHandler name=/flaxtest class=FlaxTestHandler / When I

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread simon
Th attachment isn't showing up (in gmail, at least). Can you inline the relevant bits of code ? On Wed, Aug 10, 2011 at 11:05 AM, Tom Mortimer t...@flax.co.uk wrote: Hi, Apologies if this is really basic. I'm trying to learn how to create a custom request handler, so I wrote the minimal class

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
Sure - import org.apache.solr.request.SolrQueryRequest; import org.apache.solr.response.SolrQueryResponse; import org.apache.solr.handler.RequestHandlerBase; public class FlaxTestHandler extends RequestHandlerBase { public FlaxTestHandler() { } public void

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread simon
It's working for me. Compiled, inserted in solr/lib, added the config line to solrconfig. when I send a /flaxtest request i get response lst name=responseHeader int name=status0/int int name=QTime16/int /lst str name=FlaxTestHello!/str /response I was doing this within a core defined in

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
Interesting.. is this in trunk (4.0)? Maybe I've broken mine somehow! What classpath did you use for compiling? And did you copy anything other than the new jar into lib/ ? thanks, Tom On 10 August 2011 18:07, simon mtnes...@gmail.com wrote: It's working for me. Compiled, inserted in

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread simon
This is in trunk (up to date). Compiler is 1.6.0_26 classpath was dist/apache-solr-solrj-4.0-SNAPSHOT.jar:dist/apache-solr-core-4.0-SNAPSHOT.jar built from trunk just prior by 'ant dist' I'd try again with a clean trunk . -Simon On Wed, Aug 10, 2011 at 1:20 PM, Tom Mortimer t...@flax.co.uk

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Tom Mortimer
Thanks Simon. I'll try again tomorrow. Tom On 10 August 2011 18:46, simon mtnes...@gmail.com wrote: This is in trunk (up to date). Compiler is 1.6.0_26 classpath was dist/apache-solr-solrj-4.0-SNAPSHOT.jar:dist/apache-solr-core-4.0-SNAPSHOT.jar built from trunk just prior by 'ant dist'

Re: Error loading a custom request handler in Solr 4.0

2011-08-10 Thread Chris Hostetter
: custom request handler, so I wrote the minimal class (attached), compiled : and jar'd it, and placed it in example/lib. I added this to solrconfig.xml: that's the crux of hte issue. example/lib is where the jetty libraries live -- not solr plugins. you should either put your custom jar's in