我知道这个错误已经出现在stackoverflow上,通常会转换为类路径问题。就我而言,这是我的背景:
Application Server: Weblogic 10.3.6
使用Spring 4 + log4j。
Weblogic用户域lib文件夹:
当我尝试使用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
答案 0 :(得分:0)
感谢所提供的链接“显示名称丢失”: [http://docs.oracle.com/cd/E24329_01/web.1211/e24368/classloading.htm#WLPRG282][1]
解决方案是创建专用用户域并重新部署jar。一切都按预期工作。
JoãoSimas