Strange problem with SEAM stateful session bean

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-05-07T07:46:07Z Indexed on 2010/05/07 8:28 UTC
Read the original article Hit count: 381

Filed under:
|
|
|
|

Hi,

I've got a staeful session bean.

@Scope(ScopeType.SESSION)
@Name("chuckNorrisBean")
public class ChuckNorrisBean implements Serializable, ChuckNorris

with some function

public void roundHouseKick()
{
    ...
}

interface

@Local
public interface ChuckNorris
{
    public void roundHouseKick()
    {
        ...
    }
}

and calling them on a jsf .xhtml page using

#{chuckNorrisBean.roundHouseKick}

which works perfectly fine. However if I add the @Stateful annotation to the bean so it becomes

@Stateful
@Scope(ScopeType.SESSION)
@Name("chuckNorrisBean")
public class ChuckNorrisBean implements Serializable, ChuckNorris

and the page will load with exceptions complainig about

Exception during request processing:Caused by javax.servlet.ServletException 
with message: "#{chuckNorrisBean.roundHouseKick}: javax.el.MethodNotFoundException: 
//localhost/universe/earth.xhtml @41,65 action=
"#{chuckNorrisBean.roundHouseKick}": Method not found: 
ChuckNorrisBean:a6gkg-w6das4-g8wmgh0y-1-g8woy0wo-4b.roundHouseKick()" 

Any advice on what might've went wrong with my chuckNorrisBean?

The system is built on SEAM/richfaces.

Thanks!

© Stack Overflow or respective owner

Related posts about seam

Related posts about richfaces