ok for any other sucker having this problem i have found the problem. In the MainServlet.java instead of using logger.getLogger it is using LogManager.getLogger.
LogManager does some initialisation of logging components which is not permitted in JBoss. I refactored to use Logger all cleaning logging now. Also removed the GroboUtils from the war, as it contains log4j.I am not sure why there need to so many log4j distributions in red5 but it is trouble in the making. -lp > i have been through all the jboss configuration changes. > > all log4j components in red5 have been removed. But there is some library > maybe 3rd party that is loading a log4j. > > the obvious question is has anyone managed to get red50.6 final to run in > JBoss? > > -lp >> >> Google for JBoss log4j, there are a couple of issues there like >> appenders, classloading, log4j versions etc. Deleting the work/tmp >> directories before each new deployment could be relevant. >> >> >> >> [EMAIL PROTECTED] wrote: >>> hi all, >>> >>> i have build and deployed the 0.6 final as a WAR within a EAR on >>> jboss4.0.4. However there is a nasty log4j error appearing. >>> >>> Investgating the problem it seems that something in red5 is loading a >>> log4j class, but Jboss does not allow it. >>> >>> i have removed all copies of log4j.xml, log4j.jar from war but still >>> this >>> persists. >>> >>> This problem was NOT present in 0.6rc1. >>> >>> To confirm my Jboss installation is correct as other applications >>> deploy >>> correctly. >>> >>> any advice is most appreciated. >>> >>> -lp >>> >>> 2007-05-22 16:43:43,875 INFO [org.jboss.web.tomcat.tc5.TomcatDeployer] >>> deploy, ctxPath=/poker-red5, >>> warUrl=.../tmp/deploy/tmp15996poker.ear-contents/red5-exp.war/ >>> 2007-05-22 16:43:44,218 ERROR [STDERR] log4j:ERROR Could not create an >>> Appender. Reported error follows. >>> 2007-05-22 16:43:44,218 ERROR [STDERR] java.lang.ClassCastException: >>> org.jboss.logging.appender.DailyRollingFileAppender >>> 2007-05-22 16:43:44,218 ERROR [STDERR] at >>> org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:165) >>> 2007-05-22 16:43:44,218 ERROR [STDERR] at >>> org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:140) >>> 2007-05-22 16:43:44,218 ERROR [STDERR] at >>> org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:153) >>> 2007-05-22 16:43:44,218 ERROR [STDERR] at >>> org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:415) >>> 2007-05-22 16:43:44,218 ERROR [STDERR] at >>> org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:335) >>> 2007-05-22 16:43:44,218 ERROR [STDERR] at >>> org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:781) >>> 2007-05-22 16:43:44,218 ERROR [STDERR] at >>> org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:666) >>> 2007-05-22 16:43:44,234 ERROR [STDERR] at >>> org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:616) >>> 2007-05-22 16:43:44,234 ERROR [STDERR] at >>> org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:602) >>> 2007-05-22 16:43:44,234 ERROR [STDERR] at >>> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460) >>> 2007-05-22 16:43:44,234 ERROR [STDERR] at >>> org.apache.log4j.LogManager.<clinit>(LogManager.java:113) >>> >>> >>> >>> >>> _______________________________________________ >>> Red5 mailing list >>> [email protected] >>> http://osflash.org/mailman/listinfo/red5_osflash.org >>> >> >> >> _______________________________________________ >> Red5 mailing list >> [email protected] >> http://osflash.org/mailman/listinfo/red5_osflash.org >> > > > --------------------------------- > Lucio Piccoli > Director > > Asterisk-i Pty Ltd > Software Design-Develop-Deploy > www.asteriski.com > > > > --------------------------------- Lucio Piccoli Director Asterisk-i Pty Ltd Software Design-Develop-Deploy www.asteriski.com _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
