JPPF Issue Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Bug report JPPF-496  -  JCA connector: packaging prevents effective logging in JBoss 7 and Wildfly
Posted Mar 24, 2017 - updated Mar 24, 2017
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
     
    Closed
  • Assigned to
     lolo4j
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     lolo4j
  • Owned by
    Not owned by anyone
  • Category
    J2EE
  • Resolution
    RESOLVED
  • Priority
    Normal
  • Reproducability
    Always
  • Severity
    Normal
  • Targetted for
    icon_milestones.png JPPF 5.2.6
Issue description
To have the JPPF logging working in JBoss 7 and Wildfly deployments of the J2EE connector, the dependency on slf4j must be declared in the MANIFEST.MF with the attribute "Dependencies: org.slf4j,org.slf4j.impl". Also the sfa4 and log4j jars should be removed from the JPPF rar file, since the logging api are provided by JBOss as OSGi dependencies.

The J2EE connector build sdhoud be modified to reflect this.

Then, the JBoss/Wildfly logging configuration can be modified, for instance like this:
<subsystem xmlns="urn:jboss:domain:logging:1.0">
    ... existing handlers ...
 
    <!-- JPPF handler -->
    <periodic-rotating-file-handler name="JPPF" autoflush="true">
        <level name="DEBUG"/>
        <formatter>
            <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>
        </formatter>
        <file relative-to="jboss.server.log.dir" path="jppf.log"/>
        <suffix value=".yyyy-MM-dd"/>
    </periodic-rotating-file-handler>
 
    ... existing loggers ...
 
    <!-- JPPF loggers -->
    <logger category="org.jppf" use-parent-handlers="false">
        <level name="INFO"/>
        <handlers>
            <handler name="JPPF"/>
        </handlers>
    </logger>
    <logger category="org.jppf.client">
        <level name="DEBUG"/>
    </logger>
    <logger category="org.jppf.jca">
        <level name="DEBUG"/>
    </logger>
 
    ... root logger (not changed) ...
 
</subsystem>
Steps to reproduce this issue
N/A

#4
Comment posted by
 lolo4j
Mar 24, 10:19
Fixed in: