hi, Udo, seems to be correct.
i created an own filter for my testcases exactly as you described it. and everything works fine for me. can you post more of your stackstrace? g, kris "Udo Abel" <[EMAIL PROTECTED]> 14.07.2008 13:59 Bitte antworten an "Tapestry users" <users@tapestry.apache.org> An "Tapestry users" <users@tapestry.apache.org> Kopie Thema Re: TapestryFilter subclassing problem Hi Kris, maybe my understanding is wrong. To be clear: what I've tried is to implement this class: public class ErpTapestryFilter extends TapestryFilter { protected void init(Registry registry) { // .. do some initialization } } and replaced the "TapestryFilter" with my "ErpTapestryFilter" in the web.xml. The result should be that the following method from TapestryFiler should be overriden: /** * Invoked from [EMAIL PROTECTED] #init(FilterConfig)} after the Registry has been created, to allow any additional * initialization to occur. This implementation does nothing, and my be overriden in subclasses. * * @param registry from which services may be extracted * @throws ServletException */ protected void init(Registry registry) throws ServletException { } What's wrong with that? Does "...maybe overriden in subclasses" mean: "...in tapestry-internal subclasses" ? Thanks, Udo. -------- Original-Nachricht -------- > Datum: Mon, 14 Jul 2008 13:40:42 +0200 > Von: Kristian Marinkovic <[EMAIL PROTECTED]> > An: "Tapestry users" <users@tapestry.apache.org> > Betreff: Re: TapestryFilter subclassing problem > Hi Udo, > > take a closer look at your code. the init() method > you override is not the one from the Filter!! > > it is a method to add additional inits AFTER the > Registry has been started. > > take a look at org.apache.tapestry5.TapestryFilter.java > > btw. you cannot override init() because it is marked final. > > g, > kris > > > > > "Udo Abel" <[EMAIL PROTECTED]> > 14.07.2008 08:55 > Bitte antworten an > "Tapestry users" <users@tapestry.apache.org> > > > An > <users@tapestry.apache.org> > Kopie > > Thema > TapestryFilter subclassing problem > > > > > > > > Hi, > > when I try to subclass TapestryFilter to do some initialization in the > overridden init(), I get a runtime exception during filter start: > > ERROR main org.mortbay.log - failed TapTest > java.lang.RuntimeException: Error building service proxy for service > 'ServletApplicationInitializer' (at > org.apache.tapestry5.services.TapestryModule.buildServletApplicationInitializer(Logger, > List, ApplicationInitializer) (at TapestryModule.java:951)): argument type > mismatch > at > org.apache.tapestry5.ioc.internal.ModuleImpl.create(ModuleImpl.java:245) > > even though the overridden method is yet empty. > > Using Tapestry 5.0.13. > > Is there anything else to do than subclassing the TapestryFilter and using > it in the web.xml? > > Thanks, > Udo. > > > -- > Psssst! Schon das coole Video vom GMX MultiMessenger gesehen? > Der Eine für Alle: http://www.gmx.net/de/go/messenger03 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]