Re: How to use log4j (log4j.xml) and Maven and Junit??

2007-02-24 Thread gerold kathan
hi - i have exactly the same issue: * i did what you mentioned (1-3) * yes it copies the log4j.xml to the right place under src/test/ * BUT the testrunner the complains that it cannot find the file under the projects root directory (where also the pom.xml sits) log4j:ERROR Could not parse file

Re: How to use log4j (log4j.xml) and Maven and Junit??

2007-02-24 Thread Jacob Kjome
At 07:29 AM 2/24/2007, you wrote: hi - i have exactly the same issue: * i did what you mentioned (1-3) * yes it copies the log4j.xml to the right place under src/test/ * BUT the testrunner the complains that it cannot find the file under the projects root directory (where also the pom.xml sits)

Re: How to use log4j (log4j.xml) and Maven and Junit??

2007-01-24 Thread Jacob Kjome
Try adding something like the following to your log4j.xml, after the existing logger entry... root level value=warn/ appender-ref ref=DBUNIT.DEBUG.LOG/ /root You can always create a separate appender for loggers other than com.company.sql instead of using the DBUNIT.DEBUG.LOG appender for

Re: How to use log4j (log4j.xml) and Maven and Junit??

2007-01-23 Thread James Stauffer
Try putting the log4j.xml in the working directory and not providing a path (just the filename). Also run with -Dlog4j.debug to see what log4j finds. On 1/23/07, Lisa [EMAIL PROTECTED] wrote: I have written some JUnit tests and put them in the standard layout for test cases under Maven. The