[jboss-user] [EJB 3.0] - Error working wih EJB3, Struts2 & JBoss 4.2GA
Wolfgang Knauf
do-not-reply at jboss.com
Wed Apr 14 07:32:30 EDT 2010
Wolfgang Knauf [http://community.jboss.org/people/WolfgangKnauf] replied to the discussion
"Error working wih EJB3, Struts2 & JBoss 4.2GA"
To view the discussion, visit: http://community.jboss.org/message/537365#537365
--------------------------------------------------------------
Hi,
first: your bean does not implement the remote interface:
>
> class AuthenticationBean implements AuthenticationLocal, Authentication
>
Maybe this results in deployment problems.
second: your lookup should cast the result to the interface, not to the bean instance!
>
> AuthenticationLocal authEjb = (AuthenticationLocal) ctx.lookup("AuthenticationLocal");
I don't know wheter your "@Local"/"@Remote" declarations work, I think it is better to place them on the interfaces (without parameters in this case).
Hope this helps
Wolfgang
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/537365#537365]
Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100414/c89f7a2c/attachment.html
More information about the jboss-user
mailing list