请教关于ejb方面的异常

06-08-04 ziyehanbin
我在学习用jboss,tomcat 搭建ejb服务时,报以下异常,请问是哪里出错了呀!!

谢谢各位了!!

-------------------------------------------------------------

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

java.lang.ClassCastException

com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)

javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)

org.apache.jsp.common_jsp.jspInit(common_jsp.java:28)

org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:78)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:155)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

--------------------------------------------------------------------------------

Apache Tomcat/5.5.17

banq
2006-08-08 09:55
>ClassCastException

是在调用远程remote性质的EJBHome时,出错,你将其downcast为你的EJB类型,可是它不是。

猜你喜欢