dev@glassfish.java.net

V3 server won't start: Failed to inject class com.sun.enterprise.v3.admin.AdminAdapter

From: Lloyd L Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Tue, 10 Jun 2008 12:59:44 -0700

This is a brand-new fresh 'svn update', 'mvn clean', 'mvn -U
install'. It worked yesterday.

Lloyd

Jun 10, 2008 12:58:04 PM
com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java
-cp
/v3/run/modules/glassfish-10.0-SNAPSHOT-sources.jar:/v3/run/modules/
glassfish-10.0-SNAPSHOT.jar
-XX:+UnlockDiagnosticVMOptions
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=/v3/run/domains/domain1/logs/jvm.log
-Xmx512m
-client
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.net.ssl.trustStore=/v3/run/domains/domain1/config/cacerts.jks
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=/v3/run/domains/domain1/config/keystore.jks
-Djava.security.policy=/v3/run/domains/domain1/config/server.policy
-Dsun.rmi.dgc.server.gcInterval=3600000
-
Dcom
.sun
.enterprise
.config
.config_environment_factory_class
=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Djava.security.auth.login.config=/v3/run/domains/domain1/config/
login.conf
-Djava.endorsed.dirs=/v3/run/lib/endorsed
-Djava.ext.dirs=/System/Library/Frameworks/JavaVM.framework/Versions/
1.6.0/Home/lib/ext:/System/Library/Frameworks/JavaVM.framework/
Versions/1.6.0/Home/jre/lib/ext:/v3/run/domains/domain1/lib/ext:/v3/
run/javadb/lib
com.sun.enterprise.glassfish.bootstrap.ASMain
-domainname
domain1
-instancename
server
-verbose
true
-debug
false
-domaindir
/v3/run/domains/domain1
Jun 10, 2008 12:58:04 PM
com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 165 msec.
Jun 10, 2008 12:58:04 PM com.sun.enterprise.glassfish.bootstrap.ASMain
main
INFO: Launching GlassFish on Apache Felix OSGi platform
Jun 10, 2008 12:58:04 PM
com.sun.enterprise.glassfish.bootstrap.ASMainOSGi getSharedRepos
INFO: /v3/run/domains/domain1/lib does not exist

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

