我有一个在 Tomcat 上运行的基于 Spring 的 Web 应用程序,我希望在 Eclipse 中进行调试。我设法在调试模式(JPDA)下运行 Tomcat。但是我遇到了Source not found错误。
我之前看到过类似的问题,但我找不到确切的答案。
Source not found发生的堆栈跟踪是
Daemon Thread [http-8080-3] (Suspended)
Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Object, Method, Object[], MethodProxy) line: 602
SpringTestService$$EnhancerByCGLIB$$2f23d34d.update(SpringTestVO) line: not available
SpringTestManager.update(SpringTestForm) line: 65
SpringTestAction.doExecute(ActionMapping, ActionForm) line: 65
SpringTestAction(BaseAction).execute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) line: 196
DelegatingActionProxy.execute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) line: 106
TilesRequestProcessor(RequestProcessor).processActionPerform(HttpServletRequest, HttpServletResponse, Action, ActionForm, ActionMapping) line: 419
TilesRequestProcessor(RequestProcessor).process(HttpServletRequest, HttpServletResponse) line: 224
ActionServlet.process(HttpServletRequest, HttpServletResponse) line: 1196
ActionServlet.doPost(HttpServletRequest, HttpServletResponse) line: 432
ActionServlet(HttpServlet).service(HttpServletRequest, HttpServletResponse) line: 637
ActionServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 717
ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 290
ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206
StandardWrapperValve.invoke(Request, Response) line: 233
StandardContextValve.invoke(Request, Response) line: 191
StandardHostValve.invoke(Request, Response) line: 127
ErrorReportValve.invoke(Request, Response) line: 103
StandardEngineValve.invoke(Request, Response) line: 109
CoyoteAdapter.service(Request, Response) line: 293
Http11Processor.process(Socket) line: 861
Http11Protocol$Http11ConnectionHandler.process(Socket) line: 606
JIoEndpoint$Worker.run() line: 489
Thread.run() line: 662
类SpringTestService
, SpringTestManager
,SpringTestAction
和由我编写SpringTestForm
。SpringTestVO
它无法找到Cglib2AopProxy$DynamicAdvisedInterceptor
Spring 库中的源代码。
我在创建调试配置时在“源文件夹”中添加了所需的库、JAR 和项目。