DX Application Performance Management

Expand all | Collapse all

Getting java.lang.ClassNotFoundException: com.wily.introscope.agent.probe.io.ManagedFileInputStream on Wildfly 8.2.0

Jump to Best Answer
  • 1.  Getting java.lang.ClassNotFoundException: com.wily.introscope.agent.probe.io.ManagedFileInputStream on Wildfly 8.2.0

    Posted 06-29-2017 11:06 AM

    Hi

     

    We are trying to configure an APM 10.5.2.15 agent on our Wildfly 8.2.0 running on CentOS 6.4 with JDK 1.8_71 and we are getting the following error:

     

    Exception in thread "main" java.lang.NoClassDefFoundError: com/wily/introscope/agent/probe/io/ManagedFileInputStream
            at java.lang.Class.getDeclaredConstructors0(Native Method)
            at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
            at java.lang.Class.getConstructor0(Class.java:3075)
            at java.lang.Class.getConstructor(Class.java:1825)
            at __redirected.__TransformerFactory.changeDefaultFactory(__TransformerFactory.java:85)
            at __redirected.__JAXPRedirected.changeAll(__JAXPRedirected.java:45)
            at org.jboss.modules.Main.main(Main.java:380)
    Caused by: java.lang.ClassNotFoundException: com.wily.introscope.agent.probe.io.ManagedFileInputStream from [Module "org.apache.xalan:main" from local module loader @73393584 (finder: local module finder @31500940 (roots: /opt/CA/wildfly-idm/modules,/opt/CA/wildfly-idm/modules/system/layers/base))]
            at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213)
            at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459)
            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408)
            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389)
            at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134)
            ... 7 more

     

    We tried to use the following JVM argument:

     

    -javaagent:/opt/CA/VirtualAppliance/custom/wilyagent/wily/Agent.jar -DagentProfile=/opt/CA/VirtualAppliance/custom/wilyagent/wily/core/config/IntroscopeAgent.profile -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager,com.wily,com.wily.* 

     

    but it doesn't work

     

    please help

     

    thanks in advance

     

    Itamar



  • 2.  Re: Getting java.lang.ClassNotFoundException: com.wily.introscope.agent.probe.io.ManagedFileInputStream on Wildfly 8.2.0

    Posted 06-29-2017 11:25 AM

    Which JBoss version are you using?

     

    According to the link below, the options are switched with -Djboss coming before the -javaagent.

     

    JBoss - CA Application Performance Management - 10.5 - CA Technologies Documentation 



  • 3.  Re: Getting java.lang.ClassNotFoundException: com.wily.introscope.agent.probe.io.ManagedFileInputStream on Wildfly 8.2.0
    Best Answer

    Posted 06-29-2017 11:49 AM

    Your profile property is incorrect:

     

    -Dcom.wily.introscope.agentProfile=<path-to-agent>/wily/core/config/IntroscopeAgent.profile



  • 4.  Re: Getting java.lang.ClassNotFoundException: com.wily.introscope.agent.probe.io.ManagedFileInputStream on Wildfly 8.2.0

    Posted 06-29-2017 11:54 AM

    Good catch Hiko, I blew right past that.



  • 5.  Re: Getting java.lang.ClassNotFoundException: com.wily.introscope.agent.probe.io.ManagedFileInputStream on Wildfly 8.2.0

    Posted 06-29-2017 11:57 AM

    That's the new simplified form, it does work in general, this seems like a sort of OSGi issue that would normally be resolved with putting com.wily, com.wily.* in the list of packages..

     

    JBoss - CA Application Performance Management - 10.5 - CA Technologies Documentation 



  • 6.  Re: Getting java.lang.ClassNotFoundException: com.wily.introscope.agent.probe.io.ManagedFileInputStream on Wildfly 8.2.0

    Posted 06-29-2017 12:03 PM

    Certainly would help to see the other startup parameters.



  • 7.  Re: Getting java.lang.ClassNotFoundException: com.wily.introscope.agent.probe.io.ManagedFileInputStream on Wildfly 8.2.0

    Posted 06-29-2017 12:33 PM

    Hi Itamar:

    Were the responses given helpful and resolve your issue. Do you have any followup questions?

    Thanks

    Hal German