2 Replies Latest reply on Feb 8, 2012 10:43 PM by SJ Joshi

    JBoss 7 doesn't seem to play well with agents using JDK

    SJ Joshi Newbie

      Have following in config  file:(using standalone)

      WILY_HOME=/usr/local/jboss7/jboss-as-7.0.2.Final/wily

      WILY_OPTS="-javaagent:/usr/local/jboss7/jboss-as-7.0.2.Final/wily/Agent.jar -Dcom.wily.introscope.agentProfile=/usr/local/jboss7/jboss-as-7.0.2.Final/wily/core/config/IntroscopeAgent.jboss.profile"

       

      Get error:

       

      WARNING: Failed to load the specified logmodule org.jboss.logmanager:main

      Exception in thread "main" java.lang.NoClassDefFoundError: com/wily/introscope/agent/AgentShim

              at org.jboss.as.server.Main.main(Main.java)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at org.jboss.modules.Module.run(Module.java:272)

              at org.jboss.modules.Main.main(Main.java:313)

      Caused by: java.lang.ClassNotFoundException: com.wily.introscope.agent.AgentShim from [Module "org.jboss.as.server:main" from local module loader @7279df82 (roots: /usr/local/jboss7/jboss-as-7.0.2.Final/modules)]

              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)

              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)

              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)

       

      Can anyone help