Re: quickstart and Logging
Jason Lenhart <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <23822919.1148865257391.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
Everything works perfect in Tomcat. Not in Jetty quickstart - so I searched around for something over-riding the file - did not find anything - maybe there is something in the Jetty implementation itself.
So then I add an application listener on startup I do the following:
ClassLoader loader = Thread.currentThread().getContextClassLoader();
URL url = loader.getResource("log4j.properties");
String fullPath = url.getPath();
PropertyConfigurator.configure(fullPath);
And all works in Tomcat and in Jetty quickstart - I guess something in Jetty was over riding it.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=32445&messageID=63181#63181
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]