GWT in its web mode throws a StatusCodeException, but in hosting mode it works fine

I am new to this forum.

Actually I have a problem regarding my application which is hibernate + location based application. We recently decided to integrate GWT into our application. We are using the gwt 1.5.3 assembly.

We installed everything exactly as we find in the documentation and various blogs. Yes, I am now in a very nervous state, how gwt in its web mode confuses me a lot. But it compiles and works fine in its hosted mode and everything works as we expected and designed. When I try to integrate GWT with our applications, that is working in tomcat ( http: // localhost: 8080 / myapps / example.do ? ReqCode = takeMeToGWT & user id = 12 & templateId = 10). The gwt page is loaded partially and in the middle, this excludes, i.e. StatusCodeException. This doesn't happen when I run the gwt application in host mode ( http: // localhost: 8888 / com.myapp.gwt.MyApp / Home.html ).

I am using Intellij Idea 8, struts 1.3, hibernate 3 and tomcat 5.5.

Expect your responses as soon as possible.

Thanking you B Roshnikanta Sharma broshnikanta@gmail.com

+2


a source to share


2 answers


Yes, Mark! The thing is, this integration was done a few months later, but unfortunately I was not in the process. At the time, gwt 1.5.3 was a stable release, so we chose it. And the applicable one was deployed and cleints started using it !!! Recently, the whole module was handed over to me and I started to study all this again. it was tuned to my system. I don't want to update the jar to 2.0.

What exactly leads to this particular exception: StatusCodeException. There seems to be some issue in the rendering of the servlets or some kind of inconsistent compiled class.



I am setting up my project (in Intellij Idea) such that the libraries (gwt jars - advanced-components-1.4.6.jar, gwt-dev-windows.jar, gwtext.jar, gwt-user) are copied to WEB-INF / Lib.

0


a source


Yes, I even tried debugging in firebug but there was only a javascript Alert message where this exception was thrown. And I also compile in -style = pretty mode. There is nothing wrong with host mode, but when I try to run the same thing in web mode, it handles me in an embarrassing pattern.

I have configured the display of the servlet as discussed or mentioned in all blogs or forums.



What is a StatusCodeException.

0


a source







All Articles