It appears that I'm getting ClassLoader issues when deploying to jboss-4.0.4 with log4j. I have a log4j.jar packaged in my war, and I know there is one in the server lib directory as well. Here's the error:
Caused by: java.lang.NoClassDefFoundError
at org.apache.log4j.Logger.getLogger(Logger.java:85)
Weird considering I'm deploying log4j in my war...
All kinds of wierdness happens when you package log4j in your war or ear file. Usually these problems go away if you omit the log4j.jar file, thus replying on the copy that comes with JBoss.