Kriko,

It is probably a configuration issue - Stripes is not detecting and  
using your ActionBeanContext subclass.

Check that you either have an extensions package configured in web.xml  
*and* that MyAppActionBeanContext is in or beneath that package, *or*  
explicitly configure the ActionBeanContext class in web.xml using the  
configuration described in the state management page you linked to.

Chris.

On Dec 2, 2008, at 10:44 AM, kriko wrote:

> 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

Reply via email to