javax.ejb.NoSuchEJBException:EJBCLIENT000079 Eclipse,JBOSS,EJB 3.1

javax.ejb.NoSuchEJBException: EJBCLIENT000079 Eclipse, JBOSS,EJB 3.1

javax.ejb.NoSuchEJBException: EJBCLIENT000079 with JBoss 7.1 and Eclipse

我的测试代码与上面post中给出的完全相同,我面临的问题也在同一post中提到,但没有看到任何确认的解决方案。

如果你有任何solutions/ideas,请告诉我。

Properties jndiProperties = new Properties();
jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
jndiProperties.put(Context.PROVIDER_URL, "http-remoting://127.0.0.1:8080/"); // double-check IP and PORT of your app server; you may need to use remote+http or remote+https
jndiProperties.put("jboss.naming.client.ejb.context", true);
jndiProperties.put("org.jboss.ejb.client.scoped.context", "true"); 

Context context = new InitialContext(jndiProperties); 
HelloWorld bean=(HelloWorld)context.lookup("/HellowWorldSessionBean/HelloWorldBean!com.sample.ejb.HelloWorld");