Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
03-08-2017 10:15 PM
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?
Solved! Go to Solution.
03-08-2017 10:50 PM
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://web.liferay.com/community/forums/-/message_boards/view_message/46779514
Regards,
Saradhi
03-09-2017 06:39 PM
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.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form