-
Sub-task
-
Resolution: Done
-
Critical
-
None
-
None
-
devex #118 July 2016, devex #119 August 2016, devex #120 September 2016
-
NEW
I have an environment where I am using a different implementation of javax.servlet 3.1.0 that has a different bundle symbolic name.
Because of this, some jboss bundles that use "Require-Bundle" fail to load with errors like the following:
!ENTRY org.jboss.tools.livereload.core 4 0 2016-09-21 18:08:45.542
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.jboss.tools.livereload.core [1176]
Unresolved requirement: Require-Bundle: javax.servlet; bundle-version="3.1.0"
at org.eclipse.osgi.container.Module.start(Module.java:444)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1620)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1599)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1571)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1514)
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)
Ideally, these dependencies should be specified instead with "Import-Package" as recommended by OSGi.