2 Replies Latest reply on Jul 10, 2005 8:13 PM by shaileshjboss

    How to use commons-logging with Jboss???

    shaileshjboss

      My application war uses commons-logging and works fine with Tomcat. With JBoss 4.0.0 RC2 it does not work. I have made jboss settings as given on wiki page, http://wiki.jboss.org/wiki/Wiki.jsp?page=Logging under heading
      "Using your own log4j.xml file - class loader scoping"

      This works fine as long as I use log4j's
      Logger log = Logger.getLogger(My.class);
      With this log file is properly created.

      But if I use following commons-logging statement,
      Log log = LogFactory.getLog(My.class)
      then it does not work. No error is given on jboss console, but also no log file is created.

      Any Idea why it does not work? Am I have to do any additional settting to configure jboss for commons-logging??

      Please help and Thanks in Advance

        • 1. Re: How to use commons-logging with Jboss???
          darranl

          I am interested to know why new users seem to repeadedly post their first question a number of times in the same forum, sometimes in reply to their original question.

          What happened to make you post the same question three times, once in reply to yourself?

          • 2. Re: How to use commons-logging with Jboss???
            shaileshjboss

            Dear Sir

            I had no intension to put my question thrice. It happen by mistake and since I was new to this site. My intension was to edit original text that I posted to make it more clear, but eventually I ended with what that happen.

            Anyways I am sorry for inconvinience that cause to you unknowingly.

            Also I was very happy that someone replied and that I got solution to my problem, but my bad luck I saw your reply.

            Anyway I will wait for solution to my problem, I am more serious on it.

            Thanks



            "darranl" wrote:
            I am interested to know why new users seem to repeadedly post their first question a number of times in the same forum, sometimes in reply to their original question.

            What happened to make you post the same question three times, once in reply to yourself?