Barracuda: Patch for Log4jInit servlet
Stefan Armbruster <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, during the last days, I had had some trouble configuring logging in a Barracuda app when deploying as .war file. Deployment with the install (not using .war) command was fine. In tomcat's logs I could just find a message like "now appenders found for org.enhydra.barracuda.plankton.data.ObjectRepositoryAssembler" but no further reason for this. I looked at Log4jInit.java and changed the code according to the attached patch. Now it wrote a message like "log4j.dtd" not found to catalina.log. So I removed the Doctype statement in log4j.xml and deployed the .war file, logging was fine then. Regards, Stefan
Log4jInit.java.patch
(text/plain, 743 B)
Index: Log4jInit.java
===================================================================
RCS file: /u/cvs/Projects/EnhydraOrg/toolsTech/Barracuda/src/org/enhydra/barracuda/webapp/log4j/Log4jInit.java,v
retrieving revision 1.2
diff -r1.2 Log4jInit.java
200,201c200,205
< catch (SAXException se) {}
< catch (IOException ioe) {}
---
> //catch (SAXException se) {}
> //catch (IOException ioe) {}
> // send out all exception during parsing to tomcat's logging mechanism
> catch (Exception ex) {
> LogLog.error(ex.getMessage());
> }