Run GWT with tomcat


Hello there,

Can somebody please help to to config my GWT app with Tomcat when i run it from eclipse IDE.Now it is running on default server Jetty.

cheers
Zolf
zolfAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

for_yanCommented:
if you type this in google

configure GWT app with Tomcat Eclipse

 I think there is agood deal of reasonable explanations:

e.g. some below:



http://stackoverflow.com/questions/4848198/debug-gwt-application-with-tomcat-eclipse

      

It's really easy, just follow these steps:

    Get google plugin for eclipse
    The in eclipse, right click on your project and choose Debug as -> Web Application (running on external server)
    Enter URL of your web app on tomcat (like http://localhost:8080/YourApp/YourApp.html and eclipse will give you new one - it will add stuff like ?gwt.codesvr=127.0.0.1:9997



http://stackoverflow.com/questions/2208181/gwt-app-deploying-on-tomcat-or-any-other-servlet-container

http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s


http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3408c38464c57d4a

If i undestood properly, These are the basic primitive steps needed to
get ur GWT app runnng on a stand-alone Tomcat.

1. Put the gwt released jars in ur project classpath. Compile ur
project and copy the classes to tomcat WEB-INF / classes folder.
2. Run <urAppName>-compile.cmd file, it will generate the javascript
from ur java source, needed to be deployed in tomcat.
    Obviously this cmd file should contain the proper path of ur
project src, classes and all the referenced jars including gwt jars.
3. This cmd file emits lots of .cache, html and xml files in www /
xyz.123.bla.bla.html folder (ur module name).Copy all these files
    in tomcat parallel to WEB-INF directory. Map ur servlet in web.xml
file, this mapping should coincide with service entry point u
    have specified in ur gwt app rpc calls to the servlet.
4. Now start ur tomcat and run ur application like a normal web
application. Its done.


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zolfAuthor Commented:
cheers
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.