Set the classloader at the WAR level to PARENT_FIRST, and leave the EAR's classloader at the default setting.
Mick Timon
-----Original Message-----
From: Nitin Aurora [mailto:
nitin_aurora@...]
Sent: Friday, April 25, 2008 12:23 PM
To:
user@...
Subject: [Logging] Log4jLogger does not implement Log error in Websphere 6.1.0.15 environment
Hi, I can't seem to start my application when using Commons-logging-1.1.jar. I am running the application in Websphere 6.1.0.15 environment in RAD 7. The application (ear) class loader mode is PARENT_LAST with Application as the WAS classloader mode. It seems like the commons-logging jar and properties file in my application is getting loaded but then the server tries to bind the Logfactory from the application classloader to the Log interface in the Websphere runtime jar (com.ibm.ws.runtime_6.1.0.jar) and I believe thats what triggers the following error -- """[4/25/08 10:22:35:437 CDT] 0000000a SystemErr R Caused by: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger does not implement Log at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:412) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525) 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 com.ibm.ws.webservices.custom.CustomPropertyProviderImpl.(CustomPropertyProviderImpl.java:45) at com.ibm.ws.webservices.custom.CustomPropertyProviderFactory.(CustomPropertyProviderFactory.java:29) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at com.ibm.ws.webservices.tools.resource.DefaultToolEnv.(DefaultToolEnv.java:70) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at com.ibm.ws.webservices.tools.WSDLQuery.(WSDLQuery.java:119) at com.ibm.ws.webservices.tools.WSDLQuery.(WSDLQuery.java:103) at com.ibm.ws.webservices.engine.deployment.wsdd.WSDDGen.getWSDLQuery(WSDDGen.java:178) at com.ibm.ws.webservices.engine.deployment.wsdd.WSDDPort.expand(WSDDPort.java:531) at com.ibm.ws.webservices.engine.deployment.wsdd.WSDDPort._initTMR(WSDDPort.java:308) at com.ibm.ws.webservices.component.WSServerImpl.setupWsddPort(WSServerImpl.java:1126) at com.ibm.ws.webservices.component.WSServerImpl.warMetaDataCreated(WSServerImpl.java:1904) at com.ibm.ws.webservices.component.WSServerImpl.metaDataCreated(WSServerImpl.java:530) at com.ibm.ws.runtime.component.MetaDataMgrImpl.fireMetaDataCreated(MetaDataMgrImpl.java:188) at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:205) at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:172) at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:306) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:563) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:949) at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2122) at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473) """ I dont understand why the log interface in the runtime jar is being used to bind the Log4jLogger...(if that is the case)... Thanks, Nitin _________________________________________________________________Spell a grand slam in this game where word skill meets World Series. Get in the game.
http://club.live.com/word_slugger.aspx?icid=word_slugger_wlhm_admod_april08_________________________________________________________________
Make i'm yours. Create a custom banner to support your cause.
http://im.live.com/Messenger/IM/Contribute/Default.aspx?source=TXT_TAGHM_MSN_Make_IM_Yours---------------------------------------------------------------------
To unsubscribe, e-mail:
user-unsubscribe@...
For additional commands, e-mail:
user-help@...