Uploaded image for project: 'Forrest'
  1. Forrest
  2. FOR-431

"Could not find component for role" when using Lucene search

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: Core operations
    • Labels:
      None
    • Environment:
      Tested on Debian Sarge with Linux 2.6.8 and JDK 1.4.2_01

      Description

      When using Lucene-based searching, the following error occurs whenever "/lucene-search.html" is requested:

      Internal Server Error
      Message: null
      Description: No details available.
      Sender: org.apache.cocoon.servlet.CocoonServlet
      Source: Cocoon Servlet
      Request URI
      lucene-search.html
      cause
      Could not find component for role: [org.apache.cocoon.components.search.LuceneCocoonSearcher] (Key='org.apache.cocoon.components.search.LuceneCocoonSearcher')
      request-uri
      /lucene-search.html

      This is due to a misconfiguration in Forrest's Cocoon xconf file (main/webapp/WEB-INF/xconf/forrest-core.xconf).

      The problem only affects Lucene *searching*; indexing works fine.

      This issue also blocks FOR-246.

        Activity

        Hide
        f.g.haas Florian G. Haas added a comment -
        Patch to forrest-core.xconf to enable Avalon components required by Lucene. This is copied from the example xconf in the "lucene" block of a current Cocoon checkout.
        Show
        f.g.haas Florian G. Haas added a comment - Patch to forrest-core.xconf to enable Avalon components required by Lucene. This is copied from the example xconf in the "lucene" block of a current Cocoon checkout.
        Hide
        crossley David Crossley added a comment -
        Thanks, i applied your patch, and also fixed a minor typo there and in the cocoon source.
        Show
        crossley David Crossley added a comment - Thanks, i applied your patch, and also fixed a minor typo there and in the cocoon source.

          People

          • Assignee:
            Unassigned
            Reporter:
            f.g.haas Florian G. Haas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development