0 Replies Latest reply on Oct 24, 2002 4:12 AM by eprag

    log4j.properties file location  JBOSS 3.0.2/Jetty

    eprag

      Hello,
      I have a beginner's problem.JBOSS 3.0.2/Jetty.
      In servlet I'am trying to:
      PropertyConfigurator.configure("log4j.properties");
      and have error. I tried
      URL url=new URL("http","localhost","fdn2/log4j.properties") as well;
      PropertyConfigurator.configure(url);
      This file is situated in ear/war/WEB-INF/classes where all my classes are.I tried to put file in others locations but with the same result.
      09:24:31,258 ERROR [STDERR] log4j:ERROR Could not read configuration file [log4j
      .properties].
      09:24:31,258 ERROR [STDERR] java.io.FileNotFoundException: log4j.properties (The
      system cannot find the file specified)...............
      Here is the output.Can anyone teach me how to locate log4j property file on JBOSS ?
      Thanks