When configuring an AppDynamics Java Agent on a Tomcat server with Felix framework, some users ran into the following error message:
java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegatorBoot
at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
This error is due to missing the following configurations which apply to the Felix framework.
- Navigate to the
<Tomcat-install-dir>/webapps/ROOT/WEB-INF/etc/config
folder.
- Edit the file
felix-framework.properties
- Search for the property
org.osgi.framework.bootdelegation" property
- Add
com.singularity.*
to this property.
- Example:
-
org.osgi.framework.bootdelegation=sun.*,com.sun.*,com.sun.jndi.ldap,com.yourkit.*,__redirected,com.singularity.*