Appdynamics -

hi,

We are working on configuring Appdynamics monitoring tool in our jboss servers. After configuring, upon restart Appian fails to restart with these below errors in server.log

We were asked with this particular question from appdynamics ""If we need to add boot delegation for Appian, where should it be added?"

Does anyone know answer for my question about Boot delegation.

Also it will be great if we get inputs someone who configured Appdynamics successfully 

 

ERROR: Bundle org.springframework.osgi.extender [13] Error starting file:/hosting/appian/ear/suite.ear/web.war/WEB-INF/plugin-caches/osgi-cache/framework-bundles/spring-osgi-extender-1.2.1.jar (org.osgi.framework.BundleException: Activator start error in bundle org.springframework.osgi.extender [13].) 2018-10-29 21:18:12,665 GMT ERROR [stderr] (FelixStartLevel) java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegatorBoot 2018-10-29 21:18:12,665 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java) 2018-10-29 21:18:12,665 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:573) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1347) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:358) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:327) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:424) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.invokeBeanFactoryPostProcessors(AbstractDelegatedExecutionApplicationContext.java:395) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$301(AbstractDelegatedExecutionApplicationContext.java:69) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$1.run(AbstractDelegatedExecutionApplicationContext.java:186) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.normalRefresh(AbstractDelegatedExecutionApplicationContext.java:182) 2018-10-29 21:18:12,666 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$NoDependenciesWaitRefreshExecutor.refresh(AbstractDelegatedExecutionApplicationContext.java:89) 2018-10-29 21:18:12,667 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) 2018-10-29 21:18:12,667 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.extender.internal.support.ExtenderConfiguration.<init>(ExtenderConfiguration.java:169) 2018-10-29 21:18:12,667 GMT ERROR [stderr] (FelixStartLevel) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start(ContextLoaderListener.java:378) 2018-10-29 21:18:12,667 GMT ERROR [stderr] (FelixStartLevel) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:645) 2018-10-29 21:18:12,667 GMT ERROR [stderr] (FelixStartLevel) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977) 2018-10-29 21:18:12,667 GMT ERROR [stderr] (FelixStartLevel) at org.apache.felix.framework.Felix.startBundle(Felix.java:1895) 2018-10-29 21:18:12,667 GMT ERROR [stderr] (FelixStartLevel) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191) 2018-10-29 21:18:12,667 GMT ERROR [stderr] (FelixStartLevel) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295) 2018-10-29 21:18:12,667 GMT ERROR [stderr] (FelixStartLevel) at java.lang.Thread.run(Thread.java:748) 2018-10-29 21:18:12,668 GMT ERROR [stderr] (FelixStartLevel) Caused by: java.lang.ClassNotFoundException: com.singularity.ee.agent.appagent.entrypoint.bciengine.FastMethodInterceptorDelegatorBoot not found by org.apache.servicemix.bundles.spring-beans [6] 2018-10-29 21:18:12,668 GMT ERROR [stderr] (FelixStartLevel) at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) 2018-10-29 21:18:12,668 GMT ERROR [stderr] (FelixStartLevel) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) 2018-10-29 21:18:12,668 GMT ERROR [stderr] (FelixStartLevel) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) 2018-10-29 21:18:12,668 GMT ERROR [stderr] (FelixStartLevel) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 2018-10-29 21:18:12,668 GMT ERROR [stderr] (FelixStartLevel) ... 22 more

  Discussion posts and replies are publicly visible

  • Hi,

    You need to add following property to custom.properties file of Appian installation and restart Jboss. The above error should go away.

    ## for Appdynamics to setup java agent
    conf.plugins.internal.EXTRA_BOOT_DELEGATION_PKGS=com.singularity.*

    Thanks,
    Mangesh
  • Thanks Mangesh for taking time on this.
    We already tried adding that in custom.properties, it didn't work either.

    Thanks,
    Pavithra
  • Hi Pavithra,

    I was able to configure appdynamics java agent for appian successfully with following execution steps and it's still working as expected.

    AppDynamics: Instrumenting Java agent in JBoss
    Appdynamics KB article - docs.appdynamics.com/.../JBoss and Wildfly Startup Settings

    Steps:
    1. Copy and download java agent package
    File name: AppServerAgent-4.4.2.22394.zip (This unpacks and has the java agent and other dependent files)

    2. Create dir AppD inside /apps (directory structure may vary)
    Login to server
    $ cd /apps
    $ mkdir AppD

    3. Unpack AppServerAgent-4.4.2.22394.zip into /apps/AppD directory
    $ unzip AppServerAgent-4.4.2.22394.zip -d /apps/AppD

    4. Locate, edit and save file controller-info.xml
    • Goto /apps/AppD/conf
    • Open controller-info.xml (vi controller-info.xml)
    • Configure for following parameter with values (values will varies as per your controller)

    controller-host --> your appdynamics controller
    controller-port --> 443
    application-name --> e.g. Your Appian Dev/QA app name
    tier-name --> e.g. tier-name
    node-name --> e.g. node-name
    account-name --> appdynamics account name
    account-access-key --> appdynamics account access key
    force-agent-registration --> true

    5. Configure JBoss startup scripts
    (Refer link docs.appdynamics.com/.../JBoss and Wildfly Startup Settings)
    • Stop Appian
    • Locate and edit standalone.sh (cd $JBOSS_HOME/bin/standalone.sh). Add following line to standalone.sh
    For e.g.

    export JAVA_OPTS="$JAVA_OPTS -javaagent:/apps/AppD/javaagent.jar”

    6. Add following property at the end to Appian’s custom.properties file
    $ vi $APPIAN_HOME/ear/suite.ear/conf/custom.properties
    conf.plugins.internal.EXTRA_BOOT_DELEGATION_PKGS=com.singularity.*

    7. Start Appian engines, start search server and then start JBoss server

    Following message should appear on JBoss CLI while startup and JBoss should come up entirely.

    Started AppDynamics Java Agent Successfully.

    I hope it helps you to resolve the error and make it working.

    Thanks,
    Mangesh