dev@glassfish.java.net

Re: V3: Problem with Startup-Lifecycle

From: Sahoo <Sahoo_at_Sun.COM>
Date: Mon, 04 Aug 2008 12:45:17 +0530

No, I don't get you. What was not working well? What was your
expectation and how was it not met?

Thanks,
Sahoo

Prashanth Abbagani wrote:
> Sahoo,
>
> I did add the import explicitly in the pom.xml, this I did while
> experimenting with adding the dependency (and I perceived it wasn't
> working well). The imports were overriding all the defined
> dependencies which caused this problem.
>
> -Prashanth
>
> Sahoo wrote:
>> But, why did the Import-Package manifest not have that package in the
>> first place? Import-Package manifest is generated automatically for
>> web-cli bundle by maven-bundle-plugin. NoClassDefFoundError means it
>> was a static dependency, hence it should have been generated by the
>> plugin. Can you investigate further?
>>
>> Thanks,
>> Sahoo
>>
>> Prashanth Abbagani wrote:
>>> Bingo, that revealed the problem...
>>>
>>> Thanks...
>>>
>>> Mitesh Meswani wrote:
>>>> Check that manifest of "org.glassfish.web.web-cli" is having entry
>>>> for import-package of "org.glassfish.api"
>>>>
>>>> Prashanth Abbagani wrote:
>>>>> 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
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>