Jun 10, 2008 12:58:04 PM HK2Main start
INFO: contextRootDir = /v3/run/modules
Jun 10, 2008 12:58:04 PM OSGiFactoryImpl initialize
INFO: Singleton already initialized as
com.sun.enterprise.module.impl.HK2Factory_at_5edd7658
Jun 10, 2008 12:58:06 PM OSGiModuleImpl loadClass
INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [16]
Jun 10, 2008 12:58:06 PM OSGiModuleImpl loadClass
INFO: Started bundle org.glassfish.core.kernel [49]
Jun 10, 2008 12:58:06 PM OSGiModuleImpl loadClass
INFO: Started bundle org.glassfish.common.glassfish-naming [6]
Jun 10, 2008 12:58:06 PM OSGiModuleImpl loadClass
INFO: Started bundle org.glassfish.admin.config-api [41]
Jun 10, 2008 12:58:06 PM OSGiModuleImpl loadClass
INFO: Started bundle org.glassfish.common.internal-api [31]
Jun 10, 2008 12:58:06 PM
INFO: JMXMP connector server URL = service:jmx:jmxmp://localhost:8888
Jun 10, 2008 12:58:06 PM
com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 8080
Jun 10, 2008 12:58:06 PM
com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 8181
Jun 10, 2008 12:58:06 PM
com.sun.enterprise.v3.services.impl.GrizzlyProxy start
INFO: Listening on port 4848
Jun 10, 2008 12:58:06 PM
INFO: ERROR: Error starting file:/v3/run//modules/osgi-
adapter-0.3.2.jar (org.osgi.framework.BundleException: Activator start
error.)
Jun 10, 2008 12:58:06 PM
SEVERE: java.lang.LinkageError: Failed to inject class
com.sun.enterprise.v3.admin.AdminAdapter from 49.0
Jun 10, 2008 12:58:06 PM
SEVERE: at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:
156)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:100)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:
86)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:
58)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com
.sun
.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:
60)
Jun 10, 2008 12:58:06 PM
SEVERE: at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:229)
Jun 10, 2008 12:58:06 PM
SEVERE: at java.util.AbstractList$Itr.next(AbstractList.java:345)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com
.sun
.enterprise
.v3.services.impl.GrizzlyService.postConstruct(GrizzlyService.java:116)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:150)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:
86)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:
58)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com
.sun
.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:
60)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com
.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:
123)
Jun 10, 2008 12:58:06 PM
SEVERE: at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:
431)
Jun 10, 2008 12:58:06 PM
SEVERE: at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:
376)
Jun 10, 2008 12:58:06 PM
SEVERE: at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:116)
Jun 10, 2008 12:58:06 PM
SEVERE: at
org
.apache
.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
Jun 10, 2008 12:58:06 PM
SEVERE: at org.apache.felix.framework.Felix._startBundle(Felix.java:
1610)
Jun 10, 2008 12:58:06 PM
SEVERE: at org.apache.felix.framework.Felix.startBundle(Felix.java:
1544)
Jun 10, 2008 12:58:06 PM
SEVERE: at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125)
Jun 10, 2008 12:58:06 PM
SEVERE: at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
Jun 10, 2008 12:58:06 PM
SEVERE: at java.lang.Thread.run(Thread.java:637)
Jun 10, 2008 12:58:06 PM
SEVERE: Caused by: com.sun.enterprise.module.ResolveError: Failed to
start org.glassfish.common:container-common:1.0
Jun 10, 2008 12:58:06 PM
SEVERE: at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl.resolve(OSGiModuleImpl.java:
112)
Jun 10, 2008 12:58:06 PM
SEVERE: at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl.start(OSGiModuleImpl.java:121)
Jun 10, 2008 12:58:06 PM
SEVERE: at org.jvnet.hk2.osgiadapter.OSGiModuleImpl
$1$1.loadClass(OSGiModuleImpl.java:256)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:91)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:106)
Jun 10, 2008 12:58:06 PM
SEVERE: at
com
.sun
.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:
60)
Jun 10, 2008 12:58:06 PM
SEVERE: at org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:
312)
Jun 10, 2008 12:58:06 PM
SEVERE: at com.sun.hk2.component.AbstractWombImpl
$1.getValue(AbstractWombImpl.java:122)
Jun 10, 2008 12:58:06 PM
SEVERE: at
org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:
79)
Jun 10, 2008 12:58:06 PM
SEVERE: ... 25 more
Jun 10, 2008 12:58:06 PM
SEVERE: Caused by: org.osgi.framework.BundleException: Unresolved
package in bundle 19: module; (&(bundle-symbolic-
name=org.glassfish.deployment.dol)(bundle-version>=10.0.0.SNAPSHOT)
(bundle-version<=10.0.0.SNAPSHOT))
Jun 10, 2008 12:58:06 PM
SEVERE: at org.apache.felix.framework.Felix._resolveBundle(Felix.java:
1728)
Jun 10, 2008 12:58:06 PM
SEVERE: at org.apache.felix.framework.Felix._startBundle(Felix.java:
1591)
Jun 10, 2008 12:58:06 PM
SEVERE: at org.apache.felix.framework.Felix.startBundle(Felix.java:
1544)
Jun 10, 2008 12:58:06 PM
SEVERE: at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:371)
Jun 10, 2008 12:58:06 PM
SEVERE: at
org.jvnet.hk2.osgiadapter.OSGiModuleImpl.resolve(OSGiModuleImpl.java:
109)
Jun 10, 2008 12:58:06 PM
SEVERE: ... 33 more
Jun 10, 2008 12:58:06 PM
com.sun.enterprise.glassfish.bootstrap.ASMainFelix launchOSGiFW
INFO: Framework successfully started

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