[javagroups-users] Problem using jgroups in a tomcat webapp
Brought to you by:
belaban
From: <dt...@co...> - 2004-07-30 09:26:09
|
Hi, I'm trying to upgrade an older javagroups version to jgroups 2.2.5 in a tomcat 4.1 web application. But this seems to cause some trouble with logging. I have jgroups-all.jar and log4j-1.2.8 in WEB-INF/lib. I assume the below commons logging classes are loaded by tomcat. Any suggestions are welcome. java.lang.ExceptionInInitializerError at org.jgroups.JChannel.<init>(JChannel.java:51) at dk.netnord.cmd.clustering.jgroups.JavaGroupsSender.startUp(JavaGroupsSender.java:92) at dk.netnord.cmd.clustering.ClusterCommunicator.initializeMessagingFramework(ClusterCommunicator.java:707) at dk.netnord.cmd.clustering.ClusterCommunicator$CCConfigurationListener.configurationValueUpdated(ClusterCommunicator.java:764) at dk.netnord.cmd.clustering.ClusterCommunicator.<init>(ClusterCommunicator.java:207) at dk.netnord.cmd.CMD.configureClusterService(CMD.java:293) at dk.netnord.cmd.CMD.access$000(CMD.java:48) at dk.netnord.cmd.CMD$1.run(CMD.java:128) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3cb075 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395) at org.jgroups.util.Queue.<clinit>(Queue.java:52) ... 8 more Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@3cb075 for org.apache.commons.logging.impl.Log4JLogger at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:432) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525) ... 12 more Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1610) at java.lang.Class.getConstructor0(Class.java:1922) at java.lang.Class.getConstructor(Class.java:1019) at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:429) ... 13 more -dennis |