我尝试使用tomcat部署应用程序,并且成功了。现在,我需要将 tomcat 设置为默认内置服务器,而不是内部 GWT 服务器,并用它来调试我的应用程序。我面临的问题是我能够成功地将文件上传到托管模式,但是当我尝试将应用程序部署到 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'
我请求您向我建议这个问题的解决方案,或者指导我如何在 eclipse (GWT) 中使用 tomcat 进行调试。
任何人都可以在这个问题上重定向我吗...
任何帮助深表感谢。
感谢您,
Regards
这非常简单,只需按照以下步骤操作即可:
- Get Eclipse 的谷歌插件
- 在 Eclipse 中,右键单击您的项目并选择调试为 -> Web 应用程序(在外部服务器上运行)
- 输入您在 tomcat 上的 Web 应用程序的 URL(例如http://localhost:8080/YourApp/YourApp.htmlEclipse 会给你一个新的 - 它会添加像 ?gwt.codesvr=127.0.0.1:9997 这样的东西
就是这样。只需设置断点并调试即可!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)