cancel
Showing results for 
Search instead for 
Did you mean: 

Caused by: java.lang.ClassNotFoundException: org.alfresco.solr.query.MimetypeGroupingQParserPlugin

mxc
Confirmed Champ
Confirmed Champ
Hi all,

I have upgaed manually from 5.0 to 201605. I did the following (after necessary backups):

1) Downloaded the distribution files from https://wiki.alfresco.com/wiki/Community_file_list_201605-GA
2) Unzipped the files and copied over alfrfesco.war, share.war and solr.war to my tomcat directory
3) Create new folders amp_share, modules/platform, modules/share in my /usr/local/alfsreso data directory
4) Copied over the new share.xml and alfresco.xml tomcat config files to /etc/tomcat7/Catalina/localhost/
5)Coped over the new share-custom.xml and smartfolder-amp-actions-config.xml files to the shared/classes/alfresco/web_extension directory for tomcat7

On start up everything works except search. I get the following error from solr:

<blockcode>
2016-08-19 14:38:46,370  ERROR [solr.servlet.SolrDispatchFilter] [http-bio-127.0.0.1-8443-exec-1] nullSmiley Surprisedrg.apache.solr.common.SolrException: SolrCore 'alfresco' is not available due to init failure: Error loading class 'org.alfresco.solr.query.MimetypeGroupingQParserPlugin'
   at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:753)
   at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:299)
   at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:221)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
   at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
   at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
   at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
   at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.solr.common.SolrException: Error loading class 'org.alfresco.solr.query.MimetypeGroupingQParserPlugin'
   at org.apache.solr.core.SolrCore.<init>(SolrCore.java:868)
   at org.apache.solr.core.SolrCore.<init>(SolrCore.java:643)
   at org.apache.solr.core.CoreContainer.create(CoreContainer.java:556)
   at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:261)
   at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:253)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   … 1 more
Caused by: org.apache.solr.common.SolrException: Error loading class 'org.alfresco.solr.query.MimetypeGroupingQParserPlugin'
   at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:490)
   at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:421)
   at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:540)
   at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:596)
   at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2237)
   at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2231)
   at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2264)
   at org.apache.solr.core.SolrCore.initQParsers(SolrCore.java:2148)
   at org.apache.solr.core.SolrCore.<init>(SolrCore.java:777)
   … 10 more
Caused by: java.lang.ClassNotFoundException: org.alfresco.solr.query.MimetypeGroupingQParserPlugin
   at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
   at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:814)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:348)
   at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:474)
   … 18 more
</blockquote>

1 ACCEPTED ANSWER

mxc
Confirmed Champ
Confirmed Champ
It seems the sorl4.war did not deploy properly and did not overwrite the existing solr4 lib directory. I fixed the problem by stopping tomcat, deleting the /var/lib/tomcat7/webapps/solr4 directory and restarting tomcat. But I got stuck again - will make this a different post Smiley Happy

View answer in original post

1 REPLY 1

mxc
Confirmed Champ
Confirmed Champ
It seems the sorl4.war did not deploy properly and did not overwrite the existing solr4 lib directory. I fixed the problem by stopping tomcat, deleting the /var/lib/tomcat7/webapps/solr4 directory and restarting tomcat. But I got stuck again - will make this a different post Smiley Happy