cancel
Showing results for 
Search instead for 
Did you mean: 

No Logs could be found with Activiti 5.16.1 on JBoss WildFly

sankarts
Champ in-the-making
Champ in-the-making
I've deployed Activiti 5.16.1 archives (both activiti-explorer.war & activiti-rest.war) on JBoss WildFly 8.1.0 server.

My Activiti Project includes Activity Diagram, which has Java Service Task.

The "Java Service Task" is realized using MyServiceTask class which implements JavaDelegate.

public void execute(DelegateExecution execution) throws Exception {
      logger.info("Inside MyServiceTask::execute() - About 2 perform service task");
               // logic goes here to generate the file
}

When I start this Process using Activiti Explorer, this method is called (cross verfied as the file is generated), but I couldn't find this logging statement in WildFly server logs.

MyServiceTask uses log4j for logging. In my POM file, slf4j-log4j12 with version 1.7.7 is present. Details as below.
        <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
      <version>1.7.7</version>
   </dependency>

Am I missing something? Why logs could not be found?
2 REPLIES 2

sankarts
Champ in-the-making
Champ in-the-making
Though it seems to be a trivial issue, this blocks me from performing "debugging".

Any idea on what could be wrong?

jbarrez
Star Contributor
Star Contributor
JBoss has a specific way of setting up logging, always a bit of puzzling.
Activiti uses slf4j … so in theory it should work since youve got log4j on their to bridge it.

I assume you already tried with a regular System.out.println() to check if the class is actually executed?