title: Websphere 8 JNDI lookup of local EJB object
body: <p>I'm trying to call EJB3 Service Bean Local Interface using the JNDI lookup
  and the sample code is like this </p>
  
  <p>localInterfaceObj = (Object) initialContext.lookup("ejblocal:com.infopro.eswx.service.ejb.NdcServiceControllerSBLocal")</p>
  
  <p>but i get error </p>
  
  <p>[10/29/13 16:08:59:609 GMT+08:00] 00000028 SystemErr     R javax.naming.ConfigurationException: NamingManager.getURLContext cannot find the factory for this scheme: ejblocal
  [10/29/13 16:08:59:609 GMT+08:00] 00000028 SystemErr     R  at com.infopro.servicelocator.ServiceLocator.getLocalInterface(ServiceLocator.java:257)
  [10/29/13 16:08:59:609 GMT+08:00] 00000028 SystemErr     R  at com.infopro.servicelocator.ServiceLocator.getLocalInterface(ServiceLocator.java:273)</p>
  
  <p>i've also tried other string inside the lookup() method in the form of
  ejblocal:#
  which is 
  ejblocal:ESERV/ESWX302EJB_NDC.jar/NdcServiceControllerSB#com.infopro.eswx.service.ejb.NdcServiceControllerSBLocal
  and ejblocal:ESERV/ESWX302EJB_NDC/NdcServiceControllerSB#com.infopro.eswx.service.ejb.NdcServiceControllerSBLocal</p>
  
  <p>and ejb/com.infopro.eswx.service.ejb.NdcServiceControllerSBLocal</p>
  
  <p>but still encounter the same error</p>
  
  <p>is there any way to solve this?
  thank you.</p>
  
  <p>regards,
  Tan</p>