ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.

Error:

03:17:16,311 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.
appender.FileAppender" object is not assignable to a 
"org.apache.log4j.Appender" variable.
03:17:16,311 ERROR [STDERR] log4j:ERROR The class "org.apache.
log4j.Appender" was loaded by 
03:17:16,311 ERROR [STDERR] log4j:ERROR [WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
java.net.FactoryURLClassLoader@195d3aa
] whereas object of type 
03:17:16,311 ERROR [STDERR] log4j:ERROR "org.jboss.logging.
appender.FileAppender" was loaded by [org.jboss.system.server.
NoAnnotationURLClassLoader@1b4fad5].
03:17:16,311 ERROR [STDERR] log4j:ERROR Could not instantiate 
appender named "FILE".
03:17:16,401 INFO  [0]] Initializing Spring root 
WebApplicationContext



Solution:

1) pom.xml

        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>${log4j.version}</version>
            <scope>provided</scope>
        </dependency>

2) web.xml
    <!--<context-param>-->
        <!--<param-name>log4jConfigLocation</param-name>-->
        <!--<param-value>/WEB-INF/log4j.properties</param-value>-->
    <!--</context-param>-->

--
java - Strange jboss console error - Stack Overflow
log4j error during Run, after Deployment | JBoss AS | JBoss Community
log4j messages in JBoss log (JBoss forum at JavaRanch)