使用Tomcat调试GWT应用程序(Eclipse)

Ash*_*och 3 java eclipse gwt tomcat struts

我试图用tomcat部署应用程序,我成功了.现在代替内部GWT服务器,我需要将tomcat设置为内置服务器的默认值并使用它调试我的应用程序.我面临的问题是我能够成功将文件上传到托管模式,但是当我尝试将我的应用程序部署到tomcat时,它给了我Struts拦截器的错误.

ERROR ParametersInterceptor.setParameters():242 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'fileUploadContentType' on 'class com.example.server.actions.FileUploadAction: Error setting expression 'fileUploadContentType' with value '[Ljava.lang.String;@12569b8'
ERROR ParametersInterceptor.setParameters():242 - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'fileUploadFileName' on 'class com.example.server.actions.FileUploadAction: Error setting expression 'fileUploadFileName' with value '[Ljava.lang.String;@13fb1ab'
Run Code Online (Sandbox Code Playgroud)

我请求你建议我解决这个问题,或者重定向我如何在eclipse(GWT)中使用tomcat进行调试.

任何人都可以在这个问题上重定向我......

任何帮助深表感谢.

感谢您,

问候

Xor*_*rty 7

这很简单,只需按照以下步骤操作:

  1. 获取eclipse的google插件
  2. 在eclipse中,右键单击您的项目并选择Debug as - > Web Application(在外部服务器上运行)
  3. 在tomcat上输入您的Web应用程序的URL(例如http:// localhost:8080/YourApp/YourApp.html,eclipse将为您提供新的 - 它会添加诸如?gwt.codesvr = 127.0.0.1:9997之类的内容

就是这样.只需设置断点并进行调试!