Error in Eclipse with ordering of libs

View: New views
4 Messages — Rating Filter:   Alert me  

Error in Eclipse with ordering of libs

by Ken Krugler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just sync'd to trunk, ran mvn eclipse:clean eclipse:eclipse, and  
refreshed my three Tika projects.

tika-app and tika-core were fine, but tika-parsers had 6 errors.  
Mostly things like:

XMLConstants.NULL_NS_URI cannot be resolved

It looks like the geronimo-stax-api_1.0_spec-1.0.jar contains some of  
these classes, and is slightly out of date.

So I had to edit the Eclipse Java Build Path/Order and Export list to  
move the JRE above the geronimo jar.

No idea if this is something that's controllable from Maven.

-- Ken

Re: Error in Eclipse with ordering of libs

by Jukka Zitting :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Sun, Sep 27, 2009 at 10:17 PM, Ken Krugler
<kkrugler_lists@...> wrote:

> I just sync'd to trunk, ran mvn eclipse:clean eclipse:eclipse, and refreshed
> my three Tika projects.
>
> tika-app and tika-core were fine, but tika-parsers had 6 errors. Mostly
> things like:
>
> XMLConstants.NULL_NS_URI cannot be resolved
>
> It looks like the geronimo-stax-api_1.0_spec-1.0.jar contains some of these
> classes, and is slightly out of date.
>
> So I had to edit the Eclipse Java Build Path/Order and Export list to move
> the JRE above the geronimo jar.
>
> No idea if this is something that's controllable from Maven.

Hmm, no idea about that either. I'm using the m2ecplise plugin [1] and
I've never seen such issues.

You may want to try upgrading the geronimo-stax_api dependency version
to 1.0.1. though I'm not sure if that helps.

[1] http://m2eclipse.sonatype.org/

BR,

Jukka Zitting

Re: Error in Eclipse with ordering of libs

by Ken Krugler-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Sep 30, 2009, at 3:01am, Jukka Zitting wrote:

> Hi,
>
> On Sun, Sep 27, 2009 at 10:17 PM, Ken Krugler
> <kkrugler_lists@...> wrote:
>> I just sync'd to trunk, ran mvn eclipse:clean eclipse:eclipse, and  
>> refreshed
>> my three Tika projects.
>>
>> tika-app and tika-core were fine, but tika-parsers had 6 errors.  
>> Mostly
>> things like:
>>
>> XMLConstants.NULL_NS_URI cannot be resolved
>>
>> It looks like the geronimo-stax-api_1.0_spec-1.0.jar contains some  
>> of these
>> classes, and is slightly out of date.
>>
>> So I had to edit the Eclipse Java Build Path/Order and Export list  
>> to move
>> the JRE above the geronimo jar.
>>
>> No idea if this is something that's controllable from Maven.
>
> Hmm, no idea about that either. I'm using the m2ecplise plugin [1] and
> I've never seen such issues.
>
> You may want to try upgrading the geronimo-stax_api dependency version
> to 1.0.1. though I'm not sure if that helps.
>
> [1] http://m2eclipse.sonatype.org/
>
> BR,
>
> Jukka Zitting

--------------------------------------------
<http://ken-blog.krugler.org>
+1 530-265-2225





Re: Error in Eclipse with ordering of libs

by Ken Krugler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jukka,

> On Sun, Sep 27, 2009 at 10:17 PM, Ken Krugler
> <kkrugler_lists@...> wrote:
>> I just sync'd to trunk, ran mvn eclipse:clean eclipse:eclipse, and  
>> refreshed
>> my three Tika projects.
>>
>> tika-app and tika-core were fine, but tika-parsers had 6 errors.  
>> Mostly
>> things like:
>>
>> XMLConstants.NULL_NS_URI cannot be resolved
>>
>> It looks like the geronimo-stax-api_1.0_spec-1.0.jar contains some  
>> of these
>> classes, and is slightly out of date.
>>
>> So I had to edit the Eclipse Java Build Path/Order and Export list  
>> to move
>> the JRE above the geronimo jar.
>>
>> No idea if this is something that's controllable from Maven.
>
> Hmm, no idea about that either. I'm using the m2ecplise plugin [1] and
> I've never seen such issues.

Since it's a library ordering issue, and there's no explicit  
specification for ordering in the pom.xml, I don't think it's an issue  
of the default Maven Eclipse plugin.

Though perhaps m2eclipse always puts the JRE first in the resulting  
list - what's the relative position of the JRE vs. Geronimo in your  
project's properties?

> You may want to try upgrading the geronimo-stax_api dependency version
> to 1.0.1. though I'm not sure if that helps.

It does - thanks for pointing out the update. Though since it was  
released in 2007-12-23, it makes me wonder what other dependencies are  
way out of date.

I filed https://issues.apache.org/jira/browse/TIKA-299 just to track  
this.

-- Ken