Enable logging for JBOSS class loading

Hareesh Ram picture Hareesh Ram · Jul 14, 2011 · Viewed 15.6k times · Source

How do we enable logging to debug class loading issues in JBoss 5.x. If it is under JBOSS_HOME/server/xxxxx/conf to configure jboss-log4j.xml, should we need to add any piece of code or is there any other way to enable tracing.

Answer

Lukasz Stelmach picture Lukasz Stelmach · Jul 14, 2011

You can turn on logging in two places:

  1. In JVM - you should just pass the extra switch -verbose:class. You can put these switch in your run.conf file in JAVA_OPTS variable definition.

  2. Turn logging in jboss-log4j.xml file. You should place in the file such definition:

    <category name="org.jboss.classloader">
       <priority value="DEBUG"/>
    </category>