[ https://issues.apache.org/jira/browse/GERONIMO-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13153814#comment-13153814 ]
Forrest Xia commented on GERONIMO-6212: --------------------------------------- I think, IBM jvm option -Xhealthcenter requires a corba service to function, and the corba service must be available when jvm is beginning, it's hard for G 3 to make yoko service available when the server jvm is just beginning to launch. On the other hand, G 3 corba service only functions in an OSGi environment, even put all required jars into the endorsed directory, it still cannot function well that -Xhealthcenter feature requires. Here is a way to enable headless way for G 3: 1. Modify jre/lib/healthcenter.properties, add or update as following: com.ibm.java.diagnostics.healthcenter.data.collection.level=headless com.ibm.java.diagnostics.healthcenter.headless.output.directory=C:\\temp 2. Start server with -Xhealthcenter 3. After server started, do some operation on server 4. Shutdown the server, the healthcenter.hcd will be generated in c:\temp 5. Use ISA workbench to view the data > -Xhealthcenter does not work on IBM JDK > --------------------------------------- > > Key: GERONIMO-6212 > URL: https://issues.apache.org/jira/browse/GERONIMO-6212 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: CORBA > Affects Versions: 3.0 > Reporter: Jarek Gawor > Assignee: Forrest Xia > > Starting the IBM JDK with -Xhealthcenter option does not work. The following > error is generated: > Nov 16, 2011 12:38:24 PM > com.ibm.java.diagnostics.healthcenter.agent.mbean.HCLaunchMBean > startMBeanServer > SEVERE: Health Center agent failed to start. > Throwable occurred: java.lang.ExceptionInInitializerError > at java.lang.J9VMInternals.initialize(J9VMInternals.java:222) > at > javax.management.remote.rmi.RMIIIOPServerImpl.export(RMIIIOPServerImpl.java:62) > at > javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:399) > at > com.ibm.java.diagnostics.healthcenter.agent.mbean.HCLaunchMBean.startMBeanServer(HCLaunchMBean.java:537) > at > com.ibm.java.diagnostics.healthcenter.agent.mbean.HCLaunchMBean$JmxStarterThread.run(HCLaunchMBean.java:252) > Caused by: org.omg.CORBA.INITIALIZE: Can not create PortableRemoteObject > delegate: org.apache.yoko.rmi.impl.PortableRemoteObjectImpl: vmcid: 0x0 > minor code: 0x0 completed: No > at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:39) > at java.lang.J9VMInternals.initializeImpl(Native Method) > at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) > ... 4 more > Caused by: java.lang.ExceptionInInitializerError > at java.lang.J9VMInternals.initialize(J9VMInternals.java:222) > at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:37) > ... 6 more > Caused by: org.omg.CORBA.INITIALIZE: Can not create Util delegate: > org.apache.yoko.rmi.impl.UtilImpl: vmcid: 0x0 minor code: 0x0 completed: No > at javax.rmi.CORBA.Util.<clinit>(Util.java:48) > at java.lang.J9VMInternals.initializeImpl(Native Method) > at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) > ... 7 more > Caused by: java.lang.ClassNotFoundException: org.apache.yoko.rmi.impl.UtilImpl > at > org.apache.yoko.rmispec.util.UtilLoader.loadClass(UtilLoader.java:163) > at javax.rmi.CORBA.Util.loadClass(Util.java:86) > at javax.rmi.CORBA.Util.<clinit>(Util.java:46) > ... 9 more > Nov 16, 2011 12:38:24 PM > com.ibm.java.diagnostics.healthcenter.agent.mbean.HCLaunchMBean startAgent > INFO: Health Center agent did not start correctly. > Nov 16, 2011 12:38:24 PM > com.ibm.java.diagnostics.healthcenter.agent.mbean.HCLaunchMBean startAgent > INFO: Agent version "1.3.0.20101014" > To get this exception ensure that the java.util.logging.config.file system > property is NOT set in the geronimo script. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira