13:24:54,703 ERROR [ContainerBase] Servlet.service() for servlet action threw exception
javax.naming.NameNotFoundException: VCMCommonDaoBeanLocal not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:581)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:589)
at org.jnp.server.NamingServer.getObject(NamingServer.java:595)
at org.jnp.server.NamingServer.lookup(NamingServer.java:342)
at org.jnp.server.NamingServer.lookup(NamingServer.java:316)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
当你把EJB发布到JBOSS后,你就可以在jboss 的管理平台查看她们的JNDI 名,输入下面URL http://localhost:8080/jmx-console/,点击service=JNDIView link,在出现的page里找到List of MBean operations:栏的list()方法,click Invokebutton,就会看到下面的界面
[img]http://p.blog.csdn.net/images/p_blog_csdn_net/totogogo/a.jpg[/img]
ejb没有在容器中JNDI中声明了么
EJB 真实的绑定到了 JNDI中,才能被访问
VCMCommonDaoBeanLocal 没有在jndi中声明
当你把EJB发布到JBOSS后,你就可以在jboss 的管理平台查看她们的JNDI 名,输入下面URL http://localhost:8080/jmx-console/,点击“service=JNDIView” link,在出现的page里找到“List of MBean operations:”栏的“list()”方法,click “Invoke”button,就会看到下面的界面