I'm trying to setup Jboss with Embedded Tomcat in hosting environment. Everything is fine, except that jboss itself uses log4j as logging system and thus loads the classes. Later Embedded Tomcat is started and it initializes bunch of web-apps, each having their own log4j.jar in WEB-INF/lib, and individual configuration file. What happens is that various web-apps and jboss will use the single set of log4j classes loaded by jboss and overwrite each others configurations, completely screwing loggin for everybody.
Setting up a single configuration file for everybody is not an option in this environment.