[ 
https://issues.apache.org/jira/browse/GERONIMO-6212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154941#comment-13154941
 ] 

Forrest Xia commented on GERONIMO-6212:
---------------------------------------

Correct some things previously posted. The -Xhealthcenter option functions via 
RMI/IIOP, not require corba service actually. For Geronimo corba/rmi impl., we 
add two spec jars into geronimo_home/lib/endorsed, those jars lead the 
exceptions when healthcenter agent is enabled for the geronimo jvm.

So the work around for this issue is to disable corba function totally by doing:
1. Remove the YOKO RMI and CORBA spec jars from geronimo_home/lib/endorsed 
folder
2. Comment out corba related modules(default is running) from config.xml
 <module 
name="org.apache.geronimo.configs/openejb-corba-deployer/<version>/car"/>
 <module name="org.apache.geronimo.configs/j2ee-corba-yoko/<version>/car" />

Then we can start Geronimo with healthcenter enabled, start ISA GUI tool to 
connect to that jvm to collect data. 

Obviously, if the scenario requires CORBA, this work around won't work.
                
> -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

        

Reply via email to