1 Reply Latest reply on Jan 29, 2018 3:45 PM by Dennis Newberry

    Adding adops-agent.jar to the startup options generates errors in the application

    Jan Sierens
      Share This:

      Hi,

       

      I try to add adops-agent.jar to the SmatITMyIT service. The agent seems to run, but I get 404 errors when trying to connect to the application.

       

      The catalina.log show the following errors:

      26-Jan-2018 10:48:36.702 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file

      26-Jan-2018 10:48:36.703 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/ux] startup failed due to previous errors

      26-Jan-2018 10:48:36.739 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ux] appears to have started a thread named [logback-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.park(Unknown Source)

      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)

      java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)

      java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      java.lang.Thread.run(Unknown Source)

       

      And local.log:

      26-Jan-2018 10:46:29.184 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContext

      26-Jan-2018 10:48:36.686 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

      java.lang.LinkageError: loader constraint violation: loader (instance of org/springframework/instrument/classloading/tomcat/TomcatInstrumentableClassLoader) previously initiated loading for a different type with name "com/bmc/bsm/myit/vo/activitystream/ActivityStream"

      at java.lang.ClassLoader.defineClass1(Native Method)

      at java.lang.ClassLoader.defineClass(Unknown Source)

      at java.security.SecureClassLoader.defineClass(Unknown Source)

      at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2472)

      at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:854)

      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1274)

      at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1157)

      at java.lang.Class.getDeclaredMethods0(Native Method)

      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)

      at java.lang.Class.getDeclaredMethods(Unknown Source)

      at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:612)

      at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:524)

      at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:510)

      at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:243)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1074)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1047)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)

      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)

      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)

      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)

      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)

      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)

      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:751)

      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861)

      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:535)

      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)

      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)

      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)

      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)

      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)

      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)

      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)

      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)

      at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:586)

      at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1750)

      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

      at java.util.concurrent.FutureTask.run(Unknown Source)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)

       

      Any clue where to look?