GWT HOSTING ISSUE

24 views
Skip to first unread message

Nitheesh Chandran

unread,
Jan 25, 2012, 1:04:48 AM1/25/12
to Google Web Toolkit
I tried to host a sample default GWT application which uses RPC . I
did not do any changes in the program because GWT default program uses
RPC service for getting a reply from the server. This program runs
correctly in the local Apache server. When i put the same program in
the external server ,it does not work.

this is the deployment descriptor file : web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<!-- Servlets -->
<servlet>
<servlet-name>greetServlet</servlet-name>
<servlet-class>rp.server.GreetingServiceImpl</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>greetServlet</servlet-name>
<url-pattern>/rpctesting/greet</url-pattern>
</servlet-mapping>

<!-- Default page to serve -->
<welcome-file-list>
<welcome-file>Rpctesting.html</welcome-file>
</welcome-file-list>

</web-app>



The error i am getting now is

[Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not
exist: /home/spectrum/public_html/program/rpctesting/greet, referer:
http://myserver.in/program/Rpctesting.html
[Tue Jan 24 04:26:47 2012] [error] [client 14.140.69.18] File does not
exist: /home/spectrum/public_html/404.shtml, referer: http://
myserver .in/program/Rpctesting.html
[Tue Jan 24 04:31:23 2012] [error] [client 91.121.183.61] File does
not exist: /usr/local/apache/htdocs/aggregator
[Tue Jan 24 04:31:24 2012] [error] [client 91.121.183.61] File does
not exist: /usr/local/apache/htdocs/aggregator




can anyone help me on this issue


Thomas Broyer

unread,
Jan 25, 2012, 6:18:33 AM1/25/12
to google-we...@googlegroups.com
These logs are from Apache HTTPD, not Apache Tomcat. So either you're not using the appropriate port (Tomcat generally listens on 8080), or you forgot to configure (or misconfigured) mod_proxy to relay requests from HTTPD to Tomcat.

Nitheesh Chandran

unread,
Jan 25, 2012, 7:02:06 AM1/25/12
to Google Web Toolkit

So this has to be configured on the server right ? No need to
configure anything on the client side

Thomas Broyer

unread,
Jan 25, 2012, 8:49:17 AM1/25/12
to google-we...@googlegroups.com
That's right, nothing to do with GWT, only with the deployment of HTTPD / Tomcat, and then your WAR within Tomcat.

Nitheesh Chandran

unread,
Jan 26, 2012, 12:03:51 AM1/26/12
to Google Web Toolkit
is it necessary to convert GWT default WAR to .war file for deploying
in the tomcat server ??

Thomas Broyer

unread,
Jan 26, 2012, 4:30:38 AM1/26/12
to google-we...@googlegroups.com
I don't know what you mean by "GWT default WAR", but if you mean the folder your pass as -war to the GWT compiler and containing the WEB-INF/web.xml, then no you don't have to pack it as a war, you can simply copy it to your Tomcat's webapps folder.

I'd suggest asking Tomcat-related questions to a Tomcat forum, and more general servlet-related questions to a java forum; or on StackOverflow or ServerFault, as these have really nothing to do with GWT.
Reply all
Reply to author
Forward
0 new messages