Cannot Add GWT App to my Site

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Cannot Add GWT App to my Site

Postby Toriacht » Thu Jun 07, 2007 10:33 am


I've ported a previously designed applet to GWT and it runs fine in
hosted mode. I am unable however how to get this running on my
website. I selected 'Deploy Module' and successfully built the war

I have unsuccessfully tried to add this application to my website by doing
the following.

1. I uploaded the .war file to my Web Server. (location /files/jar/

2. I edited the
Code: Select all
tag of the individual page I wish to add this app to as follows:

Code: Select all
<meta name="gwt:module" content="/files/

3. I am using a Homestead SiteBuilder ( to build/
maintain my site. To edit the body I tried the two options provided by
the builder. Method (a) below worked successfully when adding the applet. It's just a shortcut to add HTML to any part of the page.

(a) I inserted a HTML snippet to the page as follows:
Code: Select all
<script language="JavaScript" src="/files/jar/gwt.js"></script>


I assume the gwt.js file is inside the .war file?

(b) I also tried the following option:
there is also a section for javascript to select the onload/onunload options. IN this section I
was unsure what to add. I tried adding the full <script lang.... ....>
but this caused the page to error.
I also tried just adding src="files/jar/gwt.js" to the onload option
but to no avail.

When I had the applet working I had the jar stored in the same
location as the .war file is now stored and the following HTML code
<applet ARCHIVE="/files/jar/myapp.jar" CODE="optiontwo.MyApplet"
WIDTH = 1400 HEIGHT = 300>
Your browser is not Java enabled.

Can anyone help please?

Posts: 2
Joined: Thu Jun 07, 2007 1:42 am

Postby Toriacht » Fri Jun 08, 2007 12:38 am


I've unzipped the .war file and moved all the files to the root folder
of my website. it's in the same location as the webpage I'm trying to
add the application to. I've edited the tags accordingly:

<meta name="gwt:module" content="com.mycompany.project.client.ImageViewer"/

and i've added to the body using the insert HTML snippet option as

<script language="JavaScript" src="gwt.js"></script>

Yet still nothing happens! Any ideas?

Posts: 2
Joined: Thu Jun 07, 2007 1:42 am

Postby Konstantin.Scheglov » Fri Jun 08, 2007 8:03 am

Please read GWT documentation about HTML host pages, I don't think that it supports "jar=something".

And in general all content of web application should be in single WAR. To build WAR for one or more GWT modules plus some static content you can use "Web project" from GWT Designer, see
Posts: 186
Joined: Tue Oct 18, 2005 8:11 pm
Location: Russian Federation, Lipetsk

Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests