dev@glassfish.java.net

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

From: <Jan.Luehe_at_Sun.COM>
Date: Fri, 08 Aug 2008 09:22:39 -0700

Tim Quinn wrote:

> Hi, Jan.
>
> If you have not already done so, you might try starting the server using
>
> asadmin start-domain --verbose
>
> That is how I saw error messages that did not appear in the server.log
> when I started the server without --verbose.


Thanks, Tim, for the tip!

I just rebuilt again from scratch, and --verbose shows this error during
domain startup:

Welcome to Felix.
=================

Aug 9, 2008 12:15:11 AM HK2Main start
INFO: contextRootDir =
/space/luehe/ws/v3/distributions/web/target/glassfish/modules
Aug 9, 2008 12:15:11 AM OSGiFactoryImpl initialize
INFO: Singleton already initialized as
com.sun.enterprise.module.impl.HK2Factory_at_1ebd75b
Aug 9, 2008 12:15:12 AM OSGiModuleImpl loadClass
INFO: Started bundle org.glassfish.core.kernel [75]
Aug 9, 2008 12:15:12 AM OSGiModuleImpl loadClass
INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [13]
Aug 9, 2008 12:15:12 AM OSGiModuleImpl loadClass
INFO: Started bundle org.glassfish.common.common-util [89]
Aug 9, 2008 12:15:13 AM HK2Main$HK2ServiceTrackerCustomizer addingService
INFO: registerring service =
org.apache.felix.framework.StartLevelImpl_at_13e754f, contract =
org.osgi.service.startlevel.StartLevel, name = null
Aug 9, 2008 12:15:13 AM HK2Main$HK2ServiceTrackerCustomizer addingService
INFO: registerring service =
org.apache.felix.framework.PackageAdminImpl_at_ae3364, contract =
org.osgi.service.packageadmin.PackageAdmin, name = null
ERROR: Error starting
file:/space/luehe/ws/v3/distributions/web/target/glassfish//modules/osgi-adapter-0.3.12-SNAPSHOT.jar
(org.osgi.framework.BundleException: Activator start error.)
java.lang.NoSuchMethodError:
org.jvnet.hk2.osgiadapter.HK2Main.launch(Lcom/sun/enterprise/module/ModulesRegistry;Lorg/jvnet/hk2/component/Habitat;Ljava/lang/String;Lcom/sun/enterprise/module/bootstrap/StartupContext;)Lcom/sun/enterprise/module/bootstrap/ModuleStartup;
        at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:122)
        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:595)


Jan


>
> - Tim
>
> Jan.Luehe_at_Sun.COM wrote:
>
>> I'm still unable to start the domain (it times out), after:
>>
>> 1. Updating (since I had several local changes) and rebuilding my ws
>> -> No progress
>>
>> 2. Creating a brand new ws
>> -> No progress
>>
>> 3. Deleting my .m2 and creating a brand new ws
>> -> No progress
>>
>> I'm not sure what else to do. I realize Hudson is fine, but that's not
>> helping me.
>>
>> I've also started seeing these test failures during the build (they
>> can be worked around, but are nevertheless annoying):
>>
>>
>> Tests in error:
>> portTest(com.sun.enterprise.configapi.tests.HttpListenerTest)
>> validTransaction(com.sun.enterprise.configapi.tests.HttpListenerTest)
>> validTransaction(com.sun.enterprise.configapi.tests.HttpServiceTest)
>> connectionTest(com.sun.enterprise.configapi.tests.HttpServiceTest)
>> invalidTransaction(com.sun.enterprise.configapi.tests.HttpServiceTest)
>>
>> testSubTypesOfDomain(com.sun.enterprise.configapi.tests.JavaConfigSubTypesTest)
>>
>> doTest(com.sun.enterprise.configapi.tests.JavaConfigSubTypesTest)
>> test(com.sun.enterprise.configapi.tests.JavaConfigSubTypesTest)
>> test(com.sun.enterprise.configapi.tests.TransactionCallBackTest)
>> test(com.sun.enterprise.configapi.tests.DirectAccessTest)
>> appsExistTest(com.sun.enterprise.configapi.tests.ApplicationsTest)
>> getModulesTest(com.sun.enterprise.configapi.tests.ApplicationsTest)
>>
>> removeAttributeTest(com.sun.enterprise.configapi.tests.AttributeRemovalTest)
>>
>> transactionEvents(com.sun.enterprise.configapi.tests.AddPropertyTest)
>> test(com.sun.enterprise.configapi.tests.DirectRemovalTest)
>>
>> transactionEvents(com.sun.enterprise.configapi.tests.TransactionListenerTest)
>>
>> testAppRoot(com.sun.enterprise.configapi.tests.RawValueTest)
>>
>> addHttpListenerTest(com.sun.enterprise.configapi.tests.ParentConfigListenerTest)
>>
>> testAppRoot(com.sun.enterprise.configapi.tests.TranslatedValuesTest)
>> testJavaRoot(com.sun.enterprise.configapi.tests.TranslatedValuesTest)
>> enabled(com.sun.enterprise.configapi.tests.EnabledTest)
>> domainExist(com.sun.enterprise.configapi.tests.DomainTest)
>> testSubTypesOfDomain(com.sun.enterprise.configapi.tests.SubTypesTest)
>>
>> testAllDefaults(com.sun.enterprise.configapi.tests.dvt.AccessLogAllDefaultsTest)
>>
>>
>> unprocessedEventsTest(com.sun.enterprise.configapi.tests.UnprocessedEventsTest)
>>
>>
>> createVirtualServerTest(com.sun.enterprise.configapi.tests.TranslatedViewCreationTest)
>>
>> test(com.sun.enterprise.configapi.tests.PersistenceTest)
>>
>> directAttributeNameTest(com.sun.enterprise.configapi.tests.DirectCreationTest)
>>
>> test(com.sun.enterprise.configapi.tests.DirectCreationTest)
>> modulesTest(com.sun.enterprise.configapi.tests.ModulesTest)
>> changedTest(com.sun.enterprise.configapi.tests.ConfigListenerTest)
>> removeListenerTest(com.sun.enterprise.configapi.tests.ConfigListenerTest)
>>
>> sslEnbaledTest(com.sun.enterprise.configapi.tests.Ssl2EnabledTest)
>>
>> collectionTest(com.sun.enterprise.configapi.tests.ConcurrentModificationsTest)
>>
>>
>> testFewDefaults(com.sun.enterprise.configapi.tests.dvt.SecurityServiceDefaultsTest)
>>
>>
>> testFewDefaults(com.sun.enterprise.configapi.tests.dvt.JdbcConnectionPoolDefaultsTest)
>>
>>
>>
>>
>> Jan
>>
>>
>> ---------------------------------------------------------------------
>> 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
>