-
1. Re: javax.naming.NameNotFoundException: XYZSessionBeanLocal not bound
nik... Oct 11, 2012 4:58 AM (in response to nik...)I checked for that bean in jmx console and it is also there
-
2. Re: javax.naming.NameNotFoundException: XYZSessionBeanLocal not bound
wdfink Oct 11, 2012 5:57 AM (in response to nik...)That will be a bit poor information, could you attach the lookup code, the full error stacktrace and show how the bean is bound in JNDI?
Do you see any errors if the server is started and the application deployed?
-
3. Re: javax.naming.NameNotFoundException: XYZSessionBeanLocal not bound
nik... Oct 17, 2012 2:32 AM (in response to wdfink)Hi Wolf,
jndi view-
| +- XYZSessionBeanLocal (proxy: $Proxy6055 implements interface com.ejb.sys.ag.interfaces.IXYZBeanLocalHome)
and
InitialContext initialContext;
if(cachedLocalHome != null)
break MISSING_BLOCK_LABEL_40;
initialContext = new InitialContext();
cachedLocalHome = (IXYZBeanLocalHome)initialContext.lookup("java:comp/env/ejb/XYZBeanLocal");
initialContext.close();
break MISSING_BLOCK_LABEL_40;
Exception exception;
exception;
initialContext.close();
throw exception;
return cachedLocalHome;
-
4. Re: javax.naming.NameNotFoundException: XYZSessionBeanLocal not bound
nik... Oct 18, 2012 3:39 AM (in response to nik...)Hi ,
Actually I am invoking this method which have lookup code from other bean using java reflection api.
after some experimental changes I found that if I remove the reflection code and use the ejb calls with ejb ext ref then it works.
FYI code was working then I migrated my project from java 5 to java 6 and jboss 3.2.6 to jboss 5.1.2 EAP.ANd it stopped working.
So if anyone knows that what changes to be done in reflection related to migration please tell me.
-
5. Re: javax.naming.NameNotFoundException: XYZSessionBeanLocal not bound
nik... Oct 18, 2012 7:33 AM (in response to nik...)Hi All,
Issue Resolved.
Reason : I had removed all my ext ref during migration to remove deployment errors.
soln : converted local calls to remote.
Thanks to all who replied.