JBoss6 Class Load Logs

We are having problems loading the class when deploying the application to JBoss AS 6.0.0 Final. Is there any log that can be included in JBoss to see when classes are loading and which class is loader?

+3
source share
2 answers

I think you can try to control the classes in the package org.jboss.classloader. Just add these lines to your jboss-logging.xmlfile (you can find this file in the directory deploy):

   <periodic-rotating-file-handler
         file-name="${jboss.server.log.dir}/cl.log"
         name="CL"
         autoflush="true"
         append="true"
         suffix=".yyyy-MM-dd"> 

      <error-manager>
         <only-once/>
      </error-manager>

      <formatter>
         <pattern-formatter pattern="%d %-5p [%c] (%t) %s%E%n"/>
      </formatter>
   </periodic-rotating-file-handler>

   <logger category="org.jboss.classloader">
        <level name="TRACE"/>
      <handlers>
         <handler-ref name="CL"/>
      </handlers>
   </logger>

After that, you can find some information about loading classes in a file log/cl.log.

More information can be found in this article: EnableClassloaderLogging

+2
source

JVM -verbose:class. JBoss run.sh:

JAVA_OPTS="$JAVA_OPTS -verbose:class

... Windows (run.bat):

set "JAVA_OPTS=%JAVA_OPTS% -verbose:class"
+4

Source: https://habr.com/ru/post/1795252/


All Articles