dev@glassfish.java.net

Re: debugging ClassNotFoundException runtime exception in hk2/OSGi?

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Wed, 30 Jun 2010 09:27:01 -0400

I guess this is progress: now I fail immediately at startup....

(Side question: do we have any tool to make stack traces readable from
the log?)

-------------------


INFO: Successfully launched in 33 msec.
Jun 30, 2010 9:17:39 AM null
INFO: Running GlassFish Version: GlassFish Server Open Source Edition
3.1-SNAPSHOT (build bobby-private)
[#|2010-06-30T09:17:39.470-0400|INFO|glassfish3.1|
javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|
_ThreadID=16;_ThreadName=Thread-1;|This message was emitted before the
logging service started: Total time to parse domain.xml: 142
milliseconds|#]

[#|2010-06-30T09:17:39.494-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;|*ERROR*
[org.osgi.service.cm.ManagedService, id=5, bundle=194]: Unexpected
problem updating Configuration
PID=org.jvnet.hk2.osgiadapter.StartupContextService, factoryPID=null,
bundleLocation=file:/Users/bobby/work/ws/v3/distributions/glassfish/
target/glassfishv3/glassfish/modules/osgi-adapter.jar|#]

[#|2010-06-30T09:17:39.495-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;|
com.sun.enterprise.module.ResolveError: Failed to start Bundle Id
[132] State [INSTALLED] [org.glassfish.cluster.gms-
bootstrap(GlassFish GMS Bootstrap Module):3.1.0.SNAPSHOT]|#]

[#|2010-06-30T09:17:39.495-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:
174)|#]

[#|2010-06-30T09:17:39.496-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl
$2$1$1.loadClass(OSGiModuleImpl.java:341)|#]

[#|2010-06-30T09:17:39.496-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)|#]

[#|2010-06-30T09:17:39.497-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
com.sun.hk2.component.LazyInhabitant.type(LazyInhabitant.java:78)|#]

[#|2010-06-30T09:17:39.497-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
com.sun.enterprise.v3.server.AppServerStartup
$2.compare(AppServerStartup.java:439)|#]

[#|2010-06-30T09:17:39.497-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
com.sun.enterprise.v3.server.AppServerStartup
$2.compare(AppServerStartup.java:437)|#]

[#|2010-06-30T09:17:39.497-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
java.util.PriorityQueue.siftUpUsingComparator(PriorityQueue.java:594)|#]

[#|2010-06-30T09:17:39.497-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
java.util.PriorityQueue.siftUp(PriorityQueue.java:572)|#]

[#|2010-06-30T09:17:39.498-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
java.util.PriorityQueue.offer(PriorityQueue.java:274)|#]

[#|2010-06-30T09:17:39.499-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
java.util.PriorityQueue.add(PriorityQueue.java:251)|#]

[#|2010-06-30T09:17:39.499-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
java.util.AbstractQueue.addAll(AbstractQueue.java:161)|#]

[#|2010-06-30T09:17:39.500-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
com
.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:
224)|#]

[#|2010-06-30T09:17:39.500-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
com
.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:
128)|#]

[#|2010-06-30T09:17:39.500-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
com.sun.enterprise.module.bootstrap.Main.launch(Main.java:458)|#]

[#|2010-06-30T09:17:39.501-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
com.sun.enterprise.module.bootstrap.Main.launch(Main.java:402)|#]

[#|2010-06-30T09:17:39.501-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
org.jvnet.hk2.osgiadapter.HK2Main
$StartupContextService.updated(HK2Main.java:102)|#]

[#|2010-06-30T09:17:39.501-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
org.apache.felix.cm.impl.ConfigurationManager
$UpdateConfiguration.run(ConfigurationManager.java:1389)|#]

[#|2010-06-30T09:17:39.502-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)|#]

[#|2010-06-30T09:17:39.502-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;|Caused by:
org.osgi.framework.BundleException: Unresolved constraint in bundle
org.glassfish.cluster.gms-bootstrap [132]: Unable to resolve 132.0:
missing requirement [132.0] package;
(package=com.sun.enterprise.ee.cms.core) - [132.0] package;
(package=com.sun.enterprise.ee.cms.core)|#]

[#|2010-06-30T09:17:39.502-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
org.apache.felix.framework.Felix.resolveBundle(Felix.java:3421)|#]

[#|2010-06-30T09:17:39.502-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
org.apache.felix.framework.Felix.startBundle(Felix.java:1754)|#]

[#|2010-06-30T09:17:39.502-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)|#]

[#|2010-06-30T09:17:39.503-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:
166)|#]

[#|2010-06-30T09:17:39.503-0400|SEVERE|glassfish3.1|null|
_ThreadID=11;_ThreadName=Thread-1;| ... 17 more|#]