Hi,

>I do a similar thing as Yoav suggests.
>
>String systemId =
getServletContext().getRealPath("/conf/logconfig.xml");
>DOMConfigurator.configureAndWatch(systemId, logConfigWatch);

Note a key difference between my suggestion and the above: the above
will not work if you're deploying out of a .war file.  getRealPath() for
anything returns null if inside a .war.

Thankfully you should be able to substitute getResource() for
getRealPath() as the configurator api supports the configure(URL url)
methods.

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to