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开发者_如何学JAVA appreciated.
Thanking you,
Regards
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!
Have you tried to configure your struts.xml file to exclude parameters that seem to cause problem?
<interceptor-stack name="defaultStack">
<interceptor-ref name="params">
<param name="excludeParams">fileUploadContentType,fileUploadFileName</param>
</interceptor-ref>
</interceptor-stack>
精彩评论