-
1. Re: Log4j logging works sometimes, sometimes not
jamezp Apr 11, 2013 6:44 PM (in response to riedic)Where is your log4j.properties or log4j.xml located? It looks like it's not finding it for some reason.
--
James R. Perkins
-
2. Re: Log4j logging works sometimes, sometimes not
riedic Apr 12, 2013 1:21 AM (in response to jamezp)The log4j.xml is in the web.war - WEB-INF - classes folder.
Why will the log4j.xml sometime be found and sometimes not?
-
3. Re: Log4j logging works sometimes, sometimes not
jamezp Apr 12, 2013 4:53 PM (in response to riedic)1 of 1 people found this helpfulWell clearly had I been more careful to read the message above you indicated where it was
It's likely that logging is happening in a different library before your WAR is loaded. It's probably better to put the configuration file in the EAR/META-INF directory so all dependencies will see it.
--
James R. Perkins
-
4. Re: Log4j logging works sometimes, sometimes not
riedic Apr 15, 2013 8:42 AM (in response to jamezp)In my case it's not enough to put the log4j.xml file into ear/meta-inf directory. It had to put it in a jar.
And like proposed here every single subdeployment had to be configured in the jboss-deployment-structure.xml
Thanks for your help!