powered by Jive Software

JM on Tomcat: Logger problems

Hi All,

There’'s still one error in loggers that I cannot solve: in the JM_HOME/logs/error.log : I get the following stack strace:

//////////////////////////////////////////////////////////////////////////////// ////////////////////////////

2005.08.01 15:41:37 [org.jivesoftware.messenger.container.AdminConsolePlugin.initializePlugin(Admin ConsolePlugin.java:163)

] Trouble initializing admin console

java.lang.ClassCastException: org.apache.commons.logging.impl.Jdk14Logger[/b]

at org.jivesoftware.messenger.container.AdminConsolePlugin.initializePlugin(AdminC onsolePlugin.java:67)

at org.jivesoftware.messenger.container.PluginManager.loadPlugin(PluginManager.jav a:170)

at org.jivesoftware.messenger.container.PluginManager.access$300(PluginManager.jav a:48)

at org.jivesoftware.messenger.container.PluginManager$PluginMonitor.run(PluginMana ger.java:411)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)

at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (ScheduledThreadPoolExecutor.java:65)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(ScheduledThreadPoolExecutor.java:142)

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Schedu ledThreadPoolExecutor.java:166)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 650)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

at java.lang.Thread.run(Thread.java:595)

//////////////////////////////////////////////////////////////////////////////// ////////////////////////////

It seems comming from the org.jivesoftware.messenger.container.AdminConsolePlugin.class, because when I have a look at the imports of this class, it seems to have 2 kind of loggers:

[b]import org.mortbay.log.*;

import org.apache.commons.logging.LogFactory;[/b][/b]

And on the other hand, Tomcat 5.5.9 contains his own org.apache.commons.logging.LogFactory package embedded in the TOMCAT_HOME/bin directory (commons-logging-api.jar) which contains exactly the “org.apache.commons.logging.impl.Jdk14Logger” which cause the ClassCastException…

Have you any ideas? what can I do?

Thanks for your help…

Alex

This error seems to be due to a bad version of sources… I’‘ve used the nightly build : “jive_messenger_src_2005-08-03.zip”, follow the gato’'s advices about installation of tomcat, and it seems to work…

Alex