WAS_HOME / lib / ext目录中的应用程序jar抛出'类org.apache.commons.logging.impl.Jdk14Logger没有实现Log'

时间:2016-03-15 22:14:48

标签: websphere classloader apache-commons-logging

当我将一个自定义用户注册表实现的应用程序jar部署到$ WAS_HOME / lib / ext目录时,我收到以下错误 -

org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log

嵌套在此异常堆栈中 -

com.ibm.ws.wim.adapter.urbridge.URBridge search 
                                 com.ibm.websphere.wim.exception.WIMApplicationException: CWWIM4506E  Virtual member manager failed to search the entity: 'org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log'.
    at com.ibm.ws.wim.adapter.urbridge.URBridge.search(URBridge.java:652)
    at com.ibm.ws.wim.ProfileManager.searchRepository(ProfileManager.java:5297)
    at com.ibm.ws.wim.ProfileManager.searchImpl(ProfileManager.java:1211)
    at com.ibm.ws.wim.ProfileManager.genericProfileManagerMethod(ProfileManager.java:356)
    at com.ibm.ws.wim.ProfileManager.search(ProfileManager.java:448)
    at com.ibm.websphere.wim.ServiceProvider.search(ServiceProvider.java:544)
    at com.ibm.websphere.wim.client.LocalServiceProvider.search(LocalServiceProvider.java:393)
    at com.filenet.engine.security.VMMProviderVMMImpl$VMMProviderPrivilegedExceptionAction.run(VMMProviderVMMImpl.java:61)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5474)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5600)
    at com.filenet.engine.security.VMMProviderVMMImpl.execSearch(VMMProviderVMMImpl.java:1182)
    at com.filenet.engine.security.VMMProviderVMMImpl.getUserByShortNameOrMail_VMM(VMMProviderVMMImpl.java:552)
    at com.filenet.engine.security.VMMProviderVMMImpl.getUserByShortName_VMM(VMMProviderVMMImpl.java:518)
    at com.filenet.engine.security.VMMProviderVMMImpl.getUserByShortName(VMMProviderVMMImpl.java:180)
    at com.filenet.engine.security.VMMProvider.getUserByShortName(VMMProvider.java:113)
    at com.filenet.engine.security.DirectoryServiceDriver.sspGetUserByName(DirectoryServiceDriver.java:1177)
    at com.filenet.engine.security.DirectoryServiceDriver.getToken(DirectoryServiceDriver.java:712)
    at com.filenet.engine.security.SecurityProvider._getSecurityToken(SecurityProvider.java:564)
    at com.filenet.engine.security.SecurityProvider.getSecurityToken(SecurityProvider.java:477)
    at com.filenet.engine.security.SecurityProvider.getSecurityToken(SecurityProvider.java:457)
    at com.filenet.engine.context.SecurityContext.getToken(SecurityContext.java:193)
    at com.filenet.engine.context.SecurityContext.isSidPresent(SecurityContext.java:224)
    at com.filenet.engine.security.SecurityDescriptor.getEffectiveAccess(SecurityDescriptor.java:472)
    at com.filenet.engine.security.AccessManager.getEffectiveAccess(AccessManager.java:437)
    at com.filenet.engine.retrieve.IndependentClassRetriever.postLoadSecurity(IndependentClassRetriever.java:1414)
    at com.filenet.engine.retrieve.RetrieverClassBase.loadNonScalarProperties(RetrieverClassBase.java:632)
    at com.filenet.engine.retrieve.IndependentClassRetriever.loadNonScalarProperties(IndependentClassRetriever.java:1388)
    at com.filenet.engine.retrieve.IndependentClassRetriever.loadObject(IndependentClassRetriever.java:1174)
    at com.filenet.engine.retrieve.IndependentClassRetriever.getObjectEnumeration(IndependentClassRetriever.java:1294)
    at com.filenet.engine.retrieve.StorageAreaRetriever.getObjectEnumeration(StorageAreaRetriever.java:86)
    at com.filenet.engine.retrieve.IndependentClassRetriever.getObject(IndependentClassRetriever.java:636)
    at com.filenet.engine.retrieve.IndependentClassRetriever.getObject(IndependentClassRetriever.java:357)
    at com.filenet.engine.jca.impl.RequestBrokerImpl.getObjects(RequestBrokerImpl.java:761)
    at com.filenet.engine.context.ServerSession.getObjects(ServerSession.java:165)
    at com.filenet.apiimpl.core.Session.callGetObjects(Session.java:92)
    at com.filenet.apiimpl.core.Session.executeGetObject(Session.java:297)
    at com.filenet.apiimpl.core.Session.getProperty(Session.java:420)
    at com.filenet.apiimpl.core.IndependentObjectImpl.fetchProperty(IndependentObjectImpl.java:119)
    at com.filenet.apiimpl.core.IndependentObjectImpl.fetchProperty(IndependentObjectImpl.java:102)
    at com.filenet.engine.content.StorageAreaCache.rebuildStorageAreaData(StorageAreaCache.java:216)
    at com.filenet.engine.content.StorageAreaCache.getStorageAreaCacheForObjectStore(StorageAreaCache.java:127)
    at com.filenet.engine.content.ContentStorage.getContentAreaList(ContentStorage.java:735)
    at com.filenet.engine.queueitem.StagingCleanup.isStagingCleanupComplete(StagingCleanup.java:96)
    at com.filenet.engine.queueitem.ContentQueueDispatcher.unitOfWork(ContentQueueDispatcher.java:974)
    at com.filenet.engine.tasks.ScheduledBackgroundTask.execute(ScheduledBackgroundTask.java:270)
    at com.filenet.engine.tasks.BackgroundTask.safeExecute(BackgroundTask.java:248)
    at com.filenet.engine.tasks.ScheduledObjectStoreTask.safeExecute(ScheduledObjectStoreTask.java:51)
    at com.filenet.engine.tasks.BackgroundTask$BackgroundTaskPriviledgedExceptionAction.run(BackgroundTask.java:1036)
    at com.filenet.engine.context.CallState.doAsSystem(CallState.java:417)
    at com.filenet.engine.tasks.BackgroundTask.run(BackgroundTask.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:906)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:929)
    at java.lang.Thread.run(Thread.java:773)
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:532)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
    at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
    at org.apache.http.impl.client.AbstractHttpClient.<init>(AbstractHttpClient.java:159)
    at org.apache.http.impl.client.DefaultHttpClient.<init>(DefaultHttpClient.java:178)
    at com.cst.bpm.CustomDBRegistryImpl.getJSONFromUrl(CustomDBRegistryImpl.java:130)
    at com.cst.bpm.CustomDBRegistryImpl.getUsers(CustomDBRegistryImpl.java:365)
    at com.ibm.ws.wim.adapter.urbridge.URBridge.search(URBridge.java:620)
    ... 52 more
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:416)
    at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
    ... 60 more
Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Jdk14Logger does not implement Log
    at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412)
    ... 61 more

目录$ WAS_HOME / lib / ext列在从setupCmdLine.sh文件确认的ws.ext.dir变量中。

我没有将commons-logging-jar放在这个目录$ WAS_HOME / lib / ext中,因为Websphere已经在插件或运行时目录中提供了一个开箱即用的。

我的WAS服务器具有以下类加载设置 -
访问内部服务器类 - 允许
类加载器政策 - 多个
 类加载模块 - 首先加载父类加载器的类

所以,看看是否有人遇到过这个问题,可能有什么可能的解决办法?

0 个答案:

没有答案