This is how I fixed mine.... http://marc.theaimsgroup.com/?l=wsif-user&m=106138914118357&w=2 Simon Solomon [EMAIL PROTECTED] [EMAIL PROTECTED] sler.com To 02/17/2004 11:42 [EMAIL PROTECTED] AM cc Subject Please respond to Commons Logging : WSIF and IBM [EMAIL PROTECTED] WebSphere WSAD he.org Hello All, I have been trying to use commons-logging with WSIF for my J2EE Application. I have made a jar file of "commons-logging.properties", "log4j.properties" and my class which uses them. I'm using WSAD IE5.0. I have added the jar file as utility jar file to my application. Now, I switched to PARENT_LAST classloader mode. Logging seemed to be working fine from the war as well as the ejb's until, I started using WSIF in the ejb's. I'm using WSIF for IMS transactions. Now, when I use them, this is the error i'm getting when i try to use log Non-application exception occurred while processing method "sayHello" on bean "BeanId(test#testEJB.jar#Chinna, null)". Exception data: java.lang.ExceptionInInitializerError: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JLogger 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.LogFactory.getLog(LogFactory.java:414) at org.apache.wsif.logging.Trc.<clinit>(Unknown Source) at org.apache.wsif.base.WSIFDefaultMessage.<init>(Unknown Source) at com.kk.chinna.ChinnaBean.sayHello(ChinnaBean.java:54) at com.kk.chinna.EJSRemoteStatelessChinna_eefb8cfe.sayHello(EJSRemoteStatelessChinna_eefb8cfe.java:30) at com.kk.chinna._Chinna_Stub.sayHello(_Chinna_Stub.java:252) at org.apache.jsp._index._jspService(_index.java:100) at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:598) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:696) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592) I have tried everything, I have tried setting the properties files in the classpath, with no luck. My diagonsis seems to be as follows : This seems to be a problem with the IBM WebSphere WSAD Class Loaders. The wsif and related jar files are depending on the IBM TRC logging and this is conflicting with the Application which uses the Log4j Implementation. The Application uses WSIF which has been loaded by the App Server Class Loader. If you have any suggestions on how to get the commons-logging work with WSIF, please help me. Thanks, and have a great day. Rajesh Jain.
