cancel
Showing results for 
Search instead for 
Did you mean: 

Logging doesn't work for the Activiti Explorer deploed on JBoss

alper
Champ in-the-making
Champ in-the-making
Hi,
I successfully deployed explorer on Jboss EAP, and also I made my class implementing JavaDelegate. It works, but no logs are written into the server.log, neither from my class that implements JavaDelegate nor from the activiti-explorer.war.
I checked the file /opt/jboss/standalone/deployments/activiti-explorer.war/WEB-INF/classes/log4j.properties
Its content is:

log4j.rootLogger=INFO, CA

# ConsoleAppender
log4j.appender.CA=org.apache.log4j.ConsoleAppender
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
log4j.appender.CA.layout.ConversionPattern= %d{hh:mm:ss,SSS} [%t] %-5p %c %x - %m%n

What's wrong and how to fix it?
Thank you.
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
- Is your global jboss logging configured correctly?
- Do you have log4j.jar in web-inf lib? Otherwise it might revert to the default jboss logging

alper
Champ in-the-making
Champ in-the-making
Global Jboss logging works perfectly for all other apps. I even tried to change log level to "Trace", but of no avail.
log4j-1.2.17.jar is in the jboss/standalone/deployments/activiti-explorer.war/WEB-INF/lib  , as well as slf4j-log4j12-1.7.6.jar and slf4j-api-1.7.6.jar

jbarrez
Star Contributor
Star Contributor
You need to exclude the logging subsystem in a deployment-structure.xml:

<code>
<exclude-subsystems>
    <subsystem name="logging" />
  </exclude-subsystems>
</code>