1 Reply Latest reply on Mar 13, 2004 5:11 PM by Scott Stark

    Tracing class loading

    Jack Frosch Newbie

      I'm getting a "loader constraints violated" error while loading a Struts class.

      I know these errors are usually because of multiple copies of the same class being on the classpath. I've looked for duplicate JAR files in the the /WEB-INF/lib, /server/lib directory, and /lib directory and eliminated all that I found.

      I searched through the commercial docs (All Docs subscription) for some help on how I can trace class loading, but didn't find what I was looking for.

      Would someone kindly give me a hint where to go to enable classloader tracing?

      TIA.

      Jack

        • 1. Re: Tracing class loading
          Scott Stark Master

          From listing 2.9, page 66 of the admin devl guide:

          <appender name="UCL" class="org.apache.log4j.FileAppender">
           <param name="File" value="${jboss.server.home.dir}/log/ucl.log"/>
           <param name="Append" value="false"/>
           <layout class="org.apache.log4j.PatternLayout">
           <param name="ConversionPattern" value="[%r,%c{1},%t] %m%n"/>
           </layout>
          </appender>
          <category name="org.jboss.mx.loading" additivity="false">
           <priority value="TRACE" class="org.jboss.logging.XLevel"/>
           <appender-ref ref="UCL"/>
          </category>