dev@glassfish.java.net

AppServerMBeanServerBuilder not found (was: Re: can't start cluster after upgrade)

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Tue, 14 Sep 2010 16:57:33 -0400

On Sep 14, 2010, at 4:24 PM, Bobby Bissett wrote:
> Still can't start the cluster though (at least not yet). I get these in the DAS log file and then it just waits (I expect it will timeout in another few minutes):

Ok, looks like I *can* pass --verbose in if I start the instance manually instead of using start-cluster. Duh. :)

Class not found exception is below. This class is in the gfv2 lib/appserv-se.jar file, but isn't anywhere in v3. Note that the DAS started up without any issues -- this is from the instance. This class is specified as a JVM option in domain.xml and should probably be removed, but is there a bug that the DAS ignores it and the instances don't?

Thanks,
Bobby

------------------------------

hostname% ./asadmin start-local-instance --verbose instance1 &
[1] 24002
hostname% Cannot read logging.properties file.
Sep 14, 2010 4:48:59 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java
-cp
/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/modules/glassfish.jar
-XX:MaxPermSize=192m
-XX:NewRatio=2
-Xmx512m
-javaagent:/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/lib/monitor/btrace-agent.jar=unsafe=true,noServer=true
-client
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.net.ssl.keyStore=/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/nodes/na1/instance1/config/keystore.jks
-Djava.security.policy=/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/nodes/na1/instance1/config/server.policy
-Dcom.sun.appserv.pluggable.features=com.sun.enterprise.ee.server.pluggable.EEPluggableFeatureImpl
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dcom.sun.aas.instanceRoot=/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/nodes/na1/instance1
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Djava.endorsed.dirs=/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/lib/endorsed
-Dcom.sun.aas.installRoot=/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish
-Djava.ext.dirs=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/ext:/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/jre/lib/ext:/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/nodes/na1/instance1/lib/ext:/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/javadb/lib:/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/lib/jdbcdrivers
-Djavax.net.ssl.trustStore=/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/nodes/na1/instance1/config/cacerts.jks
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Djava.security.auth.login.config=/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/nodes/na1/instance1/config/login.conf
-Djava.library.path=/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/lib:/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/bin:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
com.sun.enterprise.glassfish.bootstrap.ASMain
-asadmin-args
start-local-instance,,,--verbose,,,instance1
-instancename
instance1
-verbose
true
-debug
false
-asadmin-classpath
/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/modules/admin-cli.jar
-asadmin-classname
com.sun.enterprise.admin.cli.AsadminMain
-upgrade
false
-type
INSTANCE
-instancedir
/Users/bobby/work/ws/cluster_upgrade_noapp/glassfishv3/glassfish/nodes/na1/instance1
-read-stdin
true
Sep 14, 2010 4:48:59 PM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Successfully launched in 61 msec.
Launching GlassFish on Felix platform
OSGiGlassFishRuntime: Initialized org.apache.felix.framework [0]
Sep 14, 2010 4:49:07 PM com.sun.enterprise.util.EarlyLogger add
INFO: Total time to parse domain.xml: 216 milliseconds
gfKernel = com.sun.enterprise.v3.server.AppServerStartup_at_5b8ad9a0
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:102)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
Caused by: java.lang.RuntimeException: javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder: java.lang.ClassNotFoundException: com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
        at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:121)
        ... 6 more
Caused by: javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder: java.lang.ClassNotFoundException: com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
        at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:480)
        at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:511)
        at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:298)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:213)
        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:174)
        at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:302)
        at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:504)
        at org.glassfish.admin.monitor.MonitoringBootstrap.setStatsProviderManagerDelegate(MonitoringBootstrap.java:237)
        at org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders(MonitoringBootstrap.java:641)
        at org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct(MonitoringBootstrap.java:170)
        at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:109)
        at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:92)
        at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:68)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:59)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:136)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:73)
        at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:215)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:131)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:75)
        ... 7 more
Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.ee.admin.AppServerMBeanServerBuilder
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:423)
        at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:465)
        ... 25 more