dev@glassfish.java.net

Re: [v3] start-up error after updating and rebuilding hk2 and gf

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Thu, 07 Aug 2008 17:38:22 -0500

I suspect we are seeing the same problem.

I see the exception when I launch using

asadmin start-domain --verbose

so I can see the output directly to the console. If I do a

asadmin start-domain

I see the same symptoms as others - the start-domain hangs and then
fails after 90 seconds and the server.log contains only a little
information, ending with

Aug 7, 2008 5:25:42 PM
com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 316 msec.

The DomDocument.class file is in the JAR file as expected, and as far as
I can tell it looks as if the Export-Package: value in the manifest is
correct but I am not positive of that.

- Tim

Marina Vatkina wrote:
> I didn't update hk2, but I'm having the same problem. If I try to
> start via asadmin, the process hangs with no exception in the log.
>
> thanks,
> -marina
>
> Tim Quinn wrote:
>> And now for something completely different...
>>
>> Earlier today I updated my local hk2 and GlassFish v3 workspaces and
>> rebuilt both.
>> Now my locally-built server fails during startup with the error below.
>>
>> I have already updated and cleaned and rebuilt hk2 again with no
>> improvement.
>>
>> Is anyone else seeing this or have any suggestions for what to do?
>> - Tim
>>
>>
>> ERROR: Error starting
>> file:/Users/Tim/asgroup/v3/publish/glassfish//modules/osgi-adapter-0.3.12-SNAPSHOT.jar
>> (org.osgi.framework.BundleException: Activator start error.)
>> org.jvnet.hk2.component.ComponentException: Failed to create class
>> com.sun.enterprise.v3.server.DomainXml
>> at
>> com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:76)
>> at
>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:74)
>> at
>> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>>
>> at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>> at
>> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>>
>> at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:242)
>> at java.util.AbstractList$Itr.next(AbstractList.java:422)
>> at
>> com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:138)
>>
>> at
>> com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:392)
>> at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:114)
>> at
>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
>>
>> at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
>> at
>> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125)
>> at
>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
>> at java.lang.Thread.run(Thread.java:613)
>> Caused by: java.lang.NoClassDefFoundError:
>> org/jvnet/hk2/config/DomDocument
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
>> at
>> org.apache.felix.framework.searchpolicy.ContentClassLoader.findClass(ContentClassLoader.java:214)
>>
>> at
>> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassFromModule(ContentClassLoader.java:85)
>>
>> at
>> org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(ContentLoaderImpl.java:141)
>>
>> at
>> org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:101)
>> at
>> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4SearchPolicyCore.java:507)
>>
>> at
>> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:468)
>>
>> at
>> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:187)
>>
>> at
>> org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
>>
>> at
>> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:109)
>>
>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
>> at java.lang.Class.getDeclaredConstructors0(Native Method)
>> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>> at java.lang.Class.getConstructor0(Class.java:2671)
>> at java.lang.Class.newInstance0(Class.java:321)
>> at java.lang.Class.newInstance(Class.java:303)
>> at
>> com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:70)
>> ... 15 more
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>