我在网络应用程序中工作。我尝试使用 WEB-INF/lib/*.jar 从我的战争中删除 jar 重复。这帮助我将罐子排除在我的战争之外。在 websphere 中部署耳朵时,我遇到了以下问题,
我检查了我的战争类路径,它包含 log4j.jar 和 common-logging1.1.jar。
请帮忙!!!
错误日志:
[7/6/12 22:34:10:577 CEST] 00000165 webapp E com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exception caught while initializing context: {0}
org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:874)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)