How to deploy GWT application in tomcat

8 views
Skip to first unread message

Tamás Gömbös

unread,
Nov 17, 2009, 3:44:10 AM11/17/09
to google-we...@googlegroups.com
Greetings!


I've finished my GWT application and I'd like to deploy it in tomcat. I've read a bunch of "tutorials" about this but I can't figure out how to do it.
I've done the following things:

- I compiled my application.
- In the tomcat/webapps I created a <project-name> directory.
- Then I copied the content of the <project-name>/war directory into the tomcat/webapps/<project-name> directory. The <project-name>/war directory includes:
./images (this contains the resources for the style sheets)
./<project-name> (this contains several .cache.html files etc)
./Web-inf (this contains web.xml, classes and lib directories, the lib contains the gwt-servler.jar)
<project-name>.css and <project-name>.html

After this I started tomcat and tried the following URL: .../<project-name>/<project_name>.html and it didn't work.

Please, somebody tell me which is the correct way to create the project's directory in tomcat/webapps and what is the correct URL to start the application.

Thank you!

Tamás Gömbös

unread,
Nov 17, 2009, 6:29:58 AM11/17/09
to google-we...@googlegroups.com
Well, I was managed to deploy the application but there's another problem. It seems as the client doesn't call the servlets. They communicate in JSON format and when I call the servlet explicitly it sends the the data. But when I start the application normally, no data is given to the client.

What could be the problem?

2009/11/17 Tamás Gömbös <gom...@gmail.com>

Rinuz

unread,
Nov 17, 2009, 7:02:44 PM11/17/09
to Google Web Toolkit
Do you copy jars to WEB-INF?

If don't, you must copy db_driver_connector.jar and gwt-servlet.jar.

On 17 Lis, 12:29, Tamás Gömbös <gomb...@gmail.com> wrote:
> Well, I was managed to deploy the application but there's another problem.
> It seems as the client doesn't call the servlets. They communicate in JSON
> format and when I call the servlet explicitly it sends the the data. But
> when I start the application normally, no data is given to the client.
>
> What could be the problem?
>
> 2009/11/17 Tamás Gömbös <gomb...@gmail.com>

Tamás Gömbös

unread,
Nov 26, 2009, 3:24:55 AM11/26/09
to google-we...@googlegroups.com
I have copied all the required jars to WEB-INF. And my servlets work properly because they send back data when I call them explicitly. But it seems that the client doesn't send any request to the server when I start the application with <application_name>.html. And again: in hosted mode everything's fine.

2009/11/18 Rinuz <rkoz...@gmail.com>
--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.



Tamás Gömbös

unread,
Nov 26, 2009, 3:30:40 AM11/26/09
to google-we...@googlegroups.com
I forgot to mention that when I start the application in hosted mode and start it in a browser with the "Compile/Browse" button it also works properly.

2009/11/26 Tamás Gömbös <gom...@gmail.com>
Reply all
Reply to author
Forward
0 new messages