It sounds as if we have solved your original question, but now you have problems with your glassfish configuration.
I think it would be better to assign points on this question and start a new one on glassfish and log4j, since glassfish is its own special area.
Have you followed the steps recommended here?:
http://wiki.glassfish.java.net/Wiki.jsp?page=FaqCongifureLog4JWith this additional note from the author of the above page:
http://weblogs.java.net/blog/schaefa/archive/2007/08/to_the_hell_wit_1.htmlThis article has some good points about glassfish and log4j as well:
http://www.randombugs.com/java/glassfish/changing-logging-system-glassfish-21.html