When a problem occurs it may be worth to set some debugging traces in the JOnAS server. It is not easy to know which logger to set to obtain the pertinent traces that may help the debbugging process.
The trace.properties
file contains several
commented lines prepared to set loggers in DEBUG level.
Usually the name of loggers are related to the java package name in which it is used.
To set debug traces of the EJB2 container uncomment one or more lines related to logger org.ow2.jonas.lib.ejb2 for example:
logger.org.ow2.jonas.lib.ejb21.interp.level DEBUG logger.org.ow2.jonas.lib.ejb21.synchro.level DEBUG logger.org.ow2.jonas.lib.ejb21.tx.level DEBUG
To set traces related to resource adapters:
logger.org.ow2.jonas.jca.level DEBUG logger.org.ow2.jonas.jca.pool.level DEBUG
To set traces into the CAROL library::
logger.org.ow2.carol.level DEBUG
To set traces in JORAM:
logger.fr.dyade.aaa.level DEBUG (for the MOM) # for the JORAM resource adapter: logger.org.objectweb.joram.client.jms.Client.level DEBUG logger.org.objectweb.joram.client.connector.Adapter.level DEBUG
To set traces in Tomcat:
for all web application :
logger.org.apache.catalina.core.ContainerBase.[jonas].[localhost].level DEBUG
jonas is the attribute name of the element Engine in $JONAS_BASE/conf/tomcat6-server.xml
localhost is the attribute name of the element Host in $JONAS_BASE/conf/tomcat6-server.xml
for a particular web application :
logger.org.apache.catalina.core.containerBase.[jonas].[localhost].[jonasAdmin].level DEBUG
jonas is the attribute name of the element Engine in $JONAS_BASE/conf/tomcat6-server.xml
localhost is the attribute name of the element host in $JONAS_BASE/conf/tomcat6-server.xml
jonasAdmin is the name of the web application
Note | |
---|---|
the attributes debug in elements of $JONAS_BASE/conf/tomcat6-server.xml are not used anymore in Tomcat. |
There are a lot of traces possible for management, discovery, jtm, clustering, mail, ear,...