Hallo,
I'm trying to load a separate config file (log4j.xml) within a jar-File. It is 
an applet and I want to load a config file located within a package.
I tried it like this:
        URL path2Conf = 
this.getClass().getClassLoader().getResource("de/xyz/log4j/applets/log4j.xml");
        DOMConfigurator.configure(path2Conf);

But the java console of the browser says, the DOMConfigurator wants to load the 
XML from
        C:\Programme\Mozilla Firefox\de\xyz\...\log4j.xml


The same with:
        String path2Conf = System.getProperty("user.dir") + File.separator + 
"de\\hes\\log4j\\applets\\log4j.xml";
        DOMConfigurator.configure(path2Conf);


Has anyone an Idea how to load a config file located within a package?


Thanking you in anticipation,
Gerrit


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org


Reply via email to