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
05-07-2014 07:36 AM
Hi,
I try to install appdynamic on Adobe CQ 5.6. In the CQ start script I added
CQ_JVM_OPTS='-server -Xmx4096m -Xms1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Dorg.apache.jackrabbit.core.state.validatehierarchy=true -javaagent:/usr/portal/appdyn/javaagent.jar'
when the start script ran, the error is following
[INFO]: AgentInstallManager - AppDynamics Agent edition [standard]
[INFO]: AgentInstallManager - Full Agent Registration Info Resolver is running
[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using application name [null]
[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using tier name [unknown]
[INFO]: AgentInstallManager - Full Agent Registration Info Resolver using node name [unknown]
[INFO]: AgentInstallManager - Full Agent Registration Info Resolver finished running
[INFO]: AgentInstallManager - Agent runtime directory set to [/usr/portal/appdyn]
[INFO]: AgentInstallManager - Agent node directory set to [unknown]
[WARN]: AgentInstallManager - Invalid Edition [Java Agent]. Keeping current edition [STANDARD]
[INFO]: JavaAgent - Using Java Agent Version [Server Agent v3.8.1.0 GA #2014-04-29_16-18-31 rff34c53c5ceba25909ace785af6d1da418459839 16-3.8.1.next]
[INFO]: JavaAgent - Running IBM Java Agent [No]
Could not start Java Agent because unable to determine Tier Name or Node Name
Where should I find out the "Tier Name or Node Name" in CQ 56 environment?
Thank you very much!
Peng
05-08-2014 04:57 AM
Hi Peng,
The tier and node name details are specific to agent and controller registration, we request you to do the following changes and let us know how it goes:
Option-1:
(update the agent config app, tier and node name details in /usr/portal/appdyn/conf/controller-info.xml for the following xml elements:
<application-name></application-name>
<tier-name></tier-name>
<node-name></node-name>
and save the changes to xml file and restart JVM.
Option-2: Add app, tier and node details using -D jvm args in addition to other JVM args and restart JVM:
Ex:
CQ_JVM_OPTS='-server -Xmx4096m -Xms1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Dorg.apache.jackrabbit.core.state.validatehierarc
hy=true -Dappdynamics.agent.applicationName=MyAdobeCQ5App -Dappdynamics.agent.tierName=CQ5Server -Dappdynamics.agent.nodeName=CQ5Node1 -javaagent:/usr/portal/appdyn/javaagent.jar'
Option-3: pass only jvm name and it will associate by default under MyApp in controller UI:
Ex:
CQ_JVM_OPTS='-server -Xmx4096m -Xms1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Dorg.apache.jackrabbit.core.state.validatehierarc
hy=true -javaagent:/usr/portal/appdyn/javaagent.jar=uniqueID=CQ5Server'
Let us know if that information helps.
Regards,
Arun
05-08-2014 06:53 AM
Hi,
Thank you for your quick reply.
I changed the controller-info.xml by adding the
<application-name>Portal_PPRD</application-name>
<tier-name>Appserver</tier-name>
<node-name>xxxxx</node-name>
Now the previous error gone, from the command line console the java agent start. But now the cq server is not working normally, the error.log is like following :
“07.05.2014 13:05:00.369 *INFO* [192.168.96.83 [1399482300368] POST /bin/receive?sling:authRequestLogin=1 HTTP/1.1] servletengine Servlet threw exception: java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegator
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
07.05.2014 13:06:00.409 *INFO* [192.168.96.83 [1399482360408] POST /bin/receive?sling:authRequestLogin=1 HTTP/1.1] servletengine Servlet threw exception: java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegator
It looks like classloader is not loading com.singuIarity.* class correctly. I try to add
CQ_JVM_OPTS='-server -Xmx4096m -Xms1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Dorg.apache.jackrabbit.core.state.validatehierarchy=true -javaagent:/usr/portal/appdyn/javaagent.jar -XX:-UseSplitVerifier'
and in the sling.properties:
org.osgi.framework.bootdelegation=com.singularity.*, com.yourkit.*, ${org.apache.sling.launcher.bootdelegation}
It still not working. Could you help me on this? Thank you very much!
Peng
05-08-2014 07:11 AM - edited 05-08-2014 07:13 AM
Hi Peng,
Can you try adding -D jvm arg in addition to -javaagent and see how it goes after server restart:
-Dorg.osgi.framework.bootdelegation=com.singularity,com.singularity.*,com.appdynamics.*, com.appdynamics,com.yourkit.*, ${org.apache.sling.launcher.bootdelegation}
You might find this doc helpful: http://docs.appdynamics.com/display/PRO14S/OSGi+Infrastructure+Configuration
Regards,
Arun
05-08-2014 08:46 AM
Hi,
add -D as what you said, and start the script. The same error popups in the error.log
08.05.2014 11:44:37.757 *INFO* [192.168.96.96 [1399563877756] GET /favicon.ico HTTP/1.1] servletengine Servlet threw exception: java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegator
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.java:250)
at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:321)
at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:340)
at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:383)
at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:360)
at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644)
at java.lang.Thread.run(Thread.java:679)
08.05.2014 11:44:38.089 *INFO* [192.168.96.96 [1399563878088] GET /favicon.ico HTTP/1.1] servletengine Servlet threw exception: java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegator
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.java:250)
at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:321)
at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:340)
at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:383)
at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:360)
at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644)
at java.lang.Thread.run(Thread.java:679)
05-08-2014 11:19 PM
Hi,
Can you please send the osgi related config files(if possible send the zipped version of parent folder where osgi sling related config files exists) and the latest agent logs and the startup script files where -D jvm args are added?
Regards,
Arun
05-12-2014 07:00 AM
Hi,
I uploaded three files.
1. cqconf.zip, which is the conf directory of our cq56 environment
2. error.log, which is output of start scripting began
3. start , which is our start script
Please let me know if you need more information. Thanks in advance.
05-13-2014 07:09 AM
Hi,
We need your help in figuring out the issue, we see earlier adding com.singularity package have resolved the issue, but we suspect here we might not be adding in right osgi config file:
- Can you modify the entry in sling.properties as follows and restart machine if cq5 server is installed as service and send us the agent logs we would like to see whether this new jvm args are picking up fine or not?
org.osgi.framework.bootdelegation=com.yourkit.*, ${org.apache.sling.launcher.bootdelegation},com.singularity.*,com.singularity.,com.appdynamics.*,com.appdynamics.
- Can you also check if there are other wrapper and any other OSGI extensions are used by the server , apart from sling extension, check if the following logs have the relevant extension and wrapper details:
===============================
Caused by: java.lang.ClassNotFoundException: com.singularity.ee.agent.appagent.entrypoint.bciengine.FastMethodInterceptorDelegator not found by org.apache.sling.commons.scheduler [132]
Caused by: java.lang.ClassNotFoundException: com.singularity.ee.agent.appagent.entrypoint.bciengine.FastMethodInterceptorDelegator not found by com.day.cq.cq-opensocial [267]
Caused by: java.lang.ClassNotFoundException: com.singularity.ee.agent.appagent.entrypoint.bciengine.FastMethodInterceptorDelegator not found by com.day.cq.cq-opensocial [267]
Caused by: java.lang.ClassNotFoundException: com.singularity.ee.agent.appagent.entrypoint.bciengine.FastMethodInterceptorDelegator not found by com.day.commons.osgi.wrapper.commons-httpclient [51]
=================================================
Or please provide the zipped version of config files(only sh, .properties or conf files) folder in server directory we can check ourselves what are the other osgi extensions in use, we might need to add com.singularity.* packages in other osgi config files as well.
Keep us posted the requested information.
Regards,
Arun
06-22-2014 10:01 PM
I just verified that this does indeed work
org.osgi.framework.bootdelegation=com.singularity,com.singularity.*,com.appdynamics.*, com.appdynamics,com.yourkit.*, ${org.apache.sling.launcher.bootdelegation}
and the correct file to place it in is
{install_dir}/crx-quickstart/launchpad/sling.properties
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form