Need to also make sure the velocity writer and dependencies are <lib>’d in in solrconfig.xml
> On May 19, 2020, at 02:30, Prakhar Kumar <prakhar.ku...@hotwaxsystems.com> > wrote: > > Hello Team, > > I am using Solr 8.5.0 and here is the full log for the error which I am > getting: > > SolrConfigHandler Error checking plugin : => > org.apache.solr.common.SolrException: Error loading class > 'solr.VelocityResponseWriter' > @400000005ec3702b3710a43c at > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:570) > @400000005ec3702b3710a824 org.apache.solr.common.SolrException: Error > loading class 'solr.VelocityResponseWriter' > @400000005ec3702b3710ac0c at > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:570) > ~[?:?] > @400000005ec3702b3710f25c at > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:501) > ~[?:?] > @400000005ec3702b3710f644 at > org.apache.solr.core.SolrCore.createInstance(SolrCore.java:824) ~[?:?] > @400000005ec3702b3710f644 at > org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:880) ~[?:?] > @400000005ec3702b3710fa2c at > org.apache.solr.handler.SolrConfigHandler$Command.verifyClass(SolrConfigHandler.java:601) > ~[?:?] > @400000005ec3702b371105e4 at > org.apache.solr.handler.SolrConfigHandler$Command.updateNamedPlugin(SolrConfigHandler.java:565) > ~[?:?] > @400000005ec3702b371105e4 at > org.apache.solr.handler.SolrConfigHandler$Command.handleCommands(SolrConfigHandler.java:502) > ~[?:?] > @400000005ec3702b3711196c at > org.apache.solr.handler.SolrConfigHandler$Command.handlePOST(SolrConfigHandler.java:363) > ~[?:?] > @400000005ec3702b3711196c at > org.apache.solr.handler.SolrConfigHandler$Command.access$100(SolrConfigHandler.java:161) > ~[?:?] > @400000005ec3702b37111d54 at > org.apache.solr.handler.SolrConfigHandler.handleRequestBody(SolrConfigHandler.java:139) > ~[?:?] > @400000005ec3702b3711213c at > org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:211) > ~[?:?] > @400000005ec3702b3711290c at > org.apache.solr.core.SolrCore.execute(SolrCore.java:2596) ~[?:?] > @400000005ec3702b37112cf4 at > org.apache.solr.servlet.HttpSolrCall.execute(HttpSolrCall.java:802) ~[?:?] > @400000005ec3702b37112cf4 at > org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:579) ~[?:?] > @400000005ec3702b371130dc at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:420) > ~[?:?] > @400000005ec3702b37115404 at > org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:352) > ~[?:?] > @400000005ec3702b371157ec at > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1596) > ~[jetty-servlet-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b371157ec at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545) > ~[jetty-servlet-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711678c at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711678c at > org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590) > ~[jetty-security-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37116b74 at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37117344 at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711772c at > org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37117b14 at > org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b371182e4 at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37119284 at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37119284 at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) > ~[jetty-servlet-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711966c at > org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711a224 at > org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711a60c at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711a9f4 at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711b1c4 at > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711b1c4 at > org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711c164 at > org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711c164 at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711c54c at > org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322) > ~[jetty-rewrite-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711cd1c at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711d104 at > org.eclipse.jetty.server.Server.handle(Server.java:500) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711d4ec at > org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711dcbc at > org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711f42c at > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711f814 at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270) > ~[jetty-server-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3711f814 at > org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) > ~[jetty-io-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b371203cc at > org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) > ~[jetty-io-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b371203cc at > org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) > ~[jetty-io-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b371207b4 at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) > ~[jetty-util-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37120f84 at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) > ~[jetty-util-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b3712136c at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) > ~[jetty-util-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37121f24 at > org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) > ~[jetty-util-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37121f24 at > org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388) > ~[jetty-util-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37122adc at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) > ~[jetty-util-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37122adc at > org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) > ~[jetty-util-9.4.24.v20191120.jar:9.4.24.v20191120] > @400000005ec3702b37123694 at java.lang.Thread.run(Thread.java:745) > [?:1.8.0_66] > @400000005ec3702b37123694 Caused by: java.lang.ClassNotFoundException: > solr.VelocityResponseWriter > @400000005ec3702b37123a7c at > java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_66] > @400000005ec3702b37123a7c at > java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_66] > @400000005ec3702b3712424c at > java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814) > ~[?:1.8.0_66] > @400000005ec3702b371251ec at > java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_66] > @400000005ec3702b371255d4 at java.lang.Class.forName0(Native Method) > ~[?:1.8.0_66] > @400000005ec3702b371255d4 at java.lang.Class.forName(Class.java:348) > ~[?:1.8.0_66] > @400000005ec3702b371259bc at > org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:554) > ~[?:?] > @400000005ec3702b371259bc ... 52 more > @400000005ec3702b3712618c 2020-05-19 05:35:29.921 ERROR (qtp836220863-14) [ > x:partinterchange] o.a.s.h.SolrConfigHandler ERROR:[{ > @400000005ec3702b37126574 "update-queryresponsewriter":{ > @400000005ec3702b37126574 "startup":"lazy", > @400000005ec3702b37126574 "name":"velocity", > @400000005ec3702b3712695c "class":"solr.VelocityResponseWriter", > @400000005ec3702b3712695c "template.base.dir":"", > @400000005ec3702b3712695c "solr.resource.loader.enabled":"true", > @400000005ec3702b3712712c "params.resource.loader.enabled":"true"}, > @400000005ec3702b37127514 "errorMessages":["Error loading class > 'solr.VelocityResponseWriter'"]}] > > > P.S. *I am getting this error after I have commented out the <lib> > directives for velocity and the /browse request handler as well as the > following line:* > > <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" > startup="lazy"> > <str name="template.base.dir">${velocity.template.base.dir:}</str> > </queryResponseWriter> > >> On Tue, Apr 28, 2020 at 6:45 PM Prakhar Kumar < >> prakhar.ku...@hotwaxsystems.com> wrote: >> >> Hello Team, >> >> I am getting this weird error in Solr logs. Does anyone know how to >> prevent it from happening? >> >> ERROR:[{ >> "update-queryresponsewriter":{ >> "startup":"lazy", >> "name":"velocity", >> "class":"solr.VelocityResponseWriter", >> "template.base.dir":"", >> "solr.resource.loader.enabled":"true", >> "params.resource.loader.enabled":"true"}, >> "errorMessages":[" 'velocity' does not exist . Do an >> 'create-queryresponsewriter' , if you want to create it "]}] >> >> >> -- >> Kind Regards, >> Prakhar Kumar >> Sr. Enterprise Software Engineer >> >> *HotWax Systems* >> *Enterprise open source experts* >> cell: +91-89628-81820 >> office: 0731-409-3684 >> http://www.hotwaxsystems.com >> > > > -- > Kind Regards, > Prakhar Kumar > Sr. Enterprise Software Engineer > > *HotWax Systems* > *Enterprise open source experts* > cell: +91-89628-81820 > office: 0731-409-3684 > http://www.hotwaxsystems.com