Hello!
I have some troubles running websphere server with apm agent.
Env:
RedHat 7.5
WebSphere ND 8.5.5.12 cluster configuration with one node
Java 1.8 IBM J9
APM server 6.4.2
APM java agent 0.9
When I use agent, websphere server fails to run throwing an exception java.lang.ClassNotFoundException: org.omg.CORBA.ORB
Are there any ideas, how to fix this?
org.eclipse.core.runtime.CoreException: Plug-in "com.ibm.ws.runtime" was unable to instantiate class "com.ibm.ws.runtime.WsServer".
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:188)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:904)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at com.ibm.wsspi.bootstrap.WSLauncher.getClassFromExtension(WSLauncher.java:246)
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:185)
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:96)
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:981)
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:406)
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:169)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.ensureError(J9VMInternals.java:141)
at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:130)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1899)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
... 26 more
Caused by: java.lang.IllegalStateException: java.lang.NoClassDefFoundError: org.omg.CORBA.ORB
at com.ibm.ws.util.ImplFactory.loadImplFromClass(ImplFactory.java:355)
at com.ibm.ws.util.ImplFactory.loadImplFromKey(ImplFactory.java:329)
at com.ibm.ws.util.ImplFactory.loadImplFromKey(ImplFactory.java:333)
at com.ibm.ws.runtime.WsServer.<clinit>(WsServer.java:51)
... 29 more
Caused by: java.lang.NoClassDefFoundError: org.omg.CORBA.ORB
at sun.misc.Unsafe.ensureClassInitialized(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:82)
at java.lang.Class.forName(Class.java:287)
at com.ibm.ws.util.PlatformHelperFactory.getBackupHelper(PlatformHelperFactory.java:127)
at com.ibm.ws.util.PlatformHelperFactory.getPlatformHelper(PlatformHelperFactory.java:93)
at com.ibm.ws.runtime.WsServerImpl.<clinit>(WsServerImpl.java:156)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1899)
at com.ibm.ws.util.ImplFactory.loadImplFromClass(ImplFactory.java:350)
... 32 more
Caused by: java.lang.ClassNotFoundException: org.omg.CORBA.ORB
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:460)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:809)
... 41 more
This seems like a very strange error and I can't quite explain the cause. The Java agent does not use and mess with CORBA classes. Does your application make use of it? Does that error only happen with a specific application or which any you have tried so far? Was the exception thrown before or after the agent has started up? Were there any more Caused bys in the exception stack trace? I can't see any agent class in the stacktrace (co.elastic.apm) which makes this quite hard to track down.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.