banq,你好,我有一个急需解决的问题??

05-10-19 lvyg
请看一下这个错误,最有可能的几个原因是什么???

2005-10-18 23:58:35,343 - org.apache.struts.actions.DispatchAction:307 - ERROR org.apache.struts.actions.DispatchAction - Dispatch[/searchBatch] to method getSPBatchInfo returned an exception

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)

at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)

at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)

at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)

at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)

at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

Caused by: java.lang.NoClassDefFoundError: new97/sp/util/page/Page

at new97.sp.delegate.SPBatchInfoDelegate.getSPBatchInfo(SPBatchInfoDelegate.java:348)

at new97.sp.struts.SPBatchInfoAction.getSPBatchInfo(SPBatchInfoAction.java:418)

... 22 more

banq
2005-10-19 10:39
方法getSPBatchInfo中调用了new97/sp/util/page/Page这个类,但是打包部署包中没有发现这个类,检查打包中有否?或可能与容器的classloader有关。

lvyg
2005-10-22 13:05
哦,是这个意思,但问题是这个类已经有了,为什么还出现这种错语?

请问容器的classloader是什么意思,怎么个原理?

banq
2005-10-22 18:26
你虽然打包进入了部署包,但是容器还是找不到这个类,看你是什么容器,解决起来复杂,你换几种部署打包方式试验看看。

猜你喜欢