AppD Archive

JBoss - 6.0 fails to start with AppDynamicsLite Java

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I am trying to use the Java variant of AppDynamicsLite to monitor a JBoss - 6.0 instance.

However the JBoss server fails to start with the following error..
20:30:30,934 ERROR [AbstractKernelController] Error installing to PreInstall: name=JBossStdioSystemOutStream state=Not Installed: java.lang.LinkageError: loader (instance of java/net/URLClassLoader): attempted duplicate class definition for name: "org/jboss/vfs/VFSUtils"
at java.lang.ClassLoader.defineClass1(Native Method) [:1.7.0_17]
at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [:1.7.0_17]


I am using the following version of AppDynamicsLite,
[main] 23 Jun 2013 20:30:27,118 INFO JavaAgent - Using Agent Version [Server Agent Lite v3.3.4.0 RC Build Date 2013-03-20 20:23]

The following JAVA_OPTS is in use,
set "JAVA_OPTS=%JAVA_OPTS% -XX:-UseSplitVerifier -javaagent:C:\\AppDynamicsLite\\java\\javaagent.jar -Djboss.modules.system.pkgs=org.jboss.byteman,com.singularity"


I have attached the logs from the viewer, agent and Jboss server with this thread

Can you please help?

Thanks
Venkat

0 Karma

Arun_Dasetty
Super Champion

Hi Venkatramanan,

Thanks for writing in to appsphere community forum. The error looks like a race condition caused by an attempt to load the same class twice. Please let us know if there is any disconnect.

Can you please configure jboss server as follows, also the following -D JVM option -Dappdynamics.bciengine.class.lookahead=!* in addition to the following suggestions:

1. Open the server run.bat file, located at <jboss_version_install_dir>/bin.

2. Add the following Java environment variables to the server start script.
JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
JAVA_ARGS=%JAVA_OPTS% -Dorg.jboss.logging.Logger.pluginClass=org.jboss.logging.logmanager.LoggerPluginImpl
JBOSS_CLASSPATH=<path_to>"jboss-logmanager.jar"

3. Add the following javaagent argument to the server start script.
set JAVA_OPTS=%JAVA_OPTS% -javaagent:"E:\AppDynamicsLite\AppServerAgentLite\javaagent.jar"

4. Restart the application server. The application server must be restarted for the changes to take effect.

If you still see the issue. Please provide the run.bat and  JBoss server console log with error stacktrace.

Let us know if you still see the issue.

Thanks,

Arun

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hello Arun,

Thanks for your response.

Unfortunately JBoss still fails to start with the following error,

12:49:31,479 ERROR [AbstractKernelController] Error installing to PreInstall: name=JBossStdioSystemOutStream state=Not Installed: java.lang.LinkageError: loader (instance of java/net/URLClassLoader): attempted duplicate class definition for name: "org/jboss/vfs/VFSUtils"


I have attached the logs and files you have asked for, please see the attachment

Thanks
Venkat

0 Karma

Arun_Dasetty
Super Champion

Hi Venkatramanan,

Can you please try the following:
- remove -javaagnet entry from run.conf.bat and add -javaagent entry in rum.bat :comment "rem Setup the java endorsed dirs" as follows:
set JAVA_OPTS=%JAVA_OPTS%  -Dappdynamics.bciengine.class.lookahead=!*  -javaagent:"<agent_dir>\javaagent.jar"

rem Setup the java endorsed dirs
set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed

let us know if that helps, Will it be possible for you try the same with AD Pro agent with suggestions steps and let us know if that makes any difference.

Thanks,

Arun

0 Karma
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...