-
1. Re: JBoss As2 and log4j
ctomc Apr 15, 2014 9:07 AM (in response to tojopjose)show us content of your lib folder(s)
so ear/lib and your war/lib
-
2. Re: JBoss As2 and log4j
tojopjose Apr 15, 2014 10:01 AM (in response to ctomc)Hi Tomaz,
I have not packaged the jar's under the EAR lib , instead of that created a "module" for the app jar files , and used that in ear meta-inf/jboss-deployment-structure.xml
and the custome module refers to
<dependencies> <module name="javaee.api" export="true"/> <module name="org.apache.log4j" export="true"/> </dependencies>
---- My application jar's
and org.apache.log4j depends on
C:\jboss-eap-6.2\modules\system\layers\base\org\jboss\log4j\logmanager\main\log4j-jboss-logmanager-1.0.2.Final-redhat-1.jar
and also , log4j.xml properties in the class path.
-
3. Re: JBoss As2 and log4j
jamezp Apr 16, 2014 11:25 AM (in response to tojopjose)Do you include your own copy of log4j or have a copy of log4j in your deployment?
The org.apache.log4j module is an alias for org.jboss.log4j.logmanager. This means that you can use either module name, but you'll end up getting org.jboss.log4j.logmanager as the dependency.
--
James R. Perkins