You need to tell Stripes to use MyAppActionBeanContext, either by configuring the package in Extension.Packages in web.xml, or by specifying MyAppActionBeanContext (with its package) in the ActionBeanContext.Class parameter.
Cheers, Freddy http://www.stripesbook.com On Tue, 02 Dec 2008 16:44:53 +0100, "kriko" <[EMAIL PROTECTED]> said: > I recently started working with web-apps and stripes and I have a > problem. > I'm working as described in best-practices section and here: > http://www.stripesframework.org/display/stripes/State+Management > > but it seems I cannot cast ActionBeanContext to MyAppActionBeanContext: > java.lang.ClassCastException: > net.sourceforge.stripes.action.ActionBeanContext cannot be cast to > si.marand.hello.actions.MyAppActionBeanContext > > MyAppActionBeanContext extends ActionBeanContext and MyActionBean > implements ActionBean, nothing advanced just basic sample as on state > management section. > What can be wrong? > > I'm using tomcat 6.x with sun java 1.6, developed in eclipse with same > java. > > Here is the full code: > http://pastebin.com/m19b62d6a > http://pastebin.com/d4a3d4600 > > -- > kriko > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
