You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by Ed...@VerizonWireless.com on 2009/06/15 14:18:37 UTC
make PyLucene failing with QueryParser/Token class not found exception, while the class exists in lucene-core-2.4.1.jar
make failing with QueryParser/Token class not found exception, while the class exists in lucene-core-2.4.1.jar
.....
/usr/bin/python -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/snowball/lucene-snowball-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/highlighter/lucene-highlighter-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/analyzers/lucene-analyzers-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/regex/lucene-regex-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/queries/lucene-queries-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/instantiated/lucene-instantiated-2.4.1.jar --jar build/jar/extensions.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays java.text.SimpleDateFormat --package java.io java.io.StringReader java.io.InputStreamReader java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token --exclude org.apache.lucene.queryParser.TokenMgrError --exclude org.apache.lucene.queryParser.QueryParserTokenManager --exclude org.apache.lucene.queryParser.ParseException --python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/lucene/document/Document;' --rename org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer --version 2.4.1 --module python/collections.py --files 2 --build
Traceback (most recent call last):
File "/usr/lib/python2.5/runpy.py", line 95, in run_module
filename, loader, alter_sys)
File "/usr/lib/python2.5/runpy.py", line 52, in _run_module_code
mod_name, mod_fname, mod_loader)
File "/usr/lib/python2.5/runpy.py", line 32, in _run_code
exec code in run_globals
File "/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-cygwin-1.5.25-i686.egg/jcc/__init__.py", line 27, in <module>
import jcc.__main__
File "/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-cygwin-1.5.25-i686.egg/jcc/__main__.py", line 82, in <module>
cpp.jcc(sys.argv)
File "/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-cygwin-1.5.25-i686.egg/jcc/cpp.py", line 370, in jcc
for className in excludes])
jcc.cpp.JavaError: java.lang.NoClassDefFoundError: org/apache/lucene/queryParser/Token
make: *** [compile] Error 255
$ jar -tvf ./lucene-java-2.4.1/build/lucene-core-2.4.1.jar | grep Token | grep query
16022 Fri Jun 12 17:53:04 EDT 2009 org/apache/lucene/queryParser/QueryParserTokenManager.class
1191 Fri Jun 12 17:53:04 EDT 2009 org/apache/lucene/queryParser/Token.class
2598 Fri Jun 12 17:53:04 EDT 2009 org/apache/lucene/queryParser/TokenMgrError.class
any idea what to do ?
thanks Edwin
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure. If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof. Thank you.
Re: make PyLucene failing with QueryParser/Token class not found
exception, while the class exists in lucene-core-2.4.1.jar
Posted by Andi Vajda <va...@apache.org>.
On Mon, 15 Jun 2009, Edwin.Madari@VerizonWireless.com wrote:
> make failing with QueryParser/Token class not found exception, while the
> class exists in lucene-core-2.4.1.jar
>
> .....
> /usr/bin/python -m jcc --shared --jar lucene-java-2.4.1/build/lucene-core-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/snowball/lucene-snowball-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/highlighter/lucene-highlighter-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/analyzers/lucene-analyzers-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/regex/lucene-regex-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/queries/lucene-queries-2.4.1.jar --jar lucene-java-2.4.1/build/contrib/instantiated/lucene-instantiated-2.4.1.jar --jar build/jar/extensions.jar --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays java.text.SimpleDateFormat --package java.io java.io.StringReader java.io.InputStreamReader java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token --exclude org.apache.lucene.queryParser.TokenMgrError --exclude org.apache.lucene.queryParser.QueryParserTokenManager --exclude org.apache.lucene.queryParser.ParseException
--python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;' --mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence org.apache.lucene.search.Hits 'length:()I' 'doc:(I)Lorg/apache/lucene/document/Document;' --rename org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer --version 2.4.1 --module python/collections.py --files 2 --build
> Traceback (most recent call last):
> File "/usr/lib/python2.5/runpy.py", line 95, in run_module
> filename, loader, alter_sys)
> File "/usr/lib/python2.5/runpy.py", line 52, in _run_module_code
> mod_name, mod_fname, mod_loader)
> File "/usr/lib/python2.5/runpy.py", line 32, in _run_code
> exec code in run_globals
> File "/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-cygwin-1.5.25-i686.egg/jcc/__init__.py", line 27, in <module>
> import jcc.__main__
> File "/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-cygwin-1.5.25-i686.egg/jcc/__main__.py", line 82, in <module>
> cpp.jcc(sys.argv)
> File "/usr/lib/python2.5/site-packages/JCC-2.3-py2.5-cygwin-1.5.25-i686.egg/jcc/cpp.py", line 370, in jcc
> for className in excludes])
> jcc.cpp.JavaError: java.lang.NoClassDefFoundError: org/apache/lucene/queryParser/Token
> make: *** [compile] Error 255
>
> $ jar -tvf ./lucene-java-2.4.1/build/lucene-core-2.4.1.jar | grep Token | grep query
> 16022 Fri Jun 12 17:53:04 EDT 2009 org/apache/lucene/queryParser/QueryParserTokenManager.class
> 1191 Fri Jun 12 17:53:04 EDT 2009 org/apache/lucene/queryParser/Token.class
> 2598 Fri Jun 12 17:53:04 EDT 2009 org/apache/lucene/queryParser/TokenMgrError.class
>
> any idea what to do ?
Take out the corresponding --exclude line and see what the next error is ?
Andi..
>
> thanks Edwin
>
>
>
> The information contained in this message and any attachment may be
> proprietary, confidential, and privileged or subject to the work
> product doctrine and thus protected from disclosure. If the reader
> of this message is not the intended recipient, or an employee or
> agent responsible for delivering this message to the intended
> recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited.
> If you have received this communication in error, please notify me
> immediately by replying to this message and deleting it and all
> copies and backups thereof. Thank you.
>
>