Solr
  1. Solr
  2. SOLR-1956

luke cannot be launched by ant luke

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 3.1, 4.0-ALPHA
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      After merging Lucene/Solr, we need to compile lucene/solr manually to launch luke.

      For branch_3x:

      $ cd solr
      $ ant luke
      => Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/search/Collector
      
      $ ant compile
      $ ant luke
      => Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/xmlparser/CoreParser
      
      $ cd ../lucene/contrib/xml-query-parser
      $ ant
      $ cd ../../../solr
      $ ant luke
      => luke can be launched
      

      For trunk, it seems that luke-1.0.1 uses o.a.l.a.SimpleAnalyzer, but the class has been changed package name to o.a.l.a.core (and luke-1.0.1 doesn't support flex in the first place?):

      $ ant luke
      => Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/analysis/SimpleAnalyzer
      

      So I'd like to fix it for branch_3x for luke-1.0.1 at the beginning.

        Activity

        Hide
        Mark Miller added a comment -

        This should solve the initial problems - it will let you run the luke target from a clean install - it doesn't solve the problem with the analyzers though - I think we need a newer version of Luke - the trunk version on google code does support flex.

        Show
        Mark Miller added a comment - This should solve the initial problems - it will let you run the luke target from a clean install - it doesn't solve the problem with the analyzers though - I think we need a newer version of Luke - the trunk version on google code does support flex.
        Hide
        Robert Muir added a comment -

        it doesn't solve the problem with the analyzers though

        yes, when analyzers were merged under one module (there is really a lot in there now!), i sorta arbitrarily changed some packages to try to keep some organization.
        contrib/analyzers had everything nicely organized under packages, but lucene-core and solr had them all smashed together in one analysis package each...

        you can see all the changed packages here: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/analysis/CHANGES.txt?view=markup

        I think organization and package naming is pretty important, but if its gonna cause problems maybe there are better ideas... maybe better package names too, I'm
        not sure they are really the best...

        Show
        Robert Muir added a comment - it doesn't solve the problem with the analyzers though yes, when analyzers were merged under one module (there is really a lot in there now!), i sorta arbitrarily changed some packages to try to keep some organization. contrib/analyzers had everything nicely organized under packages, but lucene-core and solr had them all smashed together in one analysis package each... you can see all the changed packages here: http://svn.apache.org/viewvc/lucene/dev/trunk/modules/analysis/CHANGES.txt?view=markup I think organization and package naming is pretty important, but if its gonna cause problems maybe there are better ideas... maybe better package names too, I'm not sure they are really the best...
        Hide
        Koji Sekiguchi added a comment -

        I've committed Mark's fix on branch_3x, revision 962743.
        I'd like to leave this ticket open until we solve it for trunk.

        Show
        Koji Sekiguchi added a comment - I've committed Mark's fix on branch_3x, revision 962743. I'd like to leave this ticket open until we solve it for trunk.

          People

          • Assignee:
            Unassigned
            Reporter:
            Koji Sekiguchi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development