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

编程入门 行业动态 更新时间:2024-10-26 07:34:19
使用Tomcat调试GWT应用程序(Eclipse)(Debug GWT Application with Tomcat (Eclipse))

我试图用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'

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

有人可以在这个问题上重定向我...

任何帮助深表感谢。

感谢您,

问候

I have tried to deploy the application with tomcat and I am succeeded. Now instead of internal GWT server I need to set tomcat as default inbuilt server and debug my application with it. The problem here I am facing is I am able to upload file into hosted mode successfully but when I tried to deploy my application to tomcat it gives me error to Struts interceptor.

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'

I request you suggest me the solution to this issue or redirect me on how to debug with tomcat in eclipse (GWT).

Can anybody redirect me on this issue...

Any help is much appreciated.

Thanking you,

Regards

最满意答案

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

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

就是这样。 只需设置断点并调试!

It's really easy, just follow these steps:

Get google plugin for eclipse The in eclipse, right click on your project and choose Debug as -> Web Application (running on external server) Enter URL of your web app on tomcat (like http://localhost:8080/YourApp/YourApp.html and eclipse will give you new one - it will add stuff like ?gwt.codesvr=127.0.0.1:9997

And that's it. Just set up your breakpoints and debug!

更多推荐

本文发布于:2023-08-07 23:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466447.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   GWT   Tomcat   Application   Debug

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!