3 Replies Latest reply on Dec 3, 2008 10:09 AM by jaikiran pai

    Log4j problem

    sri vass Newbie

      hi,

      Iam using Jboss 4.0.2 App server and using EJB 2. I have written a simple EJB and used log 4j for debugging. I added log4j-1.2.11.jar in the build path. the log4j.xml is as follows

      <log4j:configuration>
      <appender name="stdout" class="org.apache.log4j.DailyRollingFileAppender">
      <param name="File" value="c:/Log4jTestlog.log" />
      <param name="DatePattern" value="'.'yyyy-MM-dd" />
      <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d %p %t %c - %m%n"/>
      </layout>
      </appender>
      <root>
      <priority value="debug"></priority>
      <appender-ref ref="stdout"/>
      </root>
      </log4j:configuration>

      whenever i run the ejb and made a call from a stand alone client, the application works very fine. but logging is not happening. even the file (Log4jTestlog.log) is not getting created. I dont know why.

      But if i use the same log4j.xml for a console application it works very fine. whether any special configurations to be done for Jboss?

      Please help me to solve this.