|
| Hi,
I've created a portlet using 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 to the WebSphere Portal Server V5.0.2.2, 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 (Logger.getLogger(..).
Then, the Digester throws this exception, cause the WebSphere Logger is another than expected from Digester.
The exception is thrown when I call the parse method:
Vector v = (Vector)digester.parse(xmlFile);
As said, the portlet runs great in a test environment.
Is there a solution ?
Kind regards,
Sebastian
---------
Here is the exception stack trace (only the important lines):
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) a
t 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.jet
speed.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.portl
et.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.htt
p.HttpServlet.service(HttpServlet.java(Compiled Code)) at
|
|