1 Reply Latest reply on Feb 3, 2009 6:23 AM by jaikiran

    Log4j

      Hi

      I m working on JBoss 4.2.2. And i have made a custom log4j.xml file.
      I want to deploy it with my application.The problemis my application have
      only have one jar file containg all class files and ejb file and there is no classes folder.So where should i put my costom log4j fille is deployed with my application. I am giving the code for its configuration.

      public class LoginCheck {
      
      
      static {
       ClassLoader classLoader = Thread.currentThread( ).getContextClassLoader( );
       URL url =classLoader.getResource("djboss-log4j.xml");
      
       DOMConfigurator.configure(url);
       }
      
      


      I will be very helpful for me.
      Thanks And Regards
      Divya Garg