I?m trying to deploy a war file. After running run.bat and the JBoss server was up and ready, I tried to deploy war file and got the following messages to the console:
10:01:53,571 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
10:01:53,571 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 56s:858ms
10:37:31,655 INFO [TomcatDeployer] deploy, ctxPath=/_006, warUrl=.../tmp/deploy/tmp11345523_006-exp.war/
10:37:31,779 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
10:37:31,779 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
10:37:31,779 ERROR [STDERR] log4j:ERROR [WebappClassLoader delegate: false
----------> Parent Classloader:
] whereas object of type
10:37:31,779 ERROR [STDERR] log4j:ERROR "org.jboss.logging.appender.FileAppender" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@1dd7056].
10:37:31,795 ERROR [STDERR] log4j:ERROR Could not instantiate appender named "FILE".
Can you please help me? i realy don't know what im doing wrong
1) You included log4j.jar in your war file. If so, remove it.
2) You have a log4j.properties file in your war file. If so, remove it.
The typical way of logging your own apps is to modify the server/xxx/conf/jboss-log4j.xml file.
For further reading and research: http://wiki.jboss.org/wiki/Wiki.jsp?page=ScopedLoggingConfig