寻找高手!!JBuilder6|EJB|JSP 页面测试错误/疑问!!!
我在用JSP直接调用实体时,出现错误。我是这样做的:首先,定义实体并用JBuilder6生成的测试文件测试(包括其他查找方法),都是正确的。然后,我新建WebApp,并添加JSP页面。在编译JSP时出现错误。错误详细的清单如下:
**************JSP 编译时:***************
java.lang.NullPointerException
--------------- nested within: ------------------
"testJsp.jsp": weblogic.utils.Assertionerror: ***** ASSERTION FAILED ***** - with nested exception:
[java.lang.NullPointerException]
java.lang.NullPointerException
--------------- nested within: ------------------
"testJsp.jsp": weblogic.utils.Assertionerror: ***** ASSERTION FAILED ***** - with nested exception:
[java.lang.NullPointerException]
如下是更多的Weblogic控制台信息。来源于对test war的察看,更确切的说来源于 Edit Web Application Descriptor的摘抄。没有列写详细的log 文件。
实体从JNDI以及各方面测试来看,是完全正确的。
java.lang.NullPointerException
at weblogic.management.console.utils.MBeans.getMBeanClassFor(MBeans.java:799)
at weblogic.management.console.actions.internal.ActionUtils.getAreaFor(ActionUtils.java:142)
at weblogic.management.console.actions.mbean.MBeanDescriptorFramesetAction.perFORM(MBeanDescriptorFramesetAction.java:136)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:172)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]
at weblogic.management.console.utils.MBeans.getMBeanClassFor(MBeans.java:801)
at weblogic.management.console.actions.internal.ActionUtils.getAreaFor(ActionUtils.java:142)
at weblogic.management.console.actions.mbean.MBeanDescriptorFramesetAction.perFORM(MBeanDescriptorFramesetAction.java:136)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:172)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.management.console.actions.ActionException - with nested exception:
[weblogic.utils.NestedRuntimeException - with nested exception:
[java.lang.NullPointerException]
at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:38)
at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:191)
at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Current Date
Mon Dec 23 13:05:01 CST 2002
Console Release Build
Console Build
Server Release Build
6.1.0.0
Server Build
WebLogic Server 6.1 07/23/2001 22:31:20 #129251
其他信息略