2 Replies Latest reply on Sep 12, 2004 2:06 AM by Scott Stark

    Log4J LogFactor LF5 Cannot Load Configuration with 3.2.5

    foopydog Newbie

      I configure log4j.xml to use the LogFactor Appender, so I get a nice color-coded log file viewer.

      LF5 is not able to load its configuration file: lf5_configuration.xml
      Works OK with Jboss 3.2.3 and fails with 3.2.5.

      LF5 does this:
      DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
      DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
      Document doc = docBuilder.parse(file);

      parse(file) fails with
      java.io.FileNotFoundException: C:\Documents%20and%20Settings\jpianezze\lf5\lf5_configuration.xml

      It gets as far as instantiating org.xml.sax.InputSource(filename)
      The file name is good, and the LF5 code looks ok.
      Log4j is version is 1.2.8, and newer version exists.

      It appears that the newer XML parser implementation is bad.
      The offending libraries in jboss are:
      * xml-apis.jar
      * xercesImpl.jar
      The jar file sizes are different, and the manifest shows newer versions of various components.

      Any ideas?
      John Pianezze