Splunk AppDynamics

APP not working after set AppD javaagent in jvm.options

David_Xin
New Member

Hi Support,

I installed new javaagent 4.4 in a liberty which app is working before the AppD javaagent setup. after I set the jvm.options, it will get below error then App will be not working any more. Liberty has -javaagent:/opt/IBM/wlp/bin/tools/ws-javaagent.jar by default, will the AppD javagent agent javaagent:/sysu/appdynamics_agent/javaagent.jar be conflict? I tried to remove javaagent:/sysu/appdynamics_agent/javaagent.jar  then App is fine. Any advise?

[9/20/18 9:45:09:401 GMT] 0000002c LogService-137-com.ibm.ws.jaxrs.2.0.client E CWWKE0701E: BundleComponentActivator : Bundle [137] Unexpected failure enabling component holder com.ibm.ws.jaxrs20.client.component.JaxRsAppSecurity Bundle:com.ibm.ws.jaxrs.2.0.client(id=137) java.lang.NoClassDefFoundError: com.singularity.ee.agent.appagent.services.bciengine.templates.ICookie
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:346)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:273)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:586)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:538)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:525)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:325)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:36)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:407)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)

Caused by: java.lang.ClassNotFoundException: com.singularity.ee.agent.appagent.services.bciengine.templates.ICookie cannot be found by com.ibm.websphere.javaee.servlet.3.1_1.0.15.cl160420161113-0206
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:461)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:372)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:364)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:161)
at java.lang.ClassLoader.loadClass(ClassLoader.java:805)
... 60 more

Labels (1)
0 Karma

Peter_Holditch
Builder

You will need to set the org.osgi.framework.bootdelegation property, as described here.

The liberty documentation discusses how to do that here.

Warm regards,

Peter

David_Xin
New Member

Thx v much Peter, it is working

0 Karma
Get Updates on the Splunk Community!

Extending Splunk AI Assistant for SPL to Splunk Enterprise customers!

Howdy Splunk Community! It’s an exciting day here at Splunk – Splunk AI Assistant for SPL version 1.3.0 is now ...

Developer Spotlight with Qmulos

Qmulos: Building a Next-Level Cybersecurity Business through Splunk Apps Qmulos started as a scrappy startup ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Enhance Security Operations with Automated Threat Analysis in the Splunk EcosystemAre you leveraging ...