简体   繁体   English

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

[英]Weblogic11: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable

I know that this error already appears on stackoverflow and normally it translates to a classpath problem. 我知道此错误已经出现在stackoverflow上,并且通常会转化为类路径问题。 In my case this is my context: 就我而言,这是我的背景:

Application Server: Weblogic 10.3.6 应用程序服务器: Weblogic 10.3.6

Using Spring 4 + log4j. 使用Spring 4 + log4j。

Weblogic User domain lib folder: Weblogic用户域lib文件夹:

  • log4j-1.2.17.jar log4j的-1.2.17.jar
  • commons-logging-1.1.3.jar 共享记录-1.1.3.jar
  • spring-beans-4.1.2.RELEASE.jar 弹簧豆,4.1.2.RELEASE.jar
  • spring-core-4.1.2.RELEASE.jar 弹簧芯4.1.2.RELEASE.jar
  • spring-jdbc-4.1.2.RELEASE.jar 弹簧JDBC-4.1.2.RELEASE.jar
  • spring-tx-4.1.2.RELEASE.jar 弹簧-TX-4.1.2.RELEASE.jar

When I try to use the StoredProcedure spring class (in the context of a Custom Weblogic Authenticator) I have this error: 当我尝试使用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)

I believe that this got something to do with the version of log4j or commons-logging (or eventually a dependency of Spring 4 that I'm missing.. like slf4j, althought I don't think this is required). 我相信这与log4j或commons-logging的版本有关(或者最终我缺少的Spring 4的依赖关系。像slf4j,尽管我认为这不是必需的)。

Does anyone has any ideas about this? 有人对此有任何想法吗?

Thanks in advance 提前致谢

Best regards 最好的祝福

João Simas 若昂·西马斯(JoãoSimas)

Thanks "Display Name is missing" for the provided link: [ http://docs.oracle.com/cd/E24329_01/web.1211/e24368/classloading.htm#WLPRG282][1] 感谢所提供链接的“显示名称缺失”:[ http://docs.oracle.com/cd/E24329_01/web.1211/e24368/classloading.htm#WLPRG282] [1 ]

The solution was creating a dedicated User Domain and redeploying the jars. 解决方案是创建专用的用户域并重新部署jar。 Everything worked as expected. 一切都按预期工作。

João Simas 若昂·西马斯(JoãoSimas)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Wildfly 17:“找不到或无法使用用户指定的日志类&#39;org.apache.commons.logging.impl.Log4JLogger”。”使用commons-configuration2 - Wildfly 17: “User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.” using commons-configuration2 Sbt test: class org.apache.logging.slf4j.Log4jLogger cannot be cast to class ch.qos.logback.classic.Logger (org.apache.logging.slf4j.Log4jLogger - Sbt test: class org.apache.logging.slf4j.Log4jLogger cannot be cast to class ch.qos.logback.classic.Logger (org.apache.logging.slf4j.Log4jLogger 是什么原因导致Log4JLogger无法找到或无法使用? - Whats the root cause of Log4JLogger' cannot be found or is not useable? org.apache.commons.logging.Log 无法解析 - org.apache.commons.logging.Log cannot be resolved 无法访问 org.apache.commons.pool2.impl.GenericObjectPoolConfig 类文件,找不到 org.apache.commons.pool2.impl.GenericObjectPoolConfig - cannot access org.apache.commons.pool2.impl.GenericObjectPoolConfig class file for org.apache.commons.pool2.impl.GenericObjectPoolConfig not found 无法创建类org.apache.logging.log4j.core.impl.Log4jContextFactory - Unable to create class org.apache.logging.log4j.core.impl.Log4jContextFactory 如何使用org.apache.commons.logging登录到文件? - How to log to a file with org.apache.commons.logging? 使用org.apache.commons.logging写日志文件 - Write log file using org.apache.commons.logging 引起:org.apache.logging.log4j.LoggingException:log4j-slf4j-impl 不能与 log4j-to-slf4j 一起出现 - Caused by: org.apache.logging.log4j.LoggingException: log4j-slf4j-impl cannot be present with log4j-to-slf4j 引起:org.apache.logging.log4j.LoggingException: log4j-slf4j-impl cannot be present with log4j-to-slf4j Issue - Caused by: org.apache.logging.log4j.LoggingException: log4j-slf4j-impl cannot be present with log4j-to-slf4j Issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM