Issue Details (XML | Word | Printable)

Key: GLASSFISH-18976
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Lukas Jungmann
Reporter: Sanjeeb Sahoo
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Missing packages in recently introduced jaxb modules

Created: 05/Aug/12 01:39 PM   Updated: 07/Aug/12 07:18 AM   Resolved: 06/Aug/12 01:00 PM
Component/s: web_services
Affects Version/s: 4.0_b45
Fix Version/s: 4.0_b46

Time Tracking:
Not Specified

File Attachments: 1. Text File new-packages-list.txt (3 kB) 05/Aug/12 01:39 PM - Sanjeeb Sahoo
2. Text File old-packages-list.txt (3 kB) 05/Aug/12 01:39 PM - Sanjeeb Sahoo

Participants: Lukas Jungmann, Martin Grebac and Sanjeeb Sahoo

 Description  « Hide

This is caused by recent JAXB integration in GlassFish. The new jaxb modules don't have some of the packages that old jaxb modules used to export. For you information, I confirm that I have considers jaxb-extra-osgi.jar as well. The difference between the sets of packages exported by old and new jaxb modules are given below (0.s refers to old packages and 1.s refers to new packages):
Both old-packages-list.txt and new-packages-list.txt are attached as well.

ss141213@Sahoo:/tmp/g$ diff old-packages-list.txt new-packages-list.txt
> com.sun.msv.datatype
> com.sun.msv.datatype.regexp
< com.sun.msv.grammar
< com.sun.msv.grammar.trex
< com.sun.msv.reader
< com.sun.msv.reader.util
< com.sun.msv.util
< com.sun.msv.verifier
< com.sun.msv.verifier.regexp

> com.sun.msv.datatype.xsd.datetime
> com.sun.msv.datatype.xsd.ngimpl
> com.sun.xml.util

As you can see there are some new packages, but some are missing too. e.g. com.sun.msv.grammar is missing.

Lukas Jungmann added a comment - 05/Aug/12 01:45 PM

Martin, is this expected state?


Martin Grebac added a comment - 05/Aug/12 04:54 PM

Don't know, we have to check one by one - please work with Yarda on this. Thanks.

Sanjeeb Sahoo added a comment - 06/Aug/12 01:08 AM

Some of the missing packages are actually needed by some bundles. One can find out more about how bundles depend on various packages by following instructions in [1].

Because of this issue, I am seeing the following failure when I try to start GlassFish to load bundles in ondemand mode. To start server in ondemand mode, just set glassfish.osgi.ondemand=true. It's set to false by default. I am also seeing some issues on Equinox platform, but they seem to be caused by this jaxb issue and recent jersey upgrade.

6 Aug, 2012 6:34:20 AM ObrHandler findResource
INFO: Using the first one from the list of 1 discovered bundles shown below: [com.ctc.wstx/0.0.0]
6 Aug, 2012 6:34:20 AM ObrHandler resolve
INFO: At the end of first pass, resolver outcome is
: Added resources: [
com.ctc.wstx, 0.0.0, file:/space/ss141213/WS/gf/trunk-svn/all/main/appserver/distributions/glassfish/target/stage/glassfish3/glassfish/modules/woodstox-osgi.jar]
Required Resources: []
Optional resources (deployed): []
Unsatisfied requirements: [
6 Aug, 2012 6:34:20 AM ObrHandler deploy
WARNING: Unable to satisfy the requirements: [org.apache.felix.bundlerepository.impl.ReasonImpl@2cb491, org.apache.felix.bundlerepository.impl.ReasonImpl@199ffdd, org.apache.felix.bundlerepository.impl.ReasonImpl@1868b72, org.apache.felix.bundlerepository.impl.ReasonImpl@17cdd50, org.apache.felix.bundlerepository.impl.ReasonImpl@16d383a, org.apache.felix.bundlerepository.impl.ReasonImpl@a5b721, org.apache.felix.bundlerepository.impl.ReasonImpl@f96845, org.apache.felix.bundlerepository.impl.ReasonImpl@102d72d]
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(
Caused by: org.jvnet.hk2.component.ComponentException: Failed to create a habitat
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateServiceLocator(
at com.sun.enterprise.module.bootstrap.Main.createServiceLocator(
at org.jvnet.hk2.osgiadapter.HK2Main.createServiceLocator(
at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRuntime.newGlassFish(
at com.sun.enterprise.glassfish.bootstrap.GlassFishRuntimeDecorator.newGlassFish(
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishRuntime.newGlassFish(
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(
... 6 more
Caused by: java.lang.RuntimeException: Unable to install module [ OSGiObrModuleImpl::Name: [com.ctc.wstx], State: [NEW]] due to unsatisfied dependencies. See previous log messages.
at org.jvnet.hk2.osgiadapter.OSGiObrModuleImpl.init(
at org.jvnet.hk2.osgiadapter.OSGiObrModuleImpl.parseInhabitants(
at org.jvnet.hk2.osgiadapter.AbstractOSGiModulesRegistryImpl.parseInhabitants(
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.populateServiceLocator(
... 12 more


Lukas Jungmann added a comment - 06/Aug/12 01:00 PM

Sanjeeb Sahoo added a comment - 07/Aug/12 07:18 AM

verified the fix. thanks.