geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PaJaSoft <>
Subject Geronimo 2.1.x, standard MyFaces bundle, org.apache.myfaces.ERROR_HANDLER in web.xml - classloading problem
Date Thu, 26 Feb 2009 13:21:44 GMT


	I'm trying to write own ErrorHandler for handling Exceptions. It's based on
Tomahawk ErrorRedirectJSFPageHandler with some other attributes in
ExceptionContext (error identificator for BFU etc.).

	When I deploy web application under common way (WAR), all is OK, but when
MyFaces catches exception and try to redirect processing to my own handler
(specified in web.xml by parameter org.apache.myfaces.ERROR_HANDLER) I got
error from Tomcat:

javax.servlet.ServletException: Error-Handler :
cz.pajasoftovi.TestJSF.ErrorRedirectJSFPageHandler was not found. Fix your
web.xml-parameter : org.apache.myfaces.ERROR_HANDLER


root cause

cz.pajasoftovi.TestJSF.ErrorRedirectJSFPageHandler in classloader


	java.lang.ClassLoader.loadClass(Unknown Source)
	java.lang.ClassLoader.loadClassInternal(Unknown Source)
	java.lang.Class.forName0(Native Method)
	java.lang.Class.forName(Unknown Source)


	Yes, I known this is classloading issue... so I'm trying to add MyFaces JSF
(1.2) implementation (myfaces-api, myfaces-impl) to application WEB-INF/lib
directory and in Geronimo deployment descriptor I'm hiding javax.faces and
org.apache.myfaces to prevent loading the Geronimo server version of MyFaces
(my and Geronimo version are though identical) and all is working AS

	So my simple question is how to modify web.xml (or better in
geronimo-web.xml) to working as expected with Geronimo server bundled
MyFaces package? How to modify classloading by deploy descriptor
(inverse-classloading... don't work)? It's possible by modify deploying
descriptor or some special GBEAN configuration is required? I don't like to
distribute own version of MyFaces...


Ing. Pavel Janoušek
technická podpora

FoNet, spol. s r.o.
Za Kovárnou 9, 625 00 Brno
Tel.: +420 543 244 749
Fax.: +420 543 244 751
WWW : http://WWW.FoNet.Cz/ 

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message