Infocenter WAR file does not deploy on JBoss 4.2.1.GA - LogConfigurationException: No suitable Log c [message #606921] |
Wed, 16 January 2008 22:06 |
Peter Desjardins Messages: 21 Registered: July 2009 |
Junior Member |
|
|
I've gotten my Infocenter WAR file to run on JBoss 4.0.1 just fine. I
need to support JBoss 4.2.1. On 4.2.1, the Infocenter WAR fails to
deploy and I see this error in the server log.
008-01-16 13:34:10,655 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localho st].[/nexus-5-0-admin].[equinoxbridgeservlet]]
Servlet.service() for servlet equinoxbridgeservlet threw exception
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@1a88328 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@1a88328 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category))
The JBoss 4.2.1 release notes indicate that: "log4j and commons-logging
have both been upgraded. commons-logging is patched in addition,
JBAS-2823."
The WAR file template for the Infocenter contains
org.apache.commons.logging_1.0.4.v200706111724.jar. Would upgrading
that JAR to version 1.1.1 be a likely solution?
I tried including the log4j.jar file from JBoss 4.0.1 in the plugins
directory of my WAR file and also the WEB-INF/lib/ directories. In the
plugins directory, there was no effect at all. In the lib directory, I
saw log4j errors like this one:
16:53:38,011 ERROR [STDERR] log4j:ERROR A
"org.jboss.logging.appender.FileAppender" object is not assignable to a
"org.apache.log4j.Appender" variable.
Any suggestions would be much appreciated.
Thanks.
Peter
|
|
|
Powered by
FUDForum. Page generated in 0.03095 seconds