Hi,
I am working on an application running with Jboss and I use CR4E 2.0.
I have log4j configured and working correctly on jboss but when I open a report with reportClientDocument.open(...), there is no more log in console or in the log file.
Even system.out.println writes nothing.
Here the log4j.xml file I use:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.home.dir}/log/server.log"/>
<param name="Append" value="false"/>
<param name="Threshold" value="DEBUG"/>
<param name="DatePattern" value="'.'yyyy-MM-dd'.log'"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="Target" value="System.out"/>
<param name="Threshold" value="INFO"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
</layout>
</appender>
<category name="org.apache">
<priority value="INFO"/>
</category>
<category name="org.jgroups">
<priority value="WARN"/>
</category>
<category name="org.jboss.axis">
<priority value="INFO"/>
</category>
<category name="org.jboss.management">
<priority value="INFO"/>
</category>
<root>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</root>
</log4j:configuration>I have tried to add the following code to the xml file but with no result.
<category name="com.crystaldecisions.reports">
<priority value="ERROR"/>
</category>
<category name="com.crystaldecisions.threedg">
<priority value="ERROR"/>
</category>
<category name="com.crystaldecisions.common">
<priority value="ERROR"/>
</category>
<category name="com.businessobjects.reports">
<priority value="ERROR"/>
</category>
<category name="com.crystaldecisions.reports.formulas">
<priority value="ERROR"/>
</category>How can I configure log4j to keep the jboss logging?
Thanks.
Request clarification before answering.
Hi,
I'am using jboss 4.0.3sp1.
Also
By the way it seems there is somewhere an unclosed connection.
I forgot to close the ReportClientDocument.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For CR4E 2.0 ... only JBoss 4.2.x and 5.0 are supported.
Please chek this link
Thanks,
Tej
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.