dev@glassfish.java.net

Re: V3 won't start: NoClassDefFoundError: org/jvnet/tiger_types/Types

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Thu, 17 Apr 2008 14:44:51 -0700

Jerome,

This is all Greek to me--AFAIK I haven't changed anything (and I still
don't understand "HK2 mode" vs "OSGi mode").

Is all this written up somewhere in the build instructions? I just
checked today and I find no mention of "HK2 mode" or "OSGI mode" here:
http://wiki.glassfish.java.net/Wiki.jsp?page=V3DevelopmentInstructions

I did finally get it to build and run--it seems that 'mvn -U install'
was required.

Lloyd

On Apr 17, 2008, at 1:50 PM, Jerome Dochez wrote:
> so it's HK2 mode, looks like the classpath attribute of your hk2-0.X-
> SNAPSHOT is incorrect
>
> for instance when using hk2 version 0.2-SNAPSHOT, it is
> Class-Path : auto-depends-0.2.jar hk2-core-0.2.jar wstx-
> asl-3.2.3.jar config-0.2.jar stax-api-1.0-2.jar tiger-types-
> osgi-0.2.jar
>
>
> in your case it might be pointing to 0.3-SNAPSHOT while you seem to
> only ship 0.2-SNAPSHOT
>
> did you rebuild everything with the proper hk2.version setting ?
>
> Jerome
>
> On Apr 17, 2008, at 1:41 PM, Lloyd L Chambers wrote:
>> Jerome,
>>
>> I unjarred glassfish-10.0-SNAPSHOT.zip after building.
>>
>> Then I did 'asadmin start-domain'.
>>
>> Lloyd
>>
>> On Apr 17, 2008, at 1:36 PM, Jerome Dochez wrote:
>>> is this using Hk2 or OSGi mode ?
>>>
>>> On Apr 17, 2008, at 11:00 AM, Lloyd L Chambers wrote:
>>>> I've done 'svn up', a clean, a fresh build and fresh install.
>>>> And "tiger-types-osgi-0.2-SNAPSHOT.jar" is present in the modules
>>>> directory.
>>>>
>>>> It's also a bug: the server doesn't quit, and it doesn't work.
>>>> ............
>>>>
>>>> MB2:code lloyd$ ls /v3/run/modules/tiger-types-osgi-0.2-
>>>> SNAPSHOT.jar
>>>> /v3/run/modules/tiger-types-osgi-0.2-SNAPSHOT.jar
>>>>
>>>>
>>>>
>>>> INFO:
>>>> com.sun.enterprise.v3.services.impl.CmdLineParamProcessor_at_dffb78
>>>> Init done in 331 ms
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: Exception in thread "Thread-1"
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: java.lang.NoClassDefFoundError: org/jvnet/tiger_types/Types
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at org.jvnet.hk2.config.ConfigModel
>>>> $CollectionNode.get(ConfigModel.java:228)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at org.jvnet.hk2.config.Dom.getter(Dom.java:756)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> org.jvnet.hk2.config.ConfigBean._getter(ConfigBean.java:151)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> org.jvnet.hk2.config.ConfigBean.getter(ConfigBean.java:159)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at org.jvnet.hk2.config.Dom.invoke(Dom.java:747)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> org
>>>> .glassfish
>>>> .config
>>>> .support.TranslatedConfigView.invoke(TranslatedConfigView.java:80)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at $Proxy13.getSystemProperty(Unknown Source)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com
>>>> .sun
>>>> .enterprise
>>>> .v3
>>>> .server
>>>> .SystemTasks.setSystemPropertiesFromDomainXml(SystemTasks.java:117)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com
>>>> .sun
>>>> .enterprise.v3.server.SystemTasks.postConstruct(SystemTasks.java:
>>>> 82)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com
>>>> .sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:
>>>> 150)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com
>>>> .sun
>>>> .hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:86)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:
>>>> 75)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com
>>>> .sun
>>>> .hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com
>>>> .sun
>>>> .hk2
>>>> .component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:
>>>> 60)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:226)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at java.util.AbstractList$Itr.next(AbstractList.java:422)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com
>>>> .sun
>>>> .enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:
>>>> 88)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com.sun.enterprise.module.bootstrap.Main.launch(Main.java:437)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com.sun.enterprise.module.bootstrap.Main.launch(Main.java:400)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at
>>>> com.sun.enterprise.module.bootstrap.Main.start(Main.java:189)
>>>> Apr 17, 2008 10:58:07 AM
>>>> SEVERE: at com.sun.enterprise.module.bootstrap.Main
>>>> $1.run(Main.java:104)
>>>>
>>>>
>>>>
>>>> ---
>>>> Lloyd L Chambers
>>>> lloyd.chambers_at_sun.com
>>>> Sun Microsystems, Inc
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>
>> ---
>> Lloyd L Chambers
>> lloyd.chambers_at_sun.com
>> Sun Microsystems, Inc
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>

---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc