Happy New Year! Most people have returned to the office.
I can't seem to find an answer as to where to place log4j.properties in an EAR file. Most sites I've read say to place it in WEB-INF/classes; I'm sure that will work fine for a WAR, but not so sure it would work for my application/business-logic code, which is a different JAR within the EAR.
I'll update later when I find out more.
Update: It seems like it works so far. One "problem" is that I'm using Maven, and was wondering how to get the properties file into WEB-INF/classes, especially since you don't create a classes directory under your WEB-INF folder. I put my log4j.properties file in src/main/resources, and Maven did the rest!
Programmer by day; ninja at night. The ninja part is NOT about programming, but about my martial arts skills (tae kwon do, martial arts tricks like the 540, aerial, etc.). Currently interested in clean code, BDD, and Ruby on Rails.
Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts
Wednesday, January 04, 2006
Thursday, December 22, 2005
JUnit: Loader constraints violated
I was running my JUnit tests via Maven, and ran into the following error:
loader constraints violated when linking org/w3c/dom/Node class
java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class at...
The solution: set maven.junit.fork=true in your project.properties file.
loader constraints violated when linking org/w3c/dom/Node class
java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class at...
The solution: set maven.junit.fork=true in your project.properties file.
Subscribe to:
Posts (Atom)