hello
im having problem loading log4j in my ear application.
apache log4j library is supplied in one of modules and i cannot modify this module.
i added this module in my jboss-deployment-structure but when im entering one of my war apps
that are inside my ear app through webbrowser right after jboss starts up im having something like this:
09:09:56,659 ERROR [stderr] (http-/10.254.10.167:8080-1) log4j:ERROR A "org.apache.log4j.DailyRollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
09:09:56,659 ERROR [stderr] (http-/10.254.10.167:8080-1) log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
09:09:56,659 ERROR [stderr] (http-/10.254.10.167:8080-1) log4j:ERROR [ModuleClassLoader for Module "com.avaya.od:main" from local module loader @1bb613c (finder: local module finder @ece686 (roots: I:\projekty\millenium\jboss.6.2.prod_20150205\modules,I:\projekty\millenium\jboss.6.2.prod_20150205\modules\system\layers\base))] whereas object of type
09:09:56,660 ERROR [stderr] (http-/10.254.10.167:8080-1) log4j:ERROR "org.apache.log4j.DailyRollingFileAppender" was loaded by [ModuleClassLoader for Module "org.jboss.log4j.logmanager:main" from local module loader @1bb613c (finder: local module finder @ece686 (roots: I:\projekty\millenium\jboss.6.2.prod_20150205\modules,I:\projekty\millenium\jboss.6.2.prod_20150205\modules\system\layers\base))].
ewerything works when right after starting jboss Im entering one of war applications that are not inside my ear application.
I know ih has something to do with diffrent classloading for ear and war applications but im pretty new in jboss.
thanks in advance for any suggestions
best regards
Jan