tomasbilek / gwteventservice

Automatically exported from code.google.com/p/gwteventservice
Other
0 stars 0 forks source link

GWTEventService only works in hosted mode #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have created a simple upload module, that should send its progress and 
error messages, if occurring. No special settings are used (running without
any properties file).

In the hosted mode browser (embedded ie under windows, embedded mozilla
under linux) the messages are displayed by the client. But when deployed,
there was exactly nothing. No message displayed by the client, no error
message or stacktrace at server side.

I had run the tests using Version 0.9 and the final release 1.0, servers
and clients in combination of windows and linux systems.
The server in most cases was a Tomcat 5.0.28, so I did one test using the
current Tomcat 6, reproducing the same result.

Thanks for your help.

Original issue reported on code.google.com by jkugelb...@controll-it.de on 7 Jan 2009 at 8:48

GoogleCodeExporter commented 8 years ago
I think it's a deployment error/mistake. Do you have tried to "deploy" with the 
GWT
Hosted Mode Browser (button "compile/browse" in the right upper corner)? That 
starts
the application in your os default browser. If that works, it must be a 
deployment
error for example a false servlet mapping.

Have you also tried to deploy the demo application to the web servers?

Original comment by sven.strohschein@googlemail.com on 7 Jan 2009 at 8:06

GoogleCodeExporter commented 8 years ago
The recommended tests were successful. You are right, The problem is probable
somewhere in the build or deployment process.

Original comment by jkugelb...@controll-it.de on 8 Jan 2009 at 10:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
The reason is found: I had to add the registration of the eventservice servlet 
to the
web.xml.

Here is the part of the documentation (chapter 5, deployment), which is 
describing,
what to do:

<web-app>
  ...
  <servlet>
    <servlet-name>EventService</servlet-name>
    <servlet-class>
      de.novanic.eventservice.service.EventServiceImpl
    </servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>EventService</servlet-name>
    <url-pattern>/<your-GWT-module-path>/gwteventservice</url-pattern>
  </servlet-mapping>
  ...  
</web-app>

I hope that this is a good help and advice for others, who are running into the 
same
problem.

Thanks for your help, Sven.

Original comment by jkugelb...@controll-it.de on 9 Jan 2009 at 10:08

GoogleCodeExporter commented 8 years ago
I will try to make the getting started and deployment part of the manual more
popular. Thanks for your reply.

Original comment by sven.strohschein@googlemail.com on 9 Jan 2009 at 9:59