[ https://issues.apache.org/jira/browse/SOLR-2588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048817#comment-13048817 ]
Ryan McKinley commented on SOLR-2588: ------------------------------------- "bug" is a strech... I think what this is getting at is that velocity is now required for solr to work at all. With some small changes, Velocity could be optional. I think somethign as easy as: {code} Index: solr/src/java/org/apache/solr/core/SolrCore.java =================================================================== --- solr/src/java/org/apache/solr/core/SolrCore.java (revision 1134331) +++ solr/src/java/org/apache/solr/core/SolrCore.java (working copy) @@ -1381,7 +1381,12 @@ m.put("ruby", new RubyResponseWriter()); m.put("raw", new RawResponseWriter()); m.put("javabin", new BinaryResponseWriter()); - m.put("velocity", new VelocityResponseWriter()); + try { + m.put("velocity", new VelocityResponseWriter()); + } + catch( Throwable t ) { + log.warn("Error initalizing VelocityResponseWriter", t ); + } m.put("csv", new CSVResponseWriter()); DEFAULT_RESPONSE_WRITERS = Collections.unmodifiableMap(m); } {code} Is all he is talking about... but I'm not sure how/if we want to deal with the error being gobbled... perhaps something smarter to see if Velocity can be created before trying? > Solr doesn't work without Velocity on classpath > ----------------------------------------------- > > Key: SOLR-2588 > URL: https://issues.apache.org/jira/browse/SOLR-2588 > Project: Solr > Issue Type: Bug > Affects Versions: 3.2 > Reporter: Gunnar Wagenknecht > Fix For: 3.3 > > > In 1.4. it was fine to run Solr without Velocity on the classpath. However, > in 3.2. SolrCore won't load because of a hard reference to the Velocity > response writer in a static initializer. > {noformat} > ... ERROR org.apache.solr.core.CoreContainer - > java.lang.NoClassDefFoundError: org/apache/velocity/context/Context > at org.apache.solr.core.SolrCore.<clinit>(SolrCore.java:1447) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:463) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) > at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) > {noformat} -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org