You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-dev@incubator.apache.org by Jakob Færch <Ja...@jyskebank.dk> on 2007/03/16 11:25:03 UTC

IvyDE Eclipse-plugin include of commons-logging.jar somehow breaks Eclipse's AntRunner

I'm developing an Eclipse plugin which runs ant build by invoking Eclipse's AntRunner class.
This plugin co-exists with the IvyDE Eclipse-plugin.

I've been getting classloading errors from commons-logging (the IvyDE invocation of commons-httpclient triggers the loading of commons-logging Log class, which compains about an invalid classloader hierarchi exhibiting two visible Log classes).

I solved the error by removing the library version of commons-logging in the IvyDE-plugin and replacing it with a dependency of the org.apache.commons_logging plugin included which is included with Eclipse 3.2.1 - and most other versions, I believe.
I have a patch file outlining the change - should I create a Jira issue to do the further discussions?

Kindly,
Jakob

SV: IvyDE Eclipse-plugin include of commons-logging.jar somehow breaks Eclipse's AntRunner

Posted by Jakob Færch <Ja...@jyskebank.dk>.
Okay, I will try to get around to installing my patched IvyDE into Eclipse 3.1. 

-----Oprindelig meddelelse-----
Fra: Xavier Hanin [mailto:xavier.hanin@gmail.com] 
Sendt: 16. marts 2007 12:40
Til: ivy-dev@incubator.apache.org
Emne: Re: IvyDE Eclipse-plugin include of commons-logging.jar somehow breaks Eclipse's AntRunner

On 3/16/07, Jakob Færch <Ja...@jyskebank.dk> wrote:
>
> I'm developing an Eclipse plugin which runs ant build by invoking 
> Eclipse's AntRunner class.
> This plugin co-exists with the IvyDE Eclipse-plugin.
>
> I've been getting classloading errors from commons-logging (the IvyDE 
> invocation of commons-httpclient triggers the loading of 
> commons-logging Log class, which compains about an invalid classloader 
> hierarchi exhibiting two visible Log classes).
>
> I solved the error by removing the library version of commons-logging 
> in the IvyDE-plugin and replacing it with a dependency of the 
> org.apache.commons_logging plugin included which is included with 
> Eclipse
> 3.2.1 - and most other versions, I believe.
> I have a patch file outlining the change - should I create a Jira 
> issue to do the further discussions?


Yes, commons-logging is often the source of problems in shared environments where modules co exist in separate classloaders. Opening a JIRA issue for this would be fine if JIRA for IvyDE was migrated, but it's still not the case (should happen next week I hope :-)) So for the moment I guess the mailing list is fine.

OTOH, to include your patch we would need to know if it works also with eclipse 3.1, so it would help us if you can test with eclipse 3.1 too.

- Xavier

Kindly,
> Jakob
>

Re: IvyDE Eclipse-plugin include of commons-logging.jar somehow breaks Eclipse's AntRunner

Posted by Xavier Hanin <xa...@gmail.com>.
On 3/16/07, Jakob Færch <Ja...@jyskebank.dk> wrote:
>
> I'm developing an Eclipse plugin which runs ant build by invoking
> Eclipse's AntRunner class.
> This plugin co-exists with the IvyDE Eclipse-plugin.
>
> I've been getting classloading errors from commons-logging (the IvyDE
> invocation of commons-httpclient triggers the loading of commons-logging Log
> class, which compains about an invalid classloader hierarchi exhibiting two
> visible Log classes).
>
> I solved the error by removing the library version of commons-logging in
> the IvyDE-plugin and replacing it with a dependency of the
> org.apache.commons_logging plugin included which is included with Eclipse
> 3.2.1 - and most other versions, I believe.
> I have a patch file outlining the change - should I create a Jira issue to
> do the further discussions?


Yes, commons-logging is often the source of problems in shared environments
where modules co exist in separate classloaders. Opening a JIRA issue for
this would be fine if JIRA for IvyDE was migrated, but it's still not the
case (should happen next week I hope :-)) So for the moment I guess the
mailing list is fine.

OTOH, to include your patch we would need to know if it works also with
eclipse 3.1, so it would help us if you can test with eclipse 3.1 too.

- Xavier

Kindly,
> Jakob
>