WebSphere Portal Server - org.apache.commons.digester.Digester & WP 5.0.2.2 - LogConfigurationException: jav

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > October 2005 > org.apache.commons.digester.Digester & WP 5.0.2.2 - LogConfigurationException: jav





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author org.apache.commons.digester.Digester & WP 5.0.2.2 - LogConfigurationException: jav

2005-10-24, 6:14 pm

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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com