dev@glassfish.java.net

Need more OSGi bundle / pom.xml help...

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Wed, 24 Sep 2008 09:15:40 -0700

I am past the next 2 or 3 errors and am now stumped by this one:

SEVERE: Caused by: org.osgi.framework.BundleException: Unresolved
constraint in bundle 52: package;
(&(package=branding)(version>=10.0.0.SNAPSHOT))


Bundle 52 is the one I'm creating:
"console-theme-plugin-10.0-SNAPSHOT.jar". The MANIFEST.MF for that
bundle exports "branding" and imports "branding;version="10.0.0.SNAPSHOT".

Notice the import version is 10.0.0 vs. the jar name of 10.0. I don't
know why. The version in the pom.xml (inherited from the parent) is
10.0. However, the Manifest also says the Bundle-Version is 10.0.0. Is
this significant? Can anyone explain it? I can't figure out how to
change the Bundle-Version in the Manifest (version=... didn't work, and
<Bundle-Version> in the instructions didn't work).

Attached is the full MANIFEST.MF and the pom.xml. Please help! :)

Thanks!

Ken




Manifest-Version: 1.0
Export-Package: woodstock4_3.suntheme.javascript._html,woodstock4_3.su
 ntheme.javascript_uncompressed.widget,woodstock4_3.suntheme.propertie
 s,woodstock4_3.suntheme.images.addremove,woodstock4_3.suntheme.javasc
 ript.widget._base,woodstock4_3.suntheme.images.bubble,woodstock4_3.su
 ntheme.javascript_uncompressed.theme.nls,woodstock4_3.suntheme.images
 .login,woodstock4_3.suntheme.javascript_uncompressed.widget._base,woo
 dstock4_3.suntheme.templates,woodstock4_3.suntheme.images.alarms,wood
 stock4_3.suntheme.css,woodstock4_3.suntheme.images.scheduler,woodstoc
 k4_3.suntheme.css_uncompressed,woodstock4_3.suntheme.images.commontas
 kssection,woodstock4_3.suntheme.javascript._base,woodstock4_3.sunthem
 e.images.pagetitle,woodstock4_3.suntheme.javascript_uncompressed._doj
 o,woodstock4_3.suntheme.images.accordion,woodstock4_3.suntheme.images
 .calendar,woodstock4_3.suntheme.images.masthead,woodstock4_3.suntheme
 .images.file-chooser,woodstock4_3.suntheme.images.inlineAlert,woodsto
 ck4_3.suntheme.images.href,woodstock4_3.suntheme.images.button,woodst
 ock4_3.suntheme.javascript_uncompressed.widget._xhr,branding,org.glas
 sfish.admingui.customtheme;uses:="org.glassfish.api.admingui,org.jvne
 t.hk2.annotations",woodstock4_3.suntheme.images.table2,woodstock4_3.s
 untheme;uses:="com.sun.webui.theme",woodstock4_3.suntheme.images.help
 ,woodstock4_3.suntheme.javascript._dojo._firebug,woodstock4_3.sunthem
 e.images.wizard,woodstock4_3.suntheme.images.progressBar,woodstock4_3
 .suntheme.javascript_uncompressed,woodstock4_3.suntheme.images.table,
 woodstock4_3.suntheme.images.tree,woodstock4_3.suntheme.javascript.wi
 dget,woodstock4_3.suntheme.javascript.widget._jsfx,woodstock4_3.sunth
 eme.javascript_uncompressed._dojo._firebug,woodstock4_3.suntheme.imag
 es.rating,woodstock4_3.suntheme.javascript.widget._xhr,woodstock4_3.s
 untheme.images.version,woodstock4_3.suntheme.images.leftpane,woodstoc
 k4_3.suntheme.javascript,woodstock4_3.suntheme.images.field,woodstock
 4_3.suntheme.javascript.theme,woodstock4_3.suntheme.images.titledbox,
 woodstock4_3.suntheme.javascript_uncompressed.widget._jsfx,woodstock4
 _3.suntheme.javascript.theme.nls,woodstock4_3.suntheme.javascript_unc
 ompressed._html,woodstock4_3.suntheme.images.alerts,woodstock4_3.sunt
 heme.javascript_uncompressed.theme,woodstock4_3.suntheme.messages,woo
 dstock4_3.suntheme.images.topology,woodstock4_3.suntheme.javascript._
 dojo,woodstock4_3.suntheme.images.other,woodstock4_3.suntheme.images.
 modalWindow,woodstock4_3.suntheme.images.tabs,woodstock4_3.suntheme.j
 avascript_uncompressed._base,woodstock4_3.suntheme.images.dnd
X-SJWUIC-Theme-Templates: woodstock4_3.suntheme.properties.templates
Built-By: paulsen
Tool: Bnd-0.0.255
X-SJWUIC-Theme-Timestamp: 200807161313
X-SJWUIC-Theme-Prefix: /theme
X-SJWUIC-SWAED-Version: 4.0
Bundle-License: https://glassfish.dev.java.net/nonav/public/CDDL+GPL.h
 tml
