cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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.

0 Likes
View Entire Topic
Former Member
0 Likes

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.

Former Member
0 Likes

For CR4E 2.0 ... only JBoss 4.2.x and 5.0 are supported.

Please chek this link

https://webservice.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20c69834-cfc4-2b10-da81-9...

Thanks,

Tej

Former Member
0 Likes

What about tomcat?. I'm having the same problem, when my code reaches the CR classes all log4j messages are lost. I'm using Tomcat 5.5.