dev@glassfish.java.net

Unexpected problem updating Configuration...

From: Carla Mott <carla.mott_at_oracle.com>
Date: Thu, 08 Apr 2010 10:18:33 -0700

Hi,

As part of a bug fix investigation, I'm moving code into glassfish.jar
and I get the following when I try to bring up the server. There is a
dependency in the code that is still in kernel.jar to code now in
glassfish.jar. I updated osgi.bundle in bootstrap to include an export
entry for the newly created package and updated osgi.bundle in kernel to
include a DynamicImport-Package entry. The class that is not found is
actually in the package that is being exported/imported.

What else do I need to do?


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

*ERROR* [org.osgi.service.cm.ManagedService, id=5, bundle=210]:
Unexpected problem updating Configuration
PID=org.jvnet.hk2.osgiadapter.StartupContextService, factoryPID=null,
bundleLocation=file:/Users/cmott/gf-v3/glassfishv3/glassfish/modules/osgi-adapter.jar
org.jvnet.hk2.component.ComponentException: Failed to create class
com.sun.enterprise.v3.services.impl.LogManagerService
        at
com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:74)
        at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:71)
        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
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:212)
        at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:128)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:456)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:400)
        at
org.jvnet.hk2.osgiadapter.HK2Main$StartupContextService.updated(HK2Main.java:102)
        at
org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1389)
        at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:88)
Caused by: java.lang.NoClassDefFoundError:
com/sun/enterprise/glassfish/logging/UniformLogFormatter
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
        at java.lang.Class.getConstructor0(Class.java:2699)
        at java.lang.Class.newInstance0(Class.java:326)
        at java.lang.Class.newInstance(Class.java:308)
        at
com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:68)
        ... 11 more
Caused by: java.lang.ClassNotFoundException:
com.sun.enterprise.glassfish.logging.UniformLogFormatter
        at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:744)
        at
org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
        at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1656)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402)
        ... 17 more