commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Komander" <...@gehacked.org>
Subject LogConfigurationException & ClassCastException: Digester & WebSphere Portal
Date Tue, 18 Oct 2005 09:03:57 GMT
Hi,

I've created a portlet. I use commons-digester 1.7 to read an xml file.
The portlet is running great in a WebSphere Portal V5.0 Test Environment.

But, if i deploy the portlet, I get a LogConfigurationException and a
ClassCastException.
I think, the problem is, that WebSphere Portal has an own log service. And
Digester tries to fetch this log service. Then Digester tries to cast the
WebSphere log service and a ClassCastException is throws.

Can you give me a solution ? Need help plz.

Here is a part of the exception, the whole is attached.

--
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException: com.ibm.ws.commons.logging.TrLogFactory at
org.apache.commons.logging.LogFactory$2.run(LogFactory.java:609) at
java.security.AccessController.doPrivileged(Native Method) at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:561) at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:352) at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414) at
org.apache.commons.digester.Digester.(Digester.java:304) at
de.fiducia.umfrage.fw.SurveyController.parse(SurveyController.java:55) at
de.fiducia.umfrage.UmfragePortlet.getRequestBean(UmfragePortlet.java:268)
at de.fiducia.umfrage.UmfragePortlet.doView(UmfragePortlet.java:81) at
org.apache.jetspeed.portlet.PortletAdapter.service(PortletAdapter.java:154)
at org.apache.jetspeed.portlet.Portlet._dispatch(Portlet.java(Compiled
Code)) at
org.apache.jetspeed.portlet.Portlet.access$100(Portlet.java(Inlined
Compiled Code)) at
org.apache.jetspeed.portlet.Portlet$Context.callPortlet(Portlet.java(Inlined
Compiled Code)) at
com.ibm.wps.pe.pc.legacy.cmpf.impl.PortletFilterManager.doFilter(PortletFilterManager.java(Compiled
Code)) at
org.apache.jetspeed.portlet.Portlet.dispatch(Portlet.java(Compiled Code))
at org.apache.jetspeed.portlet.Portlet.doGet(Portlet.java:510) at
javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code)) at
com.ibm.wps.pe.pc.legacy.cache.CacheablePortlet.service(CacheablePortlet.java(Compiled
Code)) at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code)) at
org.apache.jetspeed.portlet.Portlet.service(Portlet.java(Compiled Code))
at
com.ibm.ws.cache.servlet.ServletWrapper.serviceProxied(ServletWrapper.java(Inlined
Compiled Code)) at
com.ibm.ws.cache.servlet.CacheHook.handleFragment(CacheHook.java(Compiled
Code)) at
com.ibm.ws.cache.servlet.CacheHook.handleServlet(CacheHook.java(Compiled
Code)) at
com.ibm.ws.cache.servlet.ServletWrapper.service(ServletWrapper.java(Compiled
Code)) at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java(Compiled
Code)) at
--
Mime
View raw message