[ 
https://issues.apache.org/jira/browse/WICKET-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Quenot reassigned WICKET-457:
-------------------------------------------

    Assignee: Jean-Baptiste Quenot

> wicket-quickstart issue with wicket-spring : classCastException
> ---------------------------------------------------------------
>
>                 Key: WICKET-457
>                 URL: https://issues.apache.org/jira/browse/WICKET-457
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-quickstart, wicket-spring
>    Affects Versions: 1.2.5
>            Reporter: Mathieu Sacrispeyre
>         Assigned To: Jean-Baptiste Quenot
>
> There is a classloader issue when using wicket-spring with wicket-quickstart 
> : a classCastException is raised when trying to do something like 
> (MyWebApplication) getApplication() in a page.
> In fact Jetty uses its own classloader and not the system one. The problem 
> can be solved configuring Jetty to use the good classloader : the one used by 
> the rest of the application (Spring...).
> With Jetty 6 (wicket-quickstart currently uses Jetty 4.2) it can be done like 
> this :
> WebAppContext web = new WebAppContext();
> web.setClassLoader(Start.class.getClassLoader());
> ...
> server.addHandler(web);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to