[英]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文件夹:
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.