users@glassfish.java.net

Re: Exception attempting to inject Remote ejb-ref name

From: <forums_at_java.net>
Date: Tue, 4 Mar 2014 20:21:46 -0600 (CST)

I too have the same problem.
com.sun.enterprise.container.common.spi.util.InjectionException: Exception
attempting to inject Remote ejb-ref
name=wisenapplicationclient.Main/wisenStatefulBean,Remote 3.x interface
=wisen.stateful.WisenStatefulBeanRemote,ejb-link=null,lookup=,mappedName=,jndi-name=wisen.stateful.WisenStatefulBeanRemote,refType=Session
into class wisenapplicationclient.Main: Lookup failed for
'java:comp/env/wisenapplicationclient.Main/wisenStatefulBean' in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.factory.url.pkgs=com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:717)
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:484)
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:212)
at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:204)
at
org.glassfish.appclient.client.acc.AppClientContainer$ClientMainClassSetting.getClientMainClass(AppClientContainer.java:636)
at
org.glassfish.appclient.client.acc.AppClientContainer.getMainMethod(AppClientContainer.java:525)
at
org.glassfish.appclient.client.acc.AppClientContainer.completePreparation(AppClientContainer.java:419)
at
org.glassfish.appclient.client.acc.AppClientContainer.prepare(AppClientContainer.java:320)
at
org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:279)
at
org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606) at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
at
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
Caused by: javax.naming.NamingException: Lookup failed for
'java:comp/env/wisenapplicationclient.Main/wisenStatefulBean' in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.factory.url.pkgs=com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
[Root exception is javax.naming.NamingException: Exception resolving Ejb for
'Remote ejb-ref name=wisenapplicationclient.Main/wisenStatefulBean,Remote 3.x
interface
=wisen.stateful.WisenStatefulBeanRemote,ejb-link=null,lookup=,mappedName=,jndi-name=wisen.stateful.WisenStatefulBeanRemote,refType=Session'
. Actual (possibly internal) Remote JNDI name used for lookup is
'wisen.stateful.WisenStatefulBeanRemote#wisen.stateful.WisenStatefulBeanRemote'
[Root exception is javax.naming.NamingException: Lookup failed for
'wisen.stateful.WisenStatefulBeanRemote#wisen.stateful.WisenStatefulBeanRemote'
in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.factory.url.pkgs=com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
[Root exception is javax.naming.NameNotFoundException:
wisen.stateful.WisenStatefulBeanRemote#wisen.stateful.WisenStatefulBeanRemote
not found]]] at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
at javax.naming.InitialContext.lookup(InitialContext.java:411) at
com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:613)
... 15 more Caused by: javax.naming.NamingException: Exception resolving Ejb
for 'Remote ejb-ref name=wisenapplicationclient.Main/wisenStatefulBean,Remote
3.x interface
=wisen.stateful.WisenStatefulBeanRemote,ejb-link=null,lookup=,mappedName=,jndi-name=wisen.stateful.WisenStatefulBeanRemote,refType=Session'
. Actual (possibly internal) Remote JNDI name used for lookup is
'wisen.stateful.WisenStatefulBeanRemote#wisen.stateful.WisenStatefulBeanRemote'
[Root exception is javax.naming.NamingException: Lookup failed for
'wisen.stateful.WisenStatefulBeanRemote#wisen.stateful.WisenStatefulBeanRemote'
in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.factory.url.pkgs=com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
[Root exception is javax.naming.NameNotFoundException:
wisen.stateful.WisenStatefulBeanRemote#wisen.stateful.WisenStatefulBeanRemote
not found]] at
com.sun.ejb.EjbNamingReferenceManagerImpl.resolveEjbReference(EjbNamingReferenceManagerImpl.java:188)
at
com.sun.enterprise.container.common.impl.ComponentEnvManagerImpl$EjbReferenceProxy.create(ComponentEnvManagerImpl.java:1143)
at
com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:745)
at
com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:715)
at
com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:159)
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:471)
... 18 more Caused by: javax.naming.NamingException: Lookup failed for
'wisen.stateful.WisenStatefulBeanRemote#wisen.stateful.WisenStatefulBeanRemote'
in
SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory,
java.naming.factory.url.pkgs=com.sun.enterprise.naming,
java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
[Root exception is javax.naming.NameNotFoundException:
wisen.stateful.WisenStatefulBeanRemote#wisen.stateful.WisenStatefulBeanRemote
not found] at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:491)
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:438)
at javax.naming.InitialContext.lookup(InitialContext.java:411) at
com.sun.ejb.EjbNamingReferenceManagerImpl.resolveEjbReference(EjbNamingReferenceManagerImpl.java:183)
... 23 more Caused by: javax.naming.NameNotFoundException:
wisen.stateful.WisenStatefulBeanRemote#wisen.stateful.WisenStatefulBeanRemote
not found at
com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:237)
at
com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:204)
at
com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:66)
at
com.sun.enterprise.naming.impl.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606) at
com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie.dispatchToMethod(ReflectiveTie.java:143)
at
com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:173)
at
com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatchToServant(ServerRequestDispatcherImpl.java:528)
at
com.sun.corba.ee.impl.protocol.ServerRequestDispatcherImpl.dispatch(ServerRequestDispatcherImpl.java:199)
at
com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequestRequest(MessageMediatorImpl.java:1549)
at
com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:1425)
at
com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleInput(MessageMediatorImpl.java:930)
at
com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:213)
at
com.sun.corba.ee.impl.protocol.MessageMediatorImpl.handleRequest(MessageMediatorImpl.java:694)
at
com.sun.corba.ee.impl.protocol.MessageMediatorImpl.dispatch(MessageMediatorImpl.java:496)
at
com.sun.corba.ee.impl.protocol.MessageMediatorImpl.doWork(MessageMediatorImpl.java:2222)
at
com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
at
com.sun.corba.ee.impl.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
Any solution please Java Training in Chennai [1]

[1] http://wisentechnologies.com/it-courses/java-training.aspx

--
[Message sent by forum member 'gymprathap']
View Post: http://forums.java.net/node/896937