Ticket #8691 (closed enhancement: fixed)

Opened 7 years ago

Last modified 7 years ago

Please, make vboxjws.jar an OSGi bundle => fixed in svn

Reported by: ludo Owned by:
Priority: major Component: webservices
Version: VirtualBox 4.0.4 Keywords:
Cc: Guest type: other
Host type: other


Hi, we are using vboxjws.jar client WS java jar in an OSGi environment (i.e GlassFish application). It would be nice if this jar would be out of the box a OSgi module. To achieve that, it is very easy: you only need to modify the manifest file to expose import/export information. This is what is working for us:

Manifest-Version: 1.0 Export-Package: org.virtualbox_4_0;uses:=",javax.jws,j,javax.xml.parsers,javax.xml.transform.dom,or g.w3c.dom,org.xml.sax,javax.xml.namespace,,javax.xml .ws.handler,javax.jws.soap,javax.xml.bind.helpers,javax.xml.bind.atta chment,,javax.xml.transform,javax.xml.bind.annotation ,javax.xml.bind.util,,javax.xml.bind,javax.,";version="4.0.4"

Implementation-Title: vboxjws Implementation-Version: 4.0.4 Specification-Vendor: VirtualBox Community Bundle-Name: vboxjws Bundle-Vendor: VirtualBox Community Implementation-Vendor: VirtualBox Community Bundle-Version: 4.0.4 Build-Jdk: 1.6.0_24 Bnd-LastModified: 1299787919093 Bundle-ManifestVersion: 2 Bundle-License:


Import-Package: javax.validation.constraints;version="1.0",javax.jws,c,,,jav ax.jws.soap,javax.xml.namespace,,,javax.x,,, essing,javax.xml.parsers,,javax.xml.transform,javax.x ml.transform.dom,,org.w3c.dom,org.xml.sax,j avax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.attachment,jav ax.xml.bind.helpers,javax.xml.bind.util,org.virtualbox_4_0;version="3 .1"

Bundle-SymbolicName: org.virtualbox_4_0 Originally-Created-By: 11.0-b16 (Sun Microsystems Inc.) Extension-Name: vboxjws Archiver-Version: Plexus Archiver

The need for importing com.sun classes is due to a JAX-WS bug/limitation.. We spent a lof of time to figure this out. If you use these entries, then this jar becomes an OSgi bundle usable in all OSGi envs (Eclipse, GlassFish, etc etc)

Change History

comment:1 Changed 7 years ago by klaus

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from Please, make vboxjws.jar an OSIg bundle to Please, make vboxjws.jar an OSGi bundle => fixed in svn

Done in current trunk, decision whether this will be backported to 4.1 and earlier is pending.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use