Splunk AppDynamics

Not boot "Liferay7.0CE bundled with tomcat " installed javaagent.

手塚_隆之
Path Finder

Hello.

I downloaded Liferay portal ce (bunde with tomcat).
(liferay-ce-portal-tomcat-7.0-ga3-20160804222206210.zip)

On CentOS7 with java-jdk-1.8.0.

Succeed boot without AppDynamics java agent.
but,not succeed when I writed "-javaagent:<path>/javaagent.jar" in sentevn.sh

FIrst Error log in catalina.out .

---------------------------

05:34:55,494 ERROR [Start Level: Equinox Container: b0d8e217-8a04-0017-1445-aceec850b6bc][com_liferay_wiki_service:97] [com.liferay.wiki.util.WikiCacheHelper
(571)] The activate method has thrown an exception
java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegatorBoot

---------------------------

What is the cause?

Labels (1)
0 Karma
1 Solution

Saradhi_Pothara
Communicator

Hi,

Classes that are not specified in the OSGI container's CLASSPATH are not delegated to the bootstrap classloader; therefore you must configure the OSGi containers for the Java Agentclasses. For agent "con.singularity.*" needs to be added.

 

Please look for liferay-ext.properties or portal-ext.properties  (or any other file that contains this property like liferay-plugin-package_7_0_0.properties and portal-legacy-7.0.properties) and add below entry (append module.framework.properties to org.osgi.framework...) and add "con.singularity.*" to the existing list.

module.framework.properties.org.osgi.framework.bootdelegation=__redirected,com.singularity.*,com.sun.ccpp,com.sun.ccpp.*,com.sun.crypto.*,com.sun.image.*,com.sun.jmx.*,com.sun.jna,com.sun.jndi.*,com.sun.mail.*,com.sun.management.*,com.sun.media.*,com.sun.msv.*,com.sun.org.*,com.sun.syndication,com.sun.tools.*,com.sun.xml.*,com.yourkit.*,sun.*

https://docs.appdynamics.com/display/PRO42/OSGi+Infrastructure+Configuration#OSGiInfrastructureConfi...

https://web.liferay.com/community/forums/-/message_boards/view_message/46779514

Regards,
Saradhi

View solution in original post

0 Karma

Saradhi_Pothara
Communicator

Hi,

Classes that are not specified in the OSGI container's CLASSPATH are not delegated to the bootstrap classloader; therefore you must configure the OSGi containers for the Java Agentclasses. For agent "con.singularity.*" needs to be added.

 

Please look for liferay-ext.properties or portal-ext.properties  (or any other file that contains this property like liferay-plugin-package_7_0_0.properties and portal-legacy-7.0.properties) and add below entry (append module.framework.properties to org.osgi.framework...) and add "con.singularity.*" to the existing list.

module.framework.properties.org.osgi.framework.bootdelegation=__redirected,com.singularity.*,com.sun.ccpp,com.sun.ccpp.*,com.sun.crypto.*,com.sun.image.*,com.sun.jmx.*,com.sun.jna,com.sun.jndi.*,com.sun.mail.*,com.sun.management.*,com.sun.media.*,com.sun.msv.*,com.sun.org.*,com.sun.syndication,com.sun.tools.*,com.sun.xml.*,com.yourkit.*,sun.*

https://docs.appdynamics.com/display/PRO42/OSGi+Infrastructure+Configuration#OSGiInfrastructureConfi...

https://web.liferay.com/community/forums/-/message_boards/view_message/46779514

Regards,
Saradhi

0 Karma

手塚_隆之
Path Finder

Thank you Saradhi.Potharaju!

I could not locate liferay-ext.properties or portal-ext.properties .
But , I add your entry in "portal-setup-wizard.properties" .

(Location <LIFERAY INSTALL PTH>/portal-setup-wizard.properties)

LifeRay is up with AppDynamics Java Agent.

0 Karma
Get Updates on the Splunk Community!

Say goodbye to manually analyzing phishing and malware threats with Splunk Attack ...

In today’s evolving threat landscape, we understand you’re constantly bombarded with phishing and malware ...

AppDynamics is now part of Splunk Ideas

Hello Splunkers, We have exciting news for you! AppDynamics has been added to the Splunk Ideas Portal. Which ...

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...