not able to deploy to tomcat server

65 views
Skip to first unread message

sathya

unread,
Jul 20, 2009, 10:56:43 PM7/20/09
to Google Web Toolkit
I have developed my whole application in GWT in eclipse. I have tested
in hosted mode.Evertthing works fine. Now I need to deploy into tomcat
server on my machine. So using eclipse, I have compiled the whole
project successfully. WAR directory got generated. I have zipped this
war file and renamed with extension .war and placed this in webapps
directory of tomcat server.

When I use localhost:8080 URL,firstpage opens successfully.(tomcat is
able to unzip this).However none of RPC calls work. I am stuck with
this problem from past 1 week. I tried all possible ways posted on web
but nothing seems to work.

I tried to compile the starter application shipped with GWT and placed
on tomcat. Even this is not working with RPC calls.

I am not sure what settings I need to do on my tomcat. 

Can you please suggest me detailed steps to deploy starter application
shipped with GWT on tomcat using eclipse?

later I can map the same to my application.

Can anyone help please?

Kamal Chandana Mettananda

unread,
Jul 21, 2009, 11:06:33 PM7/21/09
to Google-We...@googlegroups.com
There's a section on deployment in following tutorial (on using Servlets with GWT). It does not create a war file there but deployed as an exploded archive.

http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial.html#gwt-servlet-7

HTH.

Sean

unread,
Jul 22, 2009, 2:08:22 PM7/22/09
to Google Web Toolkit
Is this a shared tomcat server? Something I experienced and several
other people who've e-mailed me experienced is that some shared TOMCAT
servers require certain prefixes for tomcat to actually handle the
servlet request. For instance, all my RPC calls have to have /servlet
in it or TOMCAT ignores them and web.xml is never used.

Also, let us know what the error is when you try to use your RPC.

On Jul 21, 11:06 pm, Kamal Chandana Mettananda <lka...@gmail.com>
wrote:
> There's a section on deployment in following tutorial (on using Servlets
> with GWT). It does not create a war file there but deployed as an exploded
> archive.
>
> http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial...
>
> HTH.
Reply all
Reply to author
Forward
0 new messages