[jboss-user] [EJB 3.0] - jsf injection ejb3

slaash do-not-reply at jboss.com
Thu Jan 22 15:31:07 EST 2009


Hello,i've got a problem! :)
i use jboss 5, ejb3, jpa, jsf1.2 under eclipse!
so currently in my ejb project i ve got this:

local interface:
@Local
public interface UserLocal

implementation bean:

@Stateless(name = "UserB", mappedName = "ejb/stateless/User")
public class UserBean implements UserLocal

in the managed bean (JSF) (in the web dynamic project):

@EJB(name = "UserB", mappedName = "ejb/stateless/User")
private UserLocal userBean;

i get this error:

20:37:42,110 ERROR [lifecycle] JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /signon.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl at 1939379]
20:37:42,110 ERROR [[Faces Servlet]] "Servlet.service()" pour la servlet Faces Servlet a généré une exception
javax.naming.NameNotFoundException: User not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)


and i tried with the remote interface and it works, so i don't understand why... please help!lol :)
thanks!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204116#4204116

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204116




More information about the jboss-user mailing list