Error with the web application starter project

223 views
Skip to first unread message

Derek Fountain

unread,
May 14, 2012, 10:31:02 PM5/14/12
to google-we...@googlegroups.com
I'm trying to get the Getting Started guide running from this page:

https://developers.google.com/web-toolkit/usingeclipse

Running Eclipse on Linux, it works in developer mode. The compile completed successfully too, so I copied the contents of the 'war' directory to the doc root of Apache on my local box. When I access it at:

http://localhost/GWT_Example.html

the front page loads, but when I click the "Send to server" button the dialog pops up with:

Sending name to the server:
GWT User

Server replies:
An error occurred while attempting to contact the server. Please check your network connection and try again.

Checking the apache error log I find:

[Tue May 15 09:56:55 2012] [error] [client 127.0.0.1] File does not exist: /var/www/gwt_example/greet, referer: http://localhost/GWT_Example.html

Sure enough there isn't a file called "greet".

I must have missed something fundamental, but since this is my first hour with GWT I have no idea what I might be. :o} Can someone point?

Derek

unread,
May 15, 2012, 9:42:45 AM5/15/12
to Google Web Toolkit
greet isn't a file, it's a servlet endpoint. Your GreetingServiceImpl
class is mapped to that endpoint in your web.xml file (under the war/
WEB-INF folder).

So I'd check your web.xml file and your GreetingServiceImpl class.
Make sure the classnames match, make sure the compiled class (under
WEB-INF/classes) is there, check the deploy logs.

Actually, I notice that you just said Apache. Do you have tomcat (or
other Java app server) configured correctly? Apache can't serve
servlets without some help.

Hope that helps,
Another Derek

On May 14, 10:31 pm, Derek Fountain <de...@scratters.com> wrote:
> I'm trying to get the Getting Started guide running from this page:
>
> https://developers.google.com/web-toolkit/usingeclipse
>
> Running Eclipse on Linux, it works in developer mode. The compile completed
> successfully too, so I copied the contents of the 'war' directory to the
> doc root of Apache on my local box. When I access it at:
>
> http://localhost/GWT_Example.html
>
> the front page loads, but when I click the "Send to server" button the
> dialog pops up with:
>
> *Sending name to the server:*
> GWT User
>
> *Server replies:*
Reply all
Reply to author
Forward
0 new messages