dev@glassfish.java.net

V3: Problem with Startup-Lifecycle

From: Prashanth Abbagani <Prashanth.Abbagani_at_Sun.COM>
Date: Tue, 29 Jul 2008 14:28:53 -0700

I have a class which implements 'Startup'. I get the following exception
when I start v3. Not able to figure out whats seems to causing this. Any
pointers please...

INFO: Started bundle org.glassfish.web.web-cli [69]
Jul 29, 2008 2:19:46 PM OSGiModuleImpl loadClass
SEVERE: Exception in module org.glassfish.web.web-cli [69] :
java.lang.NoClassDefFoundError: org/glassfish/api/Startup
Jul 29, 2008 2:19:46 PM
INFO: ERROR: Error starting
file:/C:/glassfishV3/v3-new/v3/glassfish//modules/osgi-adapter-0.3.9.jar
(org.osgi.framework.BundleException: Activator start error.)
Jul 29, 2008 2:19:46 PM
SEVERE: org.jvnet.hk2.component.ComponentException: Failed to load
org.glassfish.web.admin.monitor.telemetry.WebMonitorStartup from
org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1_at_13f210f
Jul 29, 2008 2:19:46 PM
SEVERE: at
com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:94)
Jul 29, 2008 2:19:46 PM
SEVERE: at
com.sun.hk2.component.LazyInhabitant.type(LazyInhabitant.java:78)
Jul 29, 2008 2:19:46 PM
SEVERE: at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:128)
Jul 29, 2008 2:19:46 PM
SEVERE: at
com.sun.enterprise.module.bootstrap.Main.launch(Main.java:431)
Jul 29, 2008 2:19:46 PM
SEVERE: at
com.sun.enterprise.module.bootstrap.Main.launch(Main.java:376)
Jul 29, 2008 2:19:46 PM
SEVERE: at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:116)
Jul 29, 2008 2:19:46 PM
SEVERE: at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
Jul 29, 2008 2:19:46 PM
SEVERE: at
org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
Jul 29, 2008 2:19:46 PM
SEVERE: at
org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
Jul 29, 2008 2:19:46 PM
SEVERE: at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125)
Jul 29, 2008 2:19:46 PM OSGiModuleImpl loadClass
INFO: Started bundle org.glassfish.web.web-cli [69]
Jul 29, 2008 2:19:46 PM
SEVERE: at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
Jul 29, 2008 2:19:46 PM
SEVERE: at java.lang.Thread.run(Unknown Source)
Jul 29, 2008 2:19:46 PM
SEVERE: Caused by: java.lang.ClassNotFoundException:
org/glassfish/api/Startup
Jul 29, 2008 2:19:46 PM
SEVERE: at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl$1$1.loadClass(OSGiModuleImpl.java:270)
Jul 29, 2008 2:19:46 PM
Jul 29, 2008 2:19:46 PM
SEVERE: at
com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)
Jul 29, 2008 2:19:46 PM
SEVERE: ... 11 more
Jul 29, 2008 2:19:46 PM
INFO: DEBUG: WIRE: 6.0 -> org.ungoverned.osgi.service.shell -> 6.0
Jul 29, 2008 2:19:46 PM
INFO: DEBUG: WIRE: 6.0 -> org.osgi.service.startlevel -> 0
Jul 29, 2008 2:19:46 PM
INFO: DEBUG: WIRE: 6.0 -> org.apache.felix.shell -> 6.0
Jul 29, 2008 2:19:46 PM
INFO: DEBUG: WIRE: 6.0 -> org.osgi.framework -> 0
Jul 29, 2008 2:19:46 PM
INFO: DEBUG: WIRE: 6.0 -> org.osgi.service.packageadmin -> 0
Jul 29, 2008 2:19:46 PM OSGiModuleImpl loadClass
SEVERE: Exception in module org.glassfish.web.web-cli [69] :
java.lang.NoClassDefFoundError: org/glassfish/api/Startup