Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » classpath cycle with pde build
classpath cycle with pde build [message #100646] Tue, 30 October 2007 13:41 Go to next message
Paul Gardiner is currently offline Paul GardinerFriend
Messages: 94
Registered: July 2009
Member
When I use pde build to do a headless product build, it fails because of a
classpath cycle, if when using the slf4j bundles. There are two bundles
from slf4j that are in use: slf4j-api-1.4.3.jar and slf4j-log4j12-1.4.3.jar.
The api bundle exports org.slf4j, org.slf4j.helpers and org.slf4j.spi. It
exports org.slf4j.impl. The slf4j-log4j bundle does exactly the opposite.
Therefore there is a bi-directional dependency between the bundles, but not
between the packages, and they are using Import/Export-Package headers, so
this should work fine. However, I get this message:

.. . . genericTargets.xml:85: A cycle was detected when generating the
classpath com.syntellect.vxmlstats.gateway_1.0.0,
com.syntellect.vxmlstats.db_1.0.0, slf4j.api_1.4.3, slf4j.log4j12_1.4.3,
slf4j.api_1.4.3.

Thanks,
Paul
Re: classpath cycle with pde build [message #100764 is a reply to message #100646] Thu, 01 November 2007 01:29 Go to previous messageGo to next message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=208011

"Paul Gardiner" <pgardiner@syntellect.com> wrote in message
news:fg7cb9$u47$1@build.eclipse.org...
> When I use pde build to do a headless product build, it fails because of a
> classpath cycle, if when using the slf4j bundles. There are two bundles
> from slf4j that are in use: slf4j-api-1.4.3.jar and
> slf4j-log4j12-1.4.3.jar.
> The api bundle exports org.slf4j, org.slf4j.helpers and org.slf4j.spi. It
> exports org.slf4j.impl. The slf4j-log4j bundle does exactly the opposite.
> Therefore there is a bi-directional dependency between the bundles, but
> not
> between the packages, and they are using Import/Export-Package headers, so
> this should work fine. However, I get this message:
>
> . . . genericTargets.xml:85: A cycle was detected when generating the
> classpath com.syntellect.vxmlstats.gateway_1.0.0,
> com.syntellect.vxmlstats.db_1.0.0, slf4j.api_1.4.3, slf4j.log4j12_1.4.3,
> slf4j.api_1.4.3.
>
> Thanks,
> Paul
>
Re: classpath cycle with pde build [message #104825 is a reply to message #100764] Wed, 06 February 2008 21:12 Go to previous message
Kyle S. Bober is currently offline Kyle S. BoberFriend
Messages: 4
Registered: July 2009
Junior Member
So I am running into this same issue. Has a work around been resolved??? Is this just an Equinox issue? Any help here would be much appreciated. I read the above Bug issue but it seems as if there has been no resolution to this issue.

I can successfully run my RCP Application via the Eclipse Application Run Dialog with all the required plug-ins including SLF4J-API and SLF4J-log4j but when I attempt to export the product with the Product export wizard It fails with the following::

Problems during export
A cycle was detected when generating the classpath org.dcm4che2.core.bundle_2.0.12, slf4j.api_1.4.3, slf4j.log4j12_1.4.3, slf4j.api_1.4.3.

I am assuming for the same reasons stated above. Someone out there has to have a resolution for this since I know of a bunch of project that use SLF4J logging with there Equinox projects...

Please help!!!!
-Kyle
Previous Topic:Problem running the Equinox P2 Getting Started guide
Next Topic:BundleActivator registers a service implemented as singleton
Goto Forum:
  


Current Time: Sun Dec 21 03:20:39 GMT 2014

Powered by FUDForum. Page generated in 0.01512 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software