Compilation failure

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Compilation failure

Tom Conlon-2
Please ignore:

mvn dependency:copy-dependencies

fixed it.

Reply | Threaded
Open this post in threaded view
|

Compilation failure

Tom Conlon-2
I'm a newbie but it does appear, after all, that the build errors stand.

Having looked at the svn sources it appears to be true.


------------------------------------------------------------------------
Hi All,
 
Can someone help with the above please?
 
Thanks,
Tom

************************************************************************
*************
[INFO] [compiler:compile]
[INFO] Compiling 61 source files to
C:\downloads\java\tika\apache-tika-0.1-incuating\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
 
C:\downloads\java\tika\apache-tika-0.1-incubating\src\main\java\org\apac
he\tika
parser\microsoft\Word6CHPBinTable.java:[60,34] cannot find symbol
symbol  : constructor CHPFormattedDiskPage(byte[],int,int)
location: class org.apache.poi.hwpf.model.CHPFormattedDiskPage
 
C:\downloads\java\tika\apache-tika-0.1-incubating\src\main\java\org\apac
he\tika
parser\microsoft\WordParser.java:[105,26] cannot find symbol
symbol  : constructor CHPBinTable(byte[],byte[],int,int,int)
location: class org.apache.poi.hwpf.model.CHPBinTable
 
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 19 minutes 57 seconds
[INFO] Finished at: Mon Nov 17 19:30:22 GMT 2008
[INFO] Final Memory: 10M/21M
[INFO]
------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: Compilation failure

Jukka Zitting
Hi,

On Tue, Nov 18, 2008 at 2:17 AM, Tom Conlon <[hidden email]> wrote:
> I'm a newbie but it does appear, after all, that the build errors stand.

How are you building Tika? You need Maven 2 and Java 5 (or higher).

Your build error seems to be caused by an incompatibility with Apache
POI. You may want to clear org/apache/poi in your local Maven
repository just to make sure that your copy of the dependency is not
corrupted.

BR,

Jukka Zitting
Reply | Threaded
Open this post in threaded view
|

RE: Compilation failure

Tom Conlon-2
Hi Jukka,

1. >> How are you building Tika? You need Maven 2 and Java 5 (or
higher).
apache-maven-2.0.9
jdk1.6.0_04 (java.exe v6.0.40.12)


2. Next I deleted everything under .m2\repository then:
mvn install, same 2 errors.


3. Deleted apache-tika-0.1-incubating directory, downloaded from another
mirror:
mvn install, same 2 errors.


4. Something isn't right:
Log of
/lucene/tika/branches/0.1-incubating/src/main/java/org/apache/tika/parse
r/microsoft/WordParser.java
 CHPBinTable cbt = new CHPBinTable(header, tableStream, chpOffset,
chpSize, fcMin);
 
Log of
/lucene/tika/branches/0.1-incubating/src/main/java/org/apache/tika/parse
r/microsoft/Word6CHPBinTable.java
   public Word6CHPBinTable(byte[] documentStream, int offset, int size,
int fcMin)


TIA,
Tom

-----Original Message-----
From: Jukka Zitting [mailto:[hidden email]]
Sent: 18 November 2008 01:28
To: [hidden email]
Subject: Re: Compilation failure

Hi,

On Tue, Nov 18, 2008 at 2:17 AM, Tom Conlon <[hidden email]> wrote:
> I'm a newbie but it does appear, after all, that the build errors
stand.

How are you building Tika? You need Maven 2 and Java 5 (or higher).

Your build error seems to be caused by an incompatibility with Apache
POI. You may want to clear org/apache/poi in your local Maven repository
just to make sure that your copy of the dependency is not corrupted.

BR,

Jukka Zitting
Reply | Threaded
Open this post in threaded view
|

RE: Compilation failure

Tom Conlon-2
In reply to this post by Jukka Zitting
Excuse the error in point 4 below - it's getting late.

Yes, for some reason mvn doesn't get hold of poi correctly,
It seems that poi it must be built independently...
--------------------------------------------------
Hi Jukka,

1. >> How are you building Tika? You need Maven 2 and Java 5 (or
higher).
apache-maven-2.0.9
jdk1.6.0_04 (java.exe v6.0.40.12)


2. Next I deleted everything under .m2\repository then:
mvn install, same 2 errors.


3. Deleted apache-tika-0.1-incubating directory, downloaded from another
mirror:
mvn install, same 2 errors.


4. Something isn't right:
Log of
/lucene/tika/branches/0.1-incubating/src/main/java/org/apache/tika/parse
r/microsoft/WordParser.java
 CHPBinTable cbt = new CHPBinTable(header, tableStream, chpOffset,
chpSize, fcMin);
 
Log of
/lucene/tika/branches/0.1-incubating/src/main/java/org/apache/tika/parse
r/microsoft/Word6CHPBinTable.java
   public Word6CHPBinTable(byte[] documentStream, int offset, int size,
int fcMin)


