Código:
Mi bean de estidades este:javax.naming.NameNotFoundException: dataUserLocal not bound 14:22:42,109 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) 14:22:42,109 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) 14:22:42,109 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543) 14:22:42,109 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:296) 14:22:42,109 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) 14:22:42,109 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 14:22:42,109 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source) 14:22:42,109 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) 14:22:42,109 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Unknown Source) 14:22:42,109 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method) 14:22:42,109 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Unknown Source) 14:22:42,109 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) 14:22:42,156 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source) 14:22:42,156 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) 14:22:42,156 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 14:22:42,156 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 14:22:42,156 ERROR [STDERR] at java.lang.Thread.run(Unknown Source) 14:22:42,156 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source) 14:22:42,156 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) 14:22:42,156 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(Unknown Source) 14:22:42,156 ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) 14:22:42,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625) 14:22:42,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587) 14:22:42,156 ERROR [STDERR] at javax.naming.InitialContext.lookup(Unknown Source) 14:22:42,171 ERROR [STDERR] at es.navilla.connectiondatauser.business.forms.FormConnectionDataUser.<init>(FormConnectionDataUser.java:84) 14:22:42,171 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 14:22:42,171 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 14:22:42,171 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 14:22:42,171 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Unknown Source) 14:22:42,171 ERROR [STDERR] at java.lang.Class.newInstance0(Unknown Source) 14:22:42,171 ERROR [STDERR] at java.lang.Class.newInstance(Unknown Source) 14:22:42,171 ERROR [STDERR] at com.sun.faces.config.ManagedBeanFactoryImpl.newInstance(ManagedBeanFactoryImpl.java:277) 14:22:42,171 ERROR [STDERR] at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:550) 14:22:42,171 ERROR [STDERR] at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:82) 14:22:42,171 ERROR [STDERR] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) 14:22:42,171 ERROR [STDERR] at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64) 14:22:42,171 ERROR [STDERR] at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:45)
Código:
y mi bean de sesion así:@Local public interface DataUserLocal extends DataUser { }
Código:
Para llamarlo que es donde me da el error el codigo es:@Stateless @LocalBinding(jndiBinding = "dataUserLocal") @RemoteBinding(jndiBinding = "dataUserRemote") public class DataUserBean implements DataUserLocal, DataUserRemote{ .....
Código:
Al hacer le initial.lookup("dataUserLocal"); me salta el error.InitialContext initial; try { initial = ManagerContext.getInitialContext(); DataUserLocal du; du = (DataUserLocal) initial.lookup("dataUserLocal"); du.isUserId(userId); ....
Lo que mas mosqueado me tiene es que tengo otro proyecto en el mismo servidor con el que hago los mismos pasos y me funciona a la perfección.
Ayuda por favor!!!!