Please try running the examples from the command-line per the
README. Eliminate Eclipse from the equation first.
Erik
On 17 Oct 2005, at 19:12, Patricio Galeas wrote:
Hello,
first, thank you for your help ....!!
I have replaced the JAR File in the "Java Build Path" von Eclipse
with the lastest version (PDFBox-0.7.2.jar), but I still receive
the same error message :
Indexing E:\Galeas\lucene\data\pdfs\Beginning Java Server Pages.pdf
Exception in thread "main" java.lang.NoClassDefFoundError: org/
apache/log4j/Logger
at org.pdfbox.pdfparser.BaseParser.<clinit>(BaseParser.java:70)
at
org.galeas.index.handlingtypes.pdf.PDFBoxPDFHandler.parseDocument
(PDFBoxPDFHandler.java:117)
at
org.galeas.index.handlingtypes.pdf.PDFBoxPDFHandler.getDocument
(PDFBoxPDFHandler.java:32)
at
org.galeas.index.handlingtypes.framework.ExtensionFileHandler.getDocum
ent(ExtensionFileHandler.java:38)
at org.galeas.index.handlingtypes.framework.FileIndexer.index
(FileIndexer.java:43)
at org.galeas.index.handlingtypes.framework.FileIndexer.index
(FileIndexer.java:36)
at org.galeas.index.handlingtypes.framework.FileIndexer.main
(FileIndexer.java:77)
What do I wrong?
Thank You
Patricio
Ben Litchfield schrieb:
In addition, the latest version(0.7.2) of PDFBox does not require
log4j,
so you could also upgrade to that version.
Ben
On Mon, 17 Oct 2005 [EMAIL PROTECTED] wrote:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/log4j/Logger
at org.pdfbox.pdfparser.BaseParser.<clinit>(BaseParser.java:70)
PDFBox cannot find Log4J. You can add Log4J to you classpath to fix
this.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 17 October 2005 16:09
To: java-user@lucene.apache.org; [EMAIL PROTECTED]
Subject: Re: Lucene in Action : example code -> document-parsing
framework ...
Do you have the log4j.properties file in the classpath?
-----Original Message-----
From: Patricio Galeas <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Mon, 17 Oct 2005 15:50:46 +0200
Subject: Lucene in Action : example code -> document-parsing
framework
...
Hi ALL,
I try to run the an example of the "Lucene in Action" book :
Chapter 7: Parsing Common Document Formats:
lia.handlingtypes.framework.FileIndexer
I have downloaded all the source code from www.manning.com/hatcher2
and create a java project in Lucene 3.1.
I become the following error message when the PDF document is
indexed :
---------------------------------------
Indexing
E:\Galeas\downloads\LuceneInAction\LuceneInAction\src\lia
\handlingtypes\
data\addressbook-entry.xml
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Indexing
E:\Galeas\downloads\LuceneInAction\LuceneInAction\src\lia
\handlingtypes\
data\addressbook.xml
Indexing
E:\Galeas\downloads\LuceneInAction\LuceneInAction\src\lia
\handlingtypes\
data\HTML.html
Indexing
E:\Galeas\downloads\LuceneInAction\LuceneInAction\src\lia
\handlingtypes\
data\MSWord.doc
Indexing
E:\Galeas\downloads\LuceneInAction\LuceneInAction\src\lia
\handlingtypes\
data\PDF.pdf
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/log4j/Logger
at org.pdfbox.pdfparser.BaseParser.<clinit>(BaseParser.java:70)
at
lia.handlingtypes.pdf.PDFBoxPDFHandler.parseDocument
(PDFBoxPDFHandler.ja
va:118)
at
lia.handlingtypes.pdf.PDFBoxPDFHandler.getDocument
(PDFBoxPDFHandler.java
:32)
at
lia.handlingtypes.framework.ExtensionFileHandler.getDocument
(ExtensionFi
leHandler.java:39)
at lia.handlingtypes.framework.FileIndexer.index
(FileIndexer.java:43)
at lia.handlingtypes.framework.FileIndexer.index
(FileIndexer.java:36)
at lia.handlingtypes.framework.FileIndexer.main(FileIndexer.java:
77)
---------------------------------------
Have anybody some idea ??
Thank You
Patricio
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------
----------------------------
Disclaimer:
' Aan de inhoud van dit bericht kunnen alleen rechten ten
opzichte van Interpay Nederland B.V. of aan haar gelieerde
ondernemingen worden ontleend, indien zij door rechtsgeldig
ondertekende stukken worden ondersteund. De informatie in dit e-
mailbericht is van vertrouwelijke aard en alleen bedoeld voor
gebruik door de geadresseerde. Als u een bericht onbedoeld heeft
ontvangen, wordt u verzocht de verzender hiervan in kennis te
stellen en het bericht te vernietigen zonder van de inhoud kennis
te nemen, deze te vermenigvuldigen of andersoortig te gebruiken.'
An English version of this disclaimer is available on http://
www.interpay.nl/eng/general/disclaimer.asp
--------------------------------------------------------------------
----------------------------
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have replace the
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]