I am can not seem to get by this error involving the logging with JBOSS. Presently the TOmCat portion of my application is not logging at ALL. I have server the war file to ensure the log4j and commons-logging jar files are removed, but I am still not able to log from the Web portion.
| [09:25:50,099] [INFO ] [TomcatDeployer] [deploy, ctxPath=/EXPAGWeb, warUrl=.../deploy/EXPAG.ear/EXPAGWeb.war/] | [09:25:50,849] [ERROR] [STDERR] [log4j:ERROR Could not create an Appender. Reported error follows.] | [09:25:50,849] [ERROR] [STDERR] [java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender cannot be cast to org.apache.log4j.Appender] | My two file appenders: 1: | <!-- A time/date based rolling appender --> | <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender"> | <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> | <param name="File" value="${jboss.server.log.dir}/server.log"/> | <param name="Append" value="false"/> | | <!-- Rollover at midnight each day --> | <param name="DatePattern" value="'.'yyyy-MM-dd"/> | | <!-- Rollover at the top of each hour | <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/> | --> | | <layout class="org.apache.log4j.PatternLayout"> | <!-- The default pattern: Date Priority [Category] Message\n --> | <param name="ConversionPattern" value="[%d] [%-5p] [%c] [%m]%n"/> | <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n | <param name="ConversionPattern" value="%d %-5r %-5p [%c] (%t:%x) %m%n"/> | --> | </layout> | </appender> | 2: | | <!-- A time/date based rolling appender --> | <appender name="MYAPP" class="org.jboss.logging.appender.DailyRollingFileAppender"> | <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> | <param name="File" value="${jboss.server.home.dir}/log/myapp.log"/> | <param name="Append" value="false"/> | | | <!-- Rollover at midnight each day --> | <param name="DatePattern" value="'.'yyyy-MM-dd"/> | | <!-- Rollover at the top of each hour | <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/> | --> | | <layout class="org.apache.log4j.PatternLayout"> | <!-- The default pattern: Date Priority [Category] Message\n --> | <param name="ConversionPattern" value="[%d][%t] [%5p] [%m]%n"/> | </layout> | </appender> | Any recommendations would be greatly appreciated. Russ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008350#4008350 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008350 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user