# APM Java agent websphere startup failure

**URL:** <https://discuss.elastic.co/t/apm-java-agent-websphere-startup-failure/153771>\
**Category:** APM\
**Created:** [October 24, 2018, 10:24am UTC](https://discuss.elastic.co/t/apm-java-agent-websphere-startup-failure/153771 "2018-10-24T10:24:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![D1le](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@D1le](https://discuss.elastic.co/u/D1le)\
**Post date:** [October 24, 2018, 10:24am UTC](https://discuss.elastic.co/t/apm-java-agent-websphere-startup-failure/153771/1 "2018-10-24T10:24:45Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![D1le](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@D1le](https://discuss.elastic.co/u/D1le)\
**Post date:** [October 24, 2018, 10:27am UTC](https://discuss.elastic.co/t/apm-java-agent-websphere-startup-failure/153771/2 "2018-10-24T10:27:11Z")

</div>

```auto
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

```

---

<div class="post-metadata">

**Author:** ![D1le](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@D1le](https://discuss.elastic.co/u/D1le)\
**Post date:** [October 24, 2018, 10:28am UTC](https://discuss.elastic.co/t/apm-java-agent-websphere-startup-failure/153771/3 "2018-10-24T10:28:55Z")

</div>

2018-10-24 12:39:29.388 [main] INFO co.elastic.apm.configuration.StartupInfo - Starting Elastic APM 0.9.0-SNAPSHOT as prpc on Java 1.8.0 (IBM Corporation) Linux 3.10.0-862.3.2.el7.x86\_64  
2018-10-24 12:39:29.392 [main] DEBUG co.elastic.apm.configuration.StartupInfo - service\_name: 'prpc' (source: /u01/IBM/AppServer/lib/ext/elasticapm.properties)  
2018-10-24 12:39:29.393 [main] DEBUG co.elastic.apm.configuration.StartupInfo - server\_urls: '[http://10.116.175.165:8200](http://10.116.175.165:8200)' (source: /u01/IBM/AppServer/lib/ext/elasticapm.properties)  
2018-10-24 12:39:29.393 [main] DEBUG co.elastic.apm.configuration.StartupInfo - log\_level: 'TRACE' (source: /u01/IBM/AppServer/lib/ext/elasticapm.properties)  
2018-10-24 12:39:29.393 [main] WARN co.elastic.apm.configuration.StartupInfo - To enable all features and to increase startup times, please configure application\_packages  
2018-10-24 12:39:29.424 [apm-server-healthcheck] INFO co.elastic.apm.report.ApmServerHealthChecker - Elastic APM server is available  
2018-10-24 12:39:29.445 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.ElasticApmApiInstrumentation$StartTransactionInstrumentation  
2018-10-24 12:39:29.453 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.ElasticApmApiInstrumentation$CurrentTransactionInstrumentation  
2018-10-24 12:39:29.454 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.ElasticApmApiInstrumentation$CurrentSpanInstrumentation  
2018-10-24 12:39:29.454 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.ElasticApmApiInstrumentation$CaptureExceptionInstrumentation  
2018-10-24 12:39:29.455 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$SetNameInstrumentation  
2018-10-24 12:39:29.455 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$SetTypeInstrumentation  
2018-10-24 12:39:29.455 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$AddTagInstrumentation  
2018-10-24 12:39:29.455 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$SetUserInstrumentation  
2018-10-24 12:39:29.456 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$EndInstrumentation  
2018-10-24 12:39:29.456 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$DoCreateSpanInstrumentation  
2018-10-24 12:39:29.456 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$CaptureExceptionInstrumentation  
2018-10-24 12:39:29.456 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$GetIdInstrumentation  
2018-10-24 12:39:29.456 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$SetNameInstrumentation  
2018-10-24 12:39:29.456 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$SetTypeInstrumentation  
2018-10-24 12:39:29.457 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$DoCreateSpanInstrumentation  
2018-10-24 12:39:29.457 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$EndInstrumentation  
2018-10-24 12:39:29.457 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$CaptureExceptionInstrumentation  
2018-10-24 12:39:29.457 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$GetIdInstrumentation  
2018-10-24 12:39:29.457 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$AddTagInstrumentation  
2018-10-24 12:39:29.458 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.CaptureExceptionInstrumentation  
2018-10-24 12:39:29.458 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.jaxrs.JaxRsTransactionNameInstrumentation  
2018-10-24 12:39:29.458 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.jdbc.ConnectionInstrumentation  
2018-10-24 12:39:29.459 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.jdbc.StatementInstrumentation  
2018-10-24 12:39:29.459 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.jdbc.PreparedStatementInstrumentation  
2018-10-24 12:39:29.459 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ApmSpanInstrumentation$FinishInstrumentation  
2018-10-24 12:39:29.460 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ApmSpanInstrumentation$CreateErrorInstrumentation  
2018-10-24 12:39:29.460 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ApmSpanInstrumentation$TagInstrumentation  
2018-10-24 12:39:29.460 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ApmSpanInstrumentation$SetOperationName  
2018-10-24 12:39:29.460 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ApmSpanInstrumentation$BaggageItemsInstrumentation  
2018-10-24 12:39:29.460 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ApmSpanBuilderInstrumentation$CreateSpanInstrumentation  
2018-10-24 12:39:29.461 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ScopeManagerInstrumentation$ActivateInstrumentation  
2018-10-24 12:39:29.461 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ScopeManagerInstrumentation$CurrentSpanInstrumentation  
2018-10-24 12:39:29.461 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ApmScopeInstrumentation  
2018-10-24 12:39:29.461 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.servlet.ServletInstrumentation  
2018-10-24 12:39:29.462 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.servlet.FilterChainInstrumentation  
2018-10-24 12:39:29.462 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.servlet.AsyncInstrumentation

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [October 26, 2018, 5:53am UTC](https://discuss.elastic.co/t/apm-java-agent-websphere-startup-failure/153771/4 "2018-10-26T05:53:31Z")

</div>

Hi and thanks for giving the Java agent a try.

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 by`s 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.

Note that we only test against WebSphere Liberty

Cheers,  
Felix

---

<div class="post-metadata">

**Author:** ![D1le](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@D1le](https://discuss.elastic.co/u/D1le)\
**Post date:** [October 31, 2018, 5:29am UTC](https://discuss.elastic.co/t/apm-java-agent-websphere-startup-failure/153771/5 "2018-10-31T05:29:58Z")

</div>

Hello! Thank you for reply! I'll try to get more info about the issue and bring it here

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 21, 2018, 1:30am UTC](https://discuss.elastic.co/t/apm-java-agent-websphere-startup-failure/153771/6 "2018-11-21T01:30:00Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
