Justine, The JSON update request handler was added in Solr 3.1. Please download this version and try again.
-- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com On 3. mai 2011, at 22.34, Justine Mathews wrote: > Hi, > > When I have add the Json request handler as below for update in solrconfig.xml > <requestHandler name="/update/json" class="solr.JsonUpdateRequestHandler"/> > > I am getting following error. Version : apache-solr-1.4.1. Could you please > help... > > Error is shown below, > > > Check your log files for more detailed information on what may be wrong. > > If you want solr to continue after configuration errors, change: > > <abortOnConfigurationError>false</abortOnConfigurationError> > > in solrconfig.xml > > ------------------------------------------------------------- > org.apache.solr.common.SolrException: Error loading class > 'solr.JsonUpdateRequestHandler' > at > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:375) > at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:413) > at > org.apache.solr.core.SolrCore.createRequestHandler(SolrCore.java:449) > at > org.apache.solr.core.RequestHandlers.initHandlersFromConfig(RequestHandlers.java:152) > at org.apache.solr.core.SolrCore.<init>(SolrCore.java:556) > at > org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137) > at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:83) > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at > org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594) > at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) > at > org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) > at > org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) > at > org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at > org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117) > at org.mortbay.jetty.Server.doStart(Server.java:210) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) > at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:929) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at org.mortbay.start.Main.invokeMain(Main.java:183) > at org.mortbay.start.Main.start(Main.java:497) > at org.mortbay.start.Main.main(Main.java:115) > Caused by: java.lang.ClassNotFoundException: solr.JsonUpdateRequestHandler > at java.net.URLClassLoader$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.net.FactoryURLClassLoader.loadClass(Unknown Source) > at java.lang.ClassLoader.loadClass(Unknown Source) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:359) > ... 30 more > RequestURI=/solr/ > > > -- > Regards, > Justine K Mathews, MCSD.NET > Mob: +44-(0) 7795268546 > http://www.justinemathews.com<http://www.justinemathews.com/> > http://uk.linkedin.com/in/justinemathews >