[jbosstools-issues] [JBoss JIRA] (JBTIS-293) Fuse tooling Luna build fails at runtime - Framework Event error - javax.xml.bind.annotation.adapters

Nick Boldt (JIRA) issues at jboss.org
Thu Jul 31 10:22:31 EDT 2014


    [ https://issues.jboss.org/browse/JBTIS-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989514#comment-12989514 ] 

Nick Boldt commented on JBTIS-293:
----------------------------------

I don't see any offensive export-package declarations in the master branch of FuseIDE [0] sources. The worst I've seen is this [1].

[0] https://github.com/fusesource/fuseide
[1] https://github.com/fusesource/fuseide/blob/master/plugins/org.fusesource.ide.camel.model/META-INF/MANIFEST.MF#L26

{code}Require-Bundle: org.apache.camel.camel-core;bundle-version="[2.7,3)",
...
 org.fusesource.ide.commons,
 org.fusesource.ide.preferences,
 io.fabric8.camel-tooling-util,
...
 scala-library;bundle-version="2.9.1"
{code}

If we look in camel-tooling-util-1.1.0.CR5.jar/META-INF/MANIFEST.MF [2] there's a directive I've never seen before:

{code:title=[2] http://mvnrepository.com/artifact/io.fabric8/camel-tooling-util/1.1.0.CR5}
Ignore-Package: javax.xml.transform,javax.xml.transform.stream,javax.xml
 .parsers,javax.xml.validation,javax.xml.bind,org.xml.sax
{code}

So, could we add an Ignore-Package declaration for javax.xml.bind into org.fusesource.ide.camel.model and org.fusesource.ide.branding ?

> Fuse tooling Luna build fails at runtime - Framework Event error - javax.xml.bind.annotation.adapters
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBTIS-293
>                 URL: https://issues.jboss.org/browse/JBTIS-293
>             Project: JBoss Tools Integration Stack
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Fuse IDE
>    Affects Versions: 4.2.0.Alpha1
>            Reporter: Paul Leacu
>            Assignee: Paul Leacu
>
> If I run eclipse/jbdevstudio -clean (purging the OSGi cache) I don't get this error.
> SESSION 2014-07-30 09:22:59.386 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.7.0_60-ea
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments:  -product com.jboss.devstudio.core.product
> Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
> !ENTRY org.fusesource.ide.branding 4 0 2014-07-30 09:23:05.987
> !MESSAGE FrameworkEvent ERROR
> !STACK 0
> org.osgi.framework.BundleException: Could not resolve module: org.fusesource.ide.branding [975]
>   Unresolved requirement: Require-Bundle: org.fusesource.ide.camel.model
>     -> Bundle-SymbolicName: org.fusesource.ide.camel.model; bundle-version="7.3.0.v20140729-2156-H292-MASTER"; singleton:="true"
>        org.fusesource.ide.camel.model [977]
>          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.fusesource.ide.branding [osgi.identity; osgi.identity="org.fusesource.ide.branding"; type="osgi.bundle"; version:Version="7.3.0.v20140729-2156-H292-MASTER"; singleton:="true"] because it is exposed to package 'javax.xml.bind.annotation.adapters' from resources org.eclipse.osgi [osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.10.0.v20140606-1445"; 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.fusesource.ide.branding [osgi.identity; osgi.identity="org.fusesource.ide.branding"; type="osgi.bundle"; version:Version="7.3.0.v20140729-2156-H292-MASTER"; 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.v20140606-1445"; singleton:="true"]
> Chain 2:
>   org.fusesource.ide.branding [osgi.identity; osgi.identity="org.fusesource.ide.branding"; type="osgi.bundle"; version:Version="7.3.0.v20140729-2156-H292-MASTER"; singleton:="true"]
>     import: (osgi.wiring.package=org.fusesource.camel.tooling.util)
>      |
>     export: osgi.wiring.package=org.fusesource.camel.tooling.util; uses:=org.apache.camel.model
>   io.fabric8.camel-tooling-util [osgi.identity; osgi.identity="io.fabric8.camel-tooling-util"; type="osgi.bundle"; version:Version="1.0.0.redhat-379"]
>     import: (&(osgi.wiring.package=org.apache.camel.model)(&(version>=2.12.0)(!(version>=3.0.0))))
>      |
>     export: osgi.wiring.package=org.apache.camel.model; uses:=javax.xml.bind.annotation.adapters
>   org.apache.camel.camel-core [osgi.identity; osgi.identity="org.apache.camel.camel-core"; type="osgi.bundle"; version:Version="2.12.0.redhat-610379"]
>     import: (osgi.wiring.package=javax.xml.bind.annotation.adapters)
>      |
>     export: osgi.wiring.package: javax.xml.bind.annotation.adapters
>   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)



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list