Hi, What I meant was don't use a file name, use a resource name. This means that the ClassLoader will be used to find the file and that it will be looked for in exactly the same way as the classes. So, if you are using a .war file you put it in the classes directory and reference it as if it were a class. This is what I meant by the etc thing.
In your servlet you can have: DOMConfigurator.configure(getClass().getResource(resourceName)); And if you put the config file and the dtd in the same package (directory) it should all fit together. Let me know how it goes... Alan. -----Original Message----- From: Roland Berger [mailto:[EMAIL PROTECTED]] Sent: 19 November 2001 08:21 To: Alan Pearlman Spencer Subject: AW: log4j configuration via XML Hi Alan What do you mean by ".... etc also..."? How do you reference the file name of the jared config xml file in web.xml? e.g. servlet> <servlet-name>PCDInitServlet</servlet-name> <servlet-class>ch.plenum.pcd.PCDInitServlet</servlet-class> <init-param> <param-name>log4j-init-file</param-name> <param-value>WEB-INF\classes\log4jConfiguration.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> Thank you Roland -----Ursprüngliche Nachricht----- Von: Alan Pearlman Spencer [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 16. November 2001 18:29 An: Log4J Users List Betreff: RE: log4j configuration via XML Hi, I put the dtd in the same directory as the xml file and it works file (as long as it is jared up etc also...) Alan. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>