users@glassfish.java.net

Re: Admin Console crashing when deploying OSGi bundles

From: <glassfish_at_javadesktop.org>
Date: Sat, 23 Oct 2010 05:47:47 PDT

You're trying to install another JAXB version?

GlassFish already comes with a more recent version.

In addition some of the javax.* packages are exported in version "0.0.0" by glassfish. So if you're using third-party OSGi bundles you may have to change the import version.

In your case I see "&(package=javax.xml.stream)(version>=1.0.0)" but that package is exported by glassfish itself (module "woodstox-osgi.jar") with version "0.0.0" and so this won't work.

Additionally you must be very careful when exporting packages in different versions, because most of the OSGi modules used/provided with glassfish only search for "at least" version. So if you deploy a higher version of "javax.xml.stream" changes are big that glassfish itself gets confused.

It would be better if the glassfish own bundles would be consistent in its versions, e.g. if they export 'javax.xml.stream;version="0.0.0"' all other glassfish bundles depending on those should import them like: 'javax.xml.stream;version="[0.0.0, 0.0.0]"' which means exactly that version and nothing else.

So sorry, that's the way it is currently and so you'll have to double-check your third-party bundles and realign their imports to glassfish.
[Message sent by forum member 'chaoslayer']

http://forums.java.net/jive/thread.jspa?messageID=486036