Stop me if you think that you've heard this one before....
Without the shoal-gms-impl jar file, GF should start up normally as
long as there are no cluster elements. Only the gms-adapter module
relies on that file, and it's only started when it's needed. But if
the gms impl jar is removed, I'm getting this exception that's
preventing GF from starting:
Caused by: org.osgi.framework.BundleException: Unresolved constraint
in bundle org.glassfish.cluster.gms-bootstrap [131]: Unable to resolve
131.0: missing requirement [131.0] package;
(package=com.sun.enterprise.ee.cms.core) - [131.0] package;
(package=com.sun.enterprise.ee.cms.core)|#]
Here is the manifest of the file (shoal-gms-api) containing the
"missing" package:
--- begin ---
Manifest-Version: 1.0
Export-Package: com.sun.enterprise.ee.cms.core;uses:="com.sun.enterpri
se.ee.cms.spi",com.sun.enterprise.ee.cms.spi;uses:="com.sun.enterpris
e.ee.cms.core"
Built-By: bobby
Tool: Bnd-0.0.357
Bundle-Name: shoal-gms-api
Created-By: Apache Maven Bundle Plugin
Bundle-Version: 1.5.8.SNAPSHOT
Build-Jdk: 1.6.0_20
Bnd-LastModified: 1280949163250
Bundle-ManifestVersion: 2
Bundle-Activator: com.sun.enterprise.osgi.ShoalActivator
Import-Package: com.sun.enterprise.ee.cms.core,com.sun.enterprise.ee.c
ms.spi,com.sun.enterprise.osgi
Bundle-SymbolicName: org.shoal.gms-api
--- end ---
From what I can see the package is there in the manifest, and it's
certainly there in the jar. Now if I drop in the shoal-gms-impl jar,
which should *not* be required for startup, everything starts. The
much longer manifest for this impl jar is below. Can someone tell me
what's going on that's really causing the missing requirement above?
Thanks,
Bobby
--- begin impl jar manifest ---
Manifest-Version: 1.0
Export-Package: com.sun.enterprise.ee.cms.impl.common;uses:="com.sun.e
nterprise.ee.cms.core,com.sun.enterprise.ee.cms.spi,com.sun.enterpris
e.ee.cms.impl.client,com.sun.enterprise.ee.cms.logging,com.sun.enterp
rise.ee.cms.impl.base",com.sun.enterprise.ee.cms.impl.client;uses:="c
om.sun.enterprise.ee.cms.core,com.sun.enterprise.ee.cms.logging",com.
sun.enterprise.ee.cms.impl.base;uses:="com.sun.enterprise.ee.cms.logg
ing,com.sun.enterprise.ee.cms.core,com.sun.enterprise.ee.cms.impl.com
mon,com.sun.enterprise.ee.cms.spi,com.sun.enterprise.mgmt,com.sun.ent
erprise.mgmt.transport",com.sun.enterprise.gms.tools,com.sun.enterpri
se.ee.cms.logging;uses:="sun.security.action",com.sun.enterprise.mgmt
;uses:="com.sun.enterprise.ee.cms.impl.base,com.sun.enterprise.ee.cms
.logging,com.sun.enterprise.ee.cms.core,com.sun.enterprise.mgmt.trans
port,com.sun.enterprise.ee.cms.impl.common,com.sun.enterprise.ee.cms.
impl.client,com.sun.enterprise.ee.cms.spi",com.sun.enterprise.mgmt.tr
ansport;uses:="com.sun.enterprise.ee.cms.impl.base,com.sun.enterprise
.ee.cms.logging,com.sun.enterprise.ee.cms.core",com.sun.enterprise.mg
mt.transport.grizzly;uses:="com.sun.grizzly,com.sun.grizzly.util,com.
sun.grizzly.connectioncache.server,com.sun.enterprise.mgmt.transport,
com.sun.grizzly.filter,com.sun.enterprise.mgmt,com.sun.enterprise.ee.
cms.impl.base,com.sun.grizzly.connectioncache.client,com.sun.grizzly.
async",com.sun.enterprise.osgi;uses:="org.osgi.framework"
Built-By: bobby
Tool: Bnd-0.0.357
Bundle-Name: shoal-gms-impl
Created-By: Apache Maven Bundle Plugin
Build-Jdk: 1.6.0_20
Bundle-Version: 1.5.8.SNAPSHOT
Bnd-LastModified: 1280949181838
Bundle-ManifestVersion: 2
Bundle-Activator: com.sun.enterprise.osgi.ShoalActivator
Import-Package: com.sun.enterprise.ee.cms.core,com.sun.enterprise.ee.c
ms.impl.base,com.sun.enterprise.ee.cms.impl.client,com.sun.enterprise
.ee.cms.impl.common,com.sun.enterprise.ee.cms.logging,com.sun.enterpr
ise.ee.cms.spi,com.sun.enterprise.gms.tools,com.sun.enterprise.mgmt,c
om.sun.enterprise.mgmt.transport,com.sun.enterprise.mgmt.transport.gr
izzly,com.sun.enterprise.osgi,com.sun.grizzly,com.sun.grizzly.async,c
om.sun.grizzly.connectioncache.client,com.sun.grizzly.connectioncache
.server,com.sun.grizzly.filter,com.sun.grizzly.util,org.osgi.framewor
k;version="1.3",sun.security.action
Bundle-SymbolicName: org.shoal.gms-impl