Skip to main content

Exception attempting to inject Remote ejb-ref name [Glassfish HA]

No replies
nejikap
Offline
Joined: 2013-05-25
Points: 0

Hi,
Please, some advice to my issue:

I have devoloped an application that uses EJB 3x and it works perfectly over simple Glassfish server Instance.
But in my production Environment (Composed by two glassfish server in High Availavility) I get the next exception:

Caused by: com.sun.faces.spi.InjectionProviderException: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote,Remote 3.x interface =com.htctest.ejb.manager.UsuariosManagerRemote,ejb-link=null,lookup=,mappedName=,jndi-name=com.htctest.ejb.manager.UsuariosManagerRemote,refType=Session into class com.htctest.plantilla.CredencialesBean: Lookup failed for 'java:comp/env/com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}
at org.glassfish.faces.integration.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:194)
at com.sun.faces.mgbean.BeanBuilder.injectResources(BeanBuilder.java:205)
... 54 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote,Remote 3.x interface =com.htctest.ejb.manager.UsuariosManagerRemote,ejb-link=null,lookup=,mappedName=,jndi-name=com.htctest.ejb.manager.UsuariosManagerRemote,refType=Session into class com.htctest.plantilla.CredencialesBean: Lookup failed for 'java:comp/env/com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:703)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:470)
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:171)
at org.glassfish.faces.integration.GlassFishInjectionProvider.inject(GlassFishInjectionProvider.java:184)
... 55 more
Caused by: javax.naming.NamingException: Lookup failed for 'java:comp/env/com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=com.htctest.plantilla.CredencialesBean/ejbManagerUsuariosRemote,Remote 3.x interface =com.htctest.ejb.manager.UsuariosManagerRemote,ejb-link=null,lookup=,mappedName=,jndi-name=com.htctest.ejb.manager.UsuariosManagerRemote,refType=Session' . Actual (possibly internal) Remote JNDI name used for lookup is 'com.htctest.ejb.manager.UsuariosManagerRemote#com.htctest.ejb.manager.UsuariosManagerRemote' [Root exception is javax.naming.NamingException: Lookup failed for 'com.htctest.ejb.manager.UsuariosManagerRemote#com.htctest.ejb.manager.UsuariosManagerRemote' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: ejb ref
resolution error for remote business interfacecom.htctest.ejb.manager.UsuariosManagerRemote [Root exception is java.rmi.RemoteException: CORBA UNKNOWN 1330446338 Maybe; nested exception is:
org.omg.CORBA.UNKNOWN: ----------BEGIN server-side stack trace----------
org.omg.CORBA.UNKNOWN: WARNING: IOP00010002: Unknown user exception thrown by the server - exception: java.lang.IllegalArgumentException; message: null vmcid: OMG minor code: 2 completed: Maybe