TIA,
Tom

-----Original Message-----
From: Jukka Zitting [mailto:[hidden email]]
Sent: 18 November 2008 01:28
To: [hidden email]
Subject: Re: Compilation failure

Hi,

On Tue, Nov 18, 2008 at 2:17 AM, Tom Conlon <[hidden email]> wrote:
> I'm a newbie but it does appear, after all, that the build errors
stand.

How are you building Tika? You need Maven 2 and Java 5 (or higher).

Your build error seems to be caused by an incompatibility with Apache
POI. You may want to clear org/apache/poi in your local Maven repository
just to make sure that your copy of the dependency is not corrupted.

BR,

Jukka Zitting
Reply | Threaded
Open this post in threaded view
|

Re: Compilation failure

Jukka Zitting
In reply to this post by Tom Conlon-2
Hi,

On Tue, Nov 18, 2008 at 3:04 AM, Tom Conlon <[hidden email]> wrote:
> 1. >> How are you building Tika? You need Maven 2 and Java 5 (or
> higher).
> apache-maven-2.0.9
> jdk1.6.0_04 (java.exe v6.0.40.12)

That should be fine.

> 2. Next I deleted everything under .m2\repository then:
> mvn install, same 2 errors.
>
> 3. Deleted apache-tika-0.1-incubating directory, downloaded from another
> mirror:
> mvn install, same 2 errors.

Weird. I just downloaded the 0.1 release and was able to build it
without any issues:

    $ wget http://.../apache-tika-0.1-incubating-src.tar.gz
    $ md5sum apache-tika-0.1-incubating-src.tar.gz
    d0a64471386e4c9dbd3b9ff15bcbcf4e *apache-tika-0.1-incubating-src.tar.gz
    $ tar zxf apache-tika-0.1-incubating-src.tar.gz
    $ cd apache-tika-0.1-incubating

    $ mvn -v
    Maven version: 2.0.9
    Java version: 1.6.0_03
    OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
    $ rm -rf ~/.m2/repository
    $ mvn install

> 4. Something isn't right:
> Log of
> /lucene/tika/branches/0.1-incubating/src/main/java/org/apache/tika/parse
> r/microsoft/WordParser.java
>  CHPBinTable cbt = new CHPBinTable(header, tableStream, chpOffset,
> chpSize, fcMin);
>
> Log of
> /lucene/tika/branches/0.1-incubating/src/main/java/org/apache/tika/parse
> r/microsoft/Word6CHPBinTable.java
>   public Word6CHPBinTable(byte[] documentStream, int offset, int size,
> int fcMin)

The call is "new CHBinTable(...)", not "new Word6CHPBinTable(...)".

BR,

Jukka Zitting
Reply | Threaded
Open this post in threaded view
|

Re: Compilation failure

Jukka Zitting
In reply to this post by Tom Conlon-2
Hi,

On Tue, Nov 18, 2008 at 3:28 AM, Tom Conlon <[hidden email]> wrote:
> Yes, for some reason mvn doesn't get hold of poi correctly,
> It seems that poi it must be built independently...

Maven should automatically download the POI 3.0-FINAL jar when you do
the build. I have the following after building Tika 0.1 with an empty
local repository:

$ md5sum ~/.m2/repository/org/apache/poi/poi/3.0-FINAL/poi-3.0-FINAL.jar
9b2651dbc187f57c48ad06f85a0a38ce [...]

Do you have some repository proxy configured?

PS. Note that the svn trunk of Tika has been much improved since the
0.1 release. We're hoping to have a 0.2 release out soon.

BR,

Jukka Zitting
Reply | Threaded
Open this post in threaded view
|

RE: Compilation failure

Tom Conlon-2
My apology, there was an earlier poi jar sitting in lib\ext that was the
problem.

All good now. Thanks for your help Jukka.

-----Original Message-----
From: Jukka Zitting [mailto:[hidden email]]
Sent: 18 November 2008 08:49
To: [hidden email]
Subject: Re: Compilation failure

Hi,

On Tue, Nov 18, 2008 at 3:28 AM, Tom Conlon <[hidden email]> wrote:
> Yes, for some reason mvn doesn't get hold of poi correctly, It seems
> that poi it must be built independently...

Maven should automatically download the POI 3.0-FINAL jar when you do
the build. I have the following after building Tika 0.1 with an empty
local repository:

$ md5sum ~/.m2/repository/org/apache/poi/poi/3.0-FINAL/poi-3.0-FINAL.jar
9b2651dbc187f57c48ad06f85a0a38ce [...]

Do you have some repository proxy configured?

PS. Note that the svn trunk of Tika has been much improved since the
0.1 release. We're hoping to have a 0.2 release out soon.

BR,

Jukka Zitting