Are you sure ?
See WicketFilter's code and the usage
of org.apache.wicket.protocol.http.WicketFilter.getClassLoader()
ReloadingWicketFilter overrides this method so the reloading class loader
should be used in init() and doFilter().

2011/4/1 Hideyuki TAKEUCHI <webmas...@chimera.st>

> Hi all,
>
> From Wicket 1.5, ReloadingWicketFilter does not work.
> It seems a classloader from WicketFilter.getClassLoader()
> isn't used on instancing WebApplication (WicketFilter.java:281).
>
> The below code works correctly, but ad-hoc.
>
> public class MyWicketFilter extends ReloadingWicketFilter {
>  static {
>    ReloadingClassLoader.includePattern("myapplication.web.**");
>  }
>
>  @Override
>  public void init(boolean isServlet, FilterConfig filterConfig)
>      throws ServletException {
>    // force it to use ReloadingClassLoader
>    Thread.currentThread().setContextClassLoader(getClassLoader());
>
>    super.init(isServlet, filterConfig);
>  }
> }
>
>
> Anyone has an idea how to fix this?
>
> --
> Hideyuki TAKEUCHI
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Reply via email to