Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2588

Make Velocity an optional dependency in SolrCore

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      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.

      ... 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)
      

        Attachments

        1. SOLR-2588-maven.patch
          6 kB
          Steve Rowe
        2. SOLR-2588.patch
          26 kB
          Steve Rowe
        3. SOLR-2588.patch
          12 kB
          Steve Rowe
        4. SOLR-2588.patch
          68 kB
          Erik Hatcher
        5. SOLR-2588.patch
          68 kB
          Erik Hatcher
        6. SOLR-2588.patch
          47 kB
          Steve Rowe
        7. SOLR-2588.patch
          46 kB
          Steve Rowe
        8. SOLR-2588.patch
          40 kB
          Erik Hatcher
        9. SOLR-2588.patch
          41 kB
          Steve Rowe
        10. SOLR-2588.patch
          50 kB
          Erik Hatcher
        11. SOLR-2588_Don_t_fail_if_velocity_libs_not_present_.patch
          2 kB
          David Smiley

          Issue Links

            Activity

              People

              • Assignee:
                steve_rowe Steve Rowe
                Reporter:
                gunnar Gunnar Wagenknecht
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: