org.osgi.framework.BundleException: Could not resolve module: org.pitest.pitclipse.core

1,059 views
Skip to first unread message

Geff Chang

unread,
Jul 21, 2014, 1:12:20 AM7/21/14
to pitu...@googlegroups.com
How do I fix this error?

!SESSION 2014-07-21 12:56:41.504 -----------------------------------------------
eclipse.buildId=4.4.0.I20140528-2000
java.version=1.6.0_37
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.pitest.pitclipse.core 4 0 2014-07-21 12:57:03.344
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.pitest.pitclipse.core [885]
  Bundle was not resolved because of a uses contraint violation.
  org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.pitest.pitclipse.core [osgi.identity; osgi.identity="org.pitest.pitclipse.core"; type="osgi.bundle"; version:Version="0.33.3.201406271742"; singleton:="true"] because it is exposed to package 'javax.xml.bind.annotation' from resources org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.0.v20140528-2014"; singleton:="true"] and javax.xml.bind [osgi.identity; osgi.identity="javax.xml.bind"; type="osgi.bundle"; version:Version="2.1.9.v201005080401"] via two dependency chains.

Chain 1:
  org.pitest.pitclipse.core [osgi.identity; osgi.identity="org.pitest.pitclipse.core"; type="osgi.bundle"; version:Version="0.33.3.201406271742"; singleton:="true"]
    require: (osgi.wiring.bundle=org.eclipse.core.runtime)
     |
    provide: osgi.wiring.bundle: org.eclipse.core.runtime
  org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.0.v20140528-2014"; singleton:="true"]

Chain 2:
  org.pitest.pitclipse.core [osgi.identity; osgi.identity="org.pitest.pitclipse.core"; type="osgi.bundle"; version:Version="0.33.3.201406271742"; singleton:="true"]
    require: (&(osgi.wiring.bundle=org.pitest.pitclipse-pitrunner)(bundle-version>=0.33.3))
     |
    provide: osgi.wiring.bundle; osgi.wiring.bundle="org.pitest.pitclipse-pitrunner"; bundle-version:Version="0.33.3.201406271742"
  org.pitest.pitclipse-pitrunner [osgi.identity; osgi.identity="org.pitest.pitclipse-pitrunner"; type="osgi.bundle"; version:Version="0.33.3.201406271742"]
    import: (osgi.wiring.package=javax.xml.bind.annotation)
     |
    export: osgi.wiring.package: javax.xml.bind.annotation
  javax.xml.bind [osgi.identity; osgi.identity="javax.xml.bind"; type="osgi.bundle"; version:Version="2.1.9.v201005080401"]
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.pitest.pitclipse.ui 4 0 2014-07-21 12:57:03.375
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.pitest.pitclipse.ui [886]
  Unresolved requirement: Require-Bundle: org.pitest.pitclipse.core; bundle-version="0.33.3"
    -> Bundle-SymbolicName: org.pitest.pitclipse.core; bundle-version="0.33.3.201406271742"; singleton:="true"
       org.pitest.pitclipse.core [885]
         No resolution report for the bundle.  Bundle was not resolved because of a uses contraint violation.
  org.osgi.service.resolver.ResolutionException: Uses constraint violation. Unable to resolve resource org.pitest.pitclipse.ui [osgi.identity; osgi.identity="org.pitest.pitclipse.ui"; type="osgi.bundle"; version:Version="0.33.3.201406271742"; singleton:="true"] because it is exposed to package 'javax.xml.bind.annotation' from resources org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.0.v20140528-2014"; singleton:="true"] and javax.xml.bind [osgi.identity; osgi.identity="javax.xml.bind"; type="osgi.bundle"; version:Version="2.1.9.v201005080401"] via two dependency chains.

Chain 1:
  org.pitest.pitclipse.ui [osgi.identity; osgi.identity="org.pitest.pitclipse.ui"; type="osgi.bundle"; version:Version="0.33.3.201406271742"; singleton:="true"]
    require: (osgi.wiring.bundle=org.eclipse.core.runtime)
     |
    provide: osgi.wiring.bundle: org.eclipse.core.runtime
  org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.0.v20140528-2014"; singleton:="true"]

Chain 2:
  org.pitest.pitclipse.ui [osgi.identity; osgi.identity="org.pitest.pitclipse.ui"; type="osgi.bundle"; version:Version="0.33.3.201406271742"; singleton:="true"]
    require: (&(osgi.wiring.bundle=org.pitest.pitclipse-pitrunner)(bundle-version>=0.33.3))
     |
    provide: osgi.wiring.bundle; osgi.wiring.bundle="org.pitest.pitclipse-pitrunner"; bundle-version:Version="0.33.3.201406271742"
  org.pitest.pitclipse-pitrunner [osgi.identity; osgi.identity="org.pitest.pitclipse-pitrunner"; type="osgi.bundle"; version:Version="0.33.3.201406271742"]
    import: (osgi.wiring.package=javax.xml.bind.annotation)
     |
    export: osgi.wiring.package: javax.xml.bind.annotation
  javax.xml.bind [osgi.identity; osgi.identity="javax.xml.bind"; type="osgi.bundle"; version:Version="2.1.9.v201005080401"]
    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

Phil Glover

unread,
Jul 21, 2014, 3:26:21 AM7/21/14
to pitu...@googlegroups.com
That doesn't look healthy!   I have created a git hib issue to track.  https://github.com/philglover/pitclipse/issues/40

I'm not sure why this is breaking for you - it is some dependency issue on JAXB.  Can you confirm your OS, Eclipse version * JDK version?

Pitclipse no longer needs JAXB, so I will remove the dependency anyway.

Geff Chang

unread,
Jul 21, 2014, 4:43:04 AM7/21/14
to pitu...@googlegroups.com
Windows 7 64-bit.
JDK 1.6 update 37

Luna RC3 Release (4.4.0RC3)
Build id: 20140604-2256
Originally came from Kepler.
Then, I changed update site to Luna. So, Eclipse updated to Luna.
Maybe this could be the cause of the problem.
All other plug-ins are working though, including EclEmma.

Phil Glover

unread,
Aug 10, 2014, 3:54:39 PM8/10/14
to pitu...@googlegroups.com
Geff - can you try again with the latest version of the plugin?  There should now be no dependency on javax.xml.bind so I'm hoping it all just works.



On Monday, July 21, 2014 6:12:20 AM UTC+1, Geff Chang wrote:
Reply all
Reply to author
Forward
0 new messages