Bundle-SymbolicName: org.glassfish.admingui.console-theme-plugin
X-SJWUIC-Theme-Stylesheets: woodstock4_3.suntheme.properties.styleshee
 ts
X-SJWUIC-Theme-Images: woodstock4_3.suntheme.properties.images
X-SJWUIC-Theme-Name: suntheme
X-SJWUIC-Theme-Messages: woodstock4_3.suntheme.messages.messages
X-SJWUIC-Theme-ClassMapper: woodstock4_3.suntheme.properties.styles
Bundle-Name: Admin Console Custom Plugin
Created-By: Apache Maven Bundle Plugin
X-SJWUIC-Theme-JavaScript: woodstock4_3.suntheme.properties.javascript
Bundle-Vendor: Sun Microsystems, Inc.
X-SJWUIC-Theme-Version: 4.3
Build-Jdk: 1.6.0_06
Bundle-Version: 10.0.0.SNAPSHOT
Bnd-LastModified: 1222272495151
Bundle-ManifestVersion: 2
Bundle-Description: Custom Theme Plugin for Glassfish V3 Admin Console
Import-Package: branding;version="10.0.0.SNAPSHOT",com.sun.webui.theme
 ;resolution:=optional,org.glassfish.admingui.customtheme;version="10.
 0.0.SNAPSHOT",org.glassfish.api.admingui;version="10.0",org.jvnet.hk2
 .annotations,woodstock4_3.suntheme,woodstock4_3.suntheme.css,woodstoc
 k4_3.suntheme.css_uncompressed,woodstock4_3.suntheme.images.accordion
 ,woodstock4_3.suntheme.images.addremove,woodstock4_3.suntheme.images.
 alarms,woodstock4_3.suntheme.images.alerts,woodstock4_3.suntheme.imag
 es.bubble,woodstock4_3.suntheme.images.button,woodstock4_3.suntheme.i
 mages.calendar,woodstock4_3.suntheme.images.commontaskssection,woodst
 ock4_3.suntheme.images.dnd,woodstock4_3.suntheme.images.field,woodsto
 ck4_3.suntheme.images.file-chooser,woodstock4_3.suntheme.images.help,
 woodstock4_3.suntheme.images.href,woodstock4_3.suntheme.images.inline
 Alert,woodstock4_3.suntheme.images.leftpane,woodstock4_3.suntheme.ima
 ges.login,woodstock4_3.suntheme.images.masthead,woodstock4_3.suntheme
 .images.modalWindow,woodstock4_3.suntheme.images.other,woodstock4_3.s
 untheme.images.pagetitle,woodstock4_3.suntheme.images.progressBar,woo
 dstock4_3.suntheme.images.rating,woodstock4_3.suntheme.images.schedul
 er,woodstock4_3.suntheme.images.table,woodstock4_3.suntheme.images.ta
 ble2,woodstock4_3.suntheme.images.tabs,woodstock4_3.suntheme.images.t
 itledbox,woodstock4_3.suntheme.images.topology,woodstock4_3.suntheme.
 images.tree,woodstock4_3.suntheme.images.version,woodstock4_3.sunthem
 e.images.wizard,woodstock4_3.suntheme.javascript,woodstock4_3.sunthem
 e.javascript._base,woodstock4_3.suntheme.javascript._dojo,woodstock4_
 3.suntheme.javascript._dojo._firebug,woodstock4_3.suntheme.javascript
 ._html,woodstock4_3.suntheme.javascript.theme,woodstock4_3.suntheme.j
 avascript.theme.nls,woodstock4_3.suntheme.javascript.widget,woodstock
 4_3.suntheme.javascript.widget._base,woodstock4_3.suntheme.javascript
 .widget._jsfx,woodstock4_3.suntheme.javascript.widget._xhr,woodstock4
 _3.suntheme.javascript_uncompressed,woodstock4_3.suntheme.javascript_
 uncompressed._base,woodstock4_3.suntheme.javascript_uncompressed._doj
 o,woodstock4_3.suntheme.javascript_uncompressed._dojo._firebug,woodst
 ock4_3.suntheme.javascript_uncompressed._html,woodstock4_3.suntheme.j
 avascript_uncompressed.theme,woodstock4_3.suntheme.javascript_uncompr
 essed.theme.nls,woodstock4_3.suntheme.javascript_uncompressed.widget,
 woodstock4_3.suntheme.javascript_uncompressed.widget._base,woodstock4
 _3.suntheme.javascript_uncompressed.widget._jsfx,woodstock4_3.sunthem
 e.javascript_uncompressed.widget._xhr,woodstock4_3.suntheme.messages,
 woodstock4_3.suntheme.properties,woodstock4_3.suntheme.templates
Embed-Dependency: *;artifactId=webui-jsf-suntheme;inline=true
Bundle-DocURL: http://www.sun.com