Tomcat – org.apache.solr.common.SolrException: Error loading class ‘solr.VelocityResponseWriter’

apache-2.2solrtomcat

I have setup an Apache Tomcat 6 server and installed Apache Solr 3.5.0 as per instructions found here http://pabloseminario.com/2011/02/22/installing-solr-on-debian-6-0/.

Now, opening the solr application in a browser yields the following error:

HTTP Status 500 - Severe errors in solr configuration. 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 solr.xml
-------------------------------------------------------------
org.apache.solr.common.SolrException: Error loading class 'solr.VelocityResponseWriter'
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389)
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:425)
at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:447)

My installation is currently open to the public for test purposes:

http://62.75.247.116:8080/solr/

I'm running this on a Debian 6 machine.

I did some Googling, but there is little to no documentation or anything regarding this, for Solr 3.5; most information is for 1.4 and doesn't apply to 3.5.

Note: I have no previous experience in neither Tomcat nor Solr.

Best Answer

I ran into this same issue on RHEL 5.3 with Tomcat 7 and solr 3.5. I just disabled the query response writer velocity inside the solrconfig file. But if you need to use velocity, which i don't, it appears that you'll need to drop some files into the lib folder.

<queryResponseWriter name="velocity" class=solr.VelocityResponseWriter" enable=false/>
  1. http://wiki.apache.org/solr/VelocityResponseWriter