我正在尝试调用Servlet,但会发生以下异常:
服务器遇到阻止的内部错误() 它来自履行这一要求。
javax.servlet.ServletException:PWC1392:实例化servlet时出错 class Web.ListNewsData根本原因com.sun.enterprise.container.common.spi.util.InjectionException:错误 为类Web.ListNewsData创建托管对象根本原因
com.sun.enterprise.container.common.spi.util.InjectionException: 尝试注入Remote ejb-ref name = UserSession,Remote的异常 3.x interface = SessionBean.UserSession,ejb-link = null,lookup = null,mappedName =,jndi-name = SessionBean.UserSession,refType = Session 到类Web.ListNewsData根本原因
javax.naming.NamingException:查找失败 SerialContext中的'java:comp / env / UserSession'[根异常是 javax.naming.NamingException:异常解析'Remote的Ejb ejb-ref name = UserSession,Remote 3.x接口 = SessionBean.UserSession,EJB链接= NULL,查找= NULL,mappedName =,JNDI名称= SessionBean.UserSession,RefType的=会话” 。用于查找的实际(可能是内部)远程JNDI名称是 'SessionBean.UserSession#SessionBean.UserSession'[根异常是 javax.naming.NamingException:查找失败 SerialContext中的“SessionBean.UserSession#SessionBean.UserSession” [根异常是javax.naming.NameNotFoundException: SessionBean.UserSession#SessionBean.UserSession not found]]] root 原因
javax.naming.NamingException:异常解析'Remote的Ejb ejb-ref name = UserSession,Remote 3.x接口 = SessionBean.UserSession,EJB链接= NULL,查找= NULL,mappedName =,JNDI名称= SessionBean.UserSession,RefType的=会话” 。用于查找的实际(可能是内部)远程JNDI名称是 'SessionBean.UserSession#SessionBean.UserSession'[根异常是 javax.naming.NamingException:查找失败 SerialContext中的“SessionBean.UserSession#SessionBean.UserSession” [根异常是javax.naming.NameNotFoundException: SessionBean.UserSession#SessionBean.UserSession not found]]根本原因
javax.naming.NamingException:查找失败 SerialContext中的“SessionBean.UserSession#SessionBean.UserSession” [根异常是javax.naming.NameNotFoundException: SessionBean.UserSession#SessionBean.UserSession not found]根本原因
javax.naming.NameNotFoundException: SessionBean.UserSession#SessionBean.UserSession not found
我们正在使用Glassfish服务器。