With jboss 2.4.4 there is a log4j.properties which defines this. So if the log4j is loaded from a different place other than the jboss/lib/ext, you will see these exceptions. Also to override the log4j.properties loaded from the jboss/conf/tomcat, you can use -Dlog4j.configuration to specify the new properties file. This as to be used in run.bat or run.sh. Thanks, Swami
-----Original Message----- From: Lau, Angel WK [mailto:[EMAIL PROTECTED]] Sent: May 13, 2002 6:30 AM To: [EMAIL PROTECTED] Subject: Unexpected Error from Log4J Importance: High Hi, I got the following error message when I use the JBoss2.4.4 with Tomcat 4.0.1 to run our application. In fact, our application also use the log4j for logging but we cannot run smoothly and having this exception. Is there any conflict for all log4j work together in these parties? Any idea for fixing this problem. Your prompt response is appreciated. Thanks in advance. Log display at JBoss console: log4j:ERROR A "org.jboss.logging.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable. log4j:ERROR Could not instantiate appender named "Console". java.lang.ClassCastException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl Log display at JSP error page: at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderF actory.java:152) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :556) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java :520) at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:5 99) at com.pccw.cms.logging.ErrorLogger.<init>(ErrorLogger.java:61) at com.pccw.cms.logging.ErrorLoggerCategoryFactory.makeNewCategoryInstan ce(ErrorLoggerCategoryFactory.java:33) java.lang.ClassCastException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory. java:152) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:556) at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:520) at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:599) at com.pccw.cms.logging.ErrorLogger.(ErrorLogger.java:61) at com.pccw.cms.logging.ErrorLoggerCategoryFactory.makeNewCategoryInstance(Erro rLoggerCategoryFactory.java:33) with regards, Angel Lau PCCW Business eSolutions