Deploy GWT to Tomcat (servlet not running) -


what correct way deploy gwt app tomcat? have made gwt app server side code (servlets). works in hosted mode when copy war folder (after compiling) tomcat webapp directory , rename war folder correctly.

my gwt app servlet in uri /mygwtapp, renamed folder mygwtapp. app loads correctly problem servlet not run i.e. /mygwtapp/servlet not run.

all libraries needed server side code in web-inf/lib folder. reason this?

thanks.

by default, tomcat serves app named 'mygwtapp' context path '/mygwtapp'. (whereas gwt built-in jetty serves context path '/'.)

your servlet paths '/mygwtapp/*'. means, in conjunction context path, servlets accessible '/mygwtapp/mygwtapp/*'. (try it: enter full url in browser - servlet complain missing, or doesn't support get, you'll know sure now, lives.)

so have 2 options:

  1. tell client side call servlets @ '/mygwtapp/mygwtapp/*' (i think, taken care of automatically when using @remoteservicerelativepath annotation)
  2. adjust context path of web application in tomcat, explained in http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -