[英]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進行調試。
任何人都可以在這個問題上重定向我......
任何幫助深表感謝。
感謝您,
問候
這很簡單,只需按照以下步驟操作:
就是這樣。 只需設置斷點並進行調試!
您是否嘗試配置struts.xml文件以排除似乎導致問題的參數?
<interceptor-stack name="defaultStack">
<interceptor-ref name="params">
<param name="excludeParams">fileUploadContentType,fileUploadFileName</param>
</interceptor-ref>
</interceptor-stack>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.