I saw several questions on this topic, but since they are more likely to be related to errors, I do not think this is a duplicate.
My problem is that I cannot get any output from the .war that I am deploying to JBoss 6 EAP, however no errors have been reported. There is also a file called my .war created in the / log folder in JBoss, but it is also empty.
The .war deployment works fine and works. Since I use Spring, I donβt even see it initializing its contexts.
Logging works fine under Tomcat 7 with the same .war.
I created the log4j.xml file and placed it in my WEB-INF / classes directory (I also tried in / WEB -INF):
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="console" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.out"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%-5p %c{1} - %m%n"/> </layout> </appender> <root> <priority value ="info" /> <appender-ref ref="console" /> </root> </log4j:configuration>
I am using log4j 1.2.17, Spring 3.1 and JBoss 6 EAP.
Any help is much appreciated, Thanks
Simeon
source share