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

Make Velocity an optional dependency in SolrCore

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 3.5, 4.0-ALPHA
    • None
    • 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
          Steven Rowe
        2. SOLR-2588.patch
          26 kB
          Steven Rowe
        3. SOLR-2588.patch
          12 kB
          Steven Rowe
        4. SOLR-2588.patch
          68 kB
          Erik Hatcher
        5. SOLR-2588.patch
          68 kB
          Erik Hatcher
        6. SOLR-2588.patch
          47 kB
          Steven Rowe
        7. SOLR-2588.patch
          46 kB
          Steven Rowe
        8. SOLR-2588.patch
          40 kB
          Erik Hatcher
        9. SOLR-2588.patch
          41 kB
          Steven 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sarowe Steven Rowe
            gunnar Gunnar Wagenknecht
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment