cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

APP not working after set AppD javaagent in jvm.options

David.Xin
Adventurer

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

 

2 REPLIES 2

Peter.Holditch
Moderator
Moderator

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

 

 

 

 



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Thx v much Peter, it is working