0 Replies Latest reply on Jan 16, 2003 8:02 AM by snymo

    Log4j - Console Stream is Looping (JBoss 3.0.4)

    snymo

      Hi,

      I get the following error message when I use log4j from my stateless session bean:

      14:07:48,280 INFO [STDOUT] 17245 [SocketListener-0] INFO com.brainysoftware.tassie.ejb.SearchBean Search - Entering application.
      ERROR: invalid console appender config detected, console stream is looping

      ///////////The way I log from my EJB////////////
      import org.apache.log4j.Logger;
      import org.apache.log4j.BasicConfigurator;


      public class SearchBean implements SessionBean {

      private static final Logger log = Logger.getLogger(SearchBean.class);

      private Connection getConnection() {
      Connection connection = null;


      BasicConfigurator.configure();

      log.info("Entering Search Bean.");

      ///////////The way I log from my EJB////////////

      ///////////////The log4j.xml//////////////
      <!-- ============================== -->
      <!-- Append messages to the console -->
      <!-- ============================== -->






      <!-- The default pattern: Date Priority [Category] Message\n -->



      ///////////////The log4j.xml//////////////

      I have tried to turn of the Quick Edit mode in the console.

      OS: MS Win 2000 Professional, SP2.

      Is this a bug, or am I doing something wrong?

      Sverre