Weblogic11:用户指定的日志类'org.apache.commons.logging.impl.Log4JLogger'找不到或无法使用

时间:2015-02-10 17:47:40

标签: java logging weblogic11g spring-4

我知道这个错误已经出现在stackoverflow上,通常会转换为类路径问题。就我而言,这是我的背景:

Application Server: Weblogic 10.3.6

使用Spring 4 + log4j。

Weblogic用户域lib文件夹:

  • 的log4j-1.2.17.jar
  • 共享记录-1.1.3.jar
  • 弹簧豆-4.1.2.RELEASE.jar
  • 弹簧芯4.1.2.RELEASE.jar
  • 弹簧JDBC-4.1.2.RELEASE.jar
  • 弹簧-TX-4.1.2.RELEASE.jar

当我尝试使用StoredProcedure spring类(在Custom Weblogic Authenticator的上下文中)时出现此错误:

<10/Fev/2015 17H27m GMT> <Error> <org.apache.beehive.netui.pageflow.internal.AdapterManager> <BEA-00
0000> <ServletContainerAdapter manager not initialized correctly.>
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.j
ava: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)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
        at org.springframework.jdbc.object.RdbmsOperation.<init>(RdbmsOperation.java:59)
        at org.springframework.jdbc.object.SqlCall.<init>(SqlCall.java:78)
        at org.springframework.jdbc.object.StoredProcedure.<init>(StoredProcedure.java:58)

我认为这与log4j或commons-logging的版本有关(或者最终我错过了Spring 4的依赖...就像slf4j一样,虽然我认为这不是必需的。)< / p>

有没有人对此有任何想法?

提前致谢

祝你好运

JoãoSimas

1 个答案:

答案 0 :(得分:0)

感谢所提供的链接“显示名称丢失”: [http://docs.oracle.com/cd/E24329_01/web.1211/e24368/classloading.htm#WLPRG282][1]

解决方案是创建专用用户域并重新部署jar。一切都按预期工作。

JoãoSimas