Hi,
When I enable -Dcom.sun.management.jmxremote in the app, it will not start up.
Any ideas?
Here are the exceptions:
[#|2007-07-20T14:13:03.589-0700|INFO|sun-appserver-pe9.0|javax.enterprise.tools.launcher|_ThreadID=10;_ThreadName=main;|
/usr/jdk/java-1.5/bin/java
-server
-Xmx512m
-XX:NewRatio=2
-Dcom.sun.aas.defaultLogFile=/home/scottmf/pkgs/glassfish/domains/domain1/logs/server.log
-Djava.endorsed.dirs=/home/scottmf/pkgs/glassfish/lib/endorsed
-Djava.security.policy=/home/scottmf/pkgs/glassfish/domains/domain1/config/server.policy
-Djava.security.auth.login.config=/home/scottmf/pkgs/glassfish/domains/domain1/config/login.conf
-Dsun.rmi.dgc.server.gcInterval=3600000
-Dsun.rmi.dgc.client.gcInterval=3600000
-Djavax.net.ssl.keyStore=/home/scottmf/pkgs/glassfish/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=/home/scottmf/pkgs/glassfish/domains/domain1/config/cacerts.jks
-Djava.ext.dirs=/usr/jdk/jdk1.6.0_01/jre/../jre/lib/ext:/home/scottmf/pkgs/glassfish/domains/domain1/lib/ext:/home/scottmf/pkgs/glassfish/javadb/lib
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=6967
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.aas.classloader.optionalOverrideableChain=appserv-ws.jar,commons-logging.jar,commons-launcher.jar
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,/home/scottmf/pkgs/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.configName=server-config
-Ddomain.name=domain1
-Djmx.invoke.getters=true
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.instanceRoot=/home/scottmf/pkgs/glassfish/domains/domain1
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,/usr/jdk/jdk1.6.0_01/jre/../lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,/home/scottmf/pkgs/glassfish/imq/lib/jaxm-api.jar,/home/scottmf/pkgs/glassfish/imq/lib/fscontext.jar,/home/scottmf/pkgs/glassfish/imq/lib/imqbroker.jar,/home/scottmf/pkgs/glassfish/imq/lib/imqjmx.jar,/home/scottmf/pkgs/glassfish/imq/lib/imqxm.jar,/home/scottmf/pkgs/glassfish/lib/ant/lib/ant.jar,appserv-ws.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,/home/scottmf/pkgs/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbjdbc4.jar,jgroups-all.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.xml.bind,javax.help,javax.portlet
-Dcom.sun.aas.classloader.serverClassPath=/home/scottmf/pkgs/glassfish/lib/install/applications/jmsra/imqjmsra.jar,/home/scottmf/pkgs/glassfish/imq/lib/jaxm-api.jar,/home/scottmf/pkgs/glassfish/imq/lib/fscontext.jar,/home/scottmf/pkgs/glassfish/imq/lib/imqbroker.jar,/home/scottmf/pkgs/glassfish/imq/lib/imqjmx.jar,/home/scottmf/pkgs/glassfish/lib/ant/lib/ant.jar,/home/scottmf/pkgs/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.configRoot=/home/scottmf/pkgs/glassfish/config
-Djava.library.path=/usr/jdk/jdk1.6.0_01/jre/lib/amd64/server:/usr/jdk/jdk1.6.0_01/jre/lib/amd64:/usr/jdk/jdk1.6.0_01/jre/../lib/amd64:/home/scottmf/pkgs/glassfish/lib:/usr/lib/lwp:/usr/jdk/jdk1.6.0_01/jre/lib/amd64/server:/usr/jdk/jdk1.6.0_01/jre/lib/amd64:/usr/jdk/jdk1.6.0_01/jre/../lib/amd64:/home/scottmf/pkgs/glassfish/lib:/home/scottmf/pkgs/glassfish/lib:/home/scottmf/pkgs/glassfish/lib:/usr/lib:usr/local/lib:/usr/ucblib:/usr/local/BerkeleyDB.4.2/lib:/usr/java/packages/lib/amd64:/lib:/usr/lib
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.installRoot=/home/scottmf/pkgs/glassfish
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=
-Dcom.sun.aas.ServerClassPath=
-cp
:/home/scottmf/pkgs/glassfish/lib/appserv-launch.jar
com.sun.enterprise.server.PELaunch
start|#]
Could not load Logmanager "com.sun.enterprise.server.logging.ServerLogManager"
java.lang.ClassNotFoundException: com.sun.enterprise.server.logging.ServerLogManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.util.logging.LogManager$1.run(LogManager.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:156)
at java.util.logging.Logger.getLogger(Logger.java:254)
at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:57)
at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:42)
at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:550)
at sun.management.Agent.premain(Agent.java:90)
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:585)
at sun.management.Agent.startAgent(Agent.java:197)
javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder: java.lang.ClassNotFoundException: com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:499)
at javax.management.MBeanServerFactory.getNewMBeanServerBuilder(MBeanServerFactory.java:530)
at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:304)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:219)
at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:180)
at sun.management.ManagementFactory.createPlatformMBeanServer(ManagementFactory.java:264)
at java.lang.management.ManagementFactory.getPlatformMBeanServer(ManagementFactory.java:512)
at sun.management.jmxremote.ConnectorBootstrap.initialize(ConnectorBootstrap.java:350)
at sun.management.Agent.premain(Agent.java:90)
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:585)
at sun.management.Agent.startAgent(Agent.java:197)
Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at javax.management.MBeanServerFactory.loadBuilderClass(MBeanServerFactory.java:441)
at javax.management.MBeanServerFactory.checkMBeanServerBuilder(MBeanServerFactory.java:484)
... 13 more
Exception thrown by the agent : javax.management.JMRuntimeException: Failed to load MBeanServerBuilder class com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder: java.lang.ClassNotFoundException: com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
[Message sent by forum member 'scottf76' (scottf76)]
http://forums.java.net/jive/thread.jspa?messageID=227499