Dave, make sure you have published your application to the server correctly.
Copy the contents of this folder: .....\workspace\GWT Test Project 1\war To your webapps folder: ....\webapps\gwt_test_project_1 "webapps/gwt_test_project" should look like this: gwt_test_project WEB-INF GWT_Test_Project_1.css GWT_Test_Project_1.html Good luck! On Aug 25, 4:20 pm, Dave <dfdumar...@gmail.com> wrote: > Thanks Rajeev. > I understand where the 304s are coming from (basically, cache > indications). I can clear these while running in hosted mode, (on > windows) by running delete files in Internet Tools. > So the main problem is the blank page. What I've discovered is that > using the module name ('mmcclient') as a dom identifier in the index > file, seems to cause the server to stop processing the entry point > code, and thus give me essentially a blank page. > Maybe this is a no-no, that I missed in the docs/readme. However, in > case it's a new issue I'll describe what I'm doing: > > What I did is create a sample gwt project, which runs fine and lets me > enter my user name. Next I added > > <div id="mmcclient"></div> after the h1 header line, <h1>Web > Application Starter Project</h1> > > so now the index file looks like: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > <html> > <head> > <meta http-equiv="content-type" content="text/html; > charset=UTF-8"> > <link type="text/css" rel="stylesheet" > href="Bcc_mmcclient_gwt_test1.css"> > <title>Web Application Starter Project</title> > <script type="text/javascript" language="javascript" > src="mmcclient/mmcclient.nocache.js"></script> > </head> > <body> > <h1>Web Application Starter Project</h1> > <div id="mmcclient"></div> > > <table align="center"> > <tr> > <td colspan="2" style="font-weight:bold;">Please enter your > name:</td> > </tr> > <tr> > <td id="nameFieldContainer"></td> > <td id="sendButtonContainer"></td> > </tr> > </table> > </body> > </html> > > I also inserted a trace statement in the entry point method: > System.out.println("in entry point"); so now the MMCClient class looks > like: > > public class MMCClient implements EntryPoint { > private static final String SERVER_ERROR = "An error occurred while " > + "attempting to contact the server. Please check > your network " > + "connection and try again."; > > private final GreetingServiceAsync greetingService = GWT > .create(GreetingService.class); > > public void onModuleLoad() { > System.out.println("in entry point"); > > final Button sendButton = new Button("Send"); > final TextBox nameField = new TextBox(); > nameField.setText("GWT User"); > ... > > } > > After clean and build, and gwt compile, when I run the gwt launcher, I > only see > Web Application Starter Project > Please enter your name: > > There is no input field or send button and the host browser status > line says 'Done' > > Now, if I change the div id to xmmcclient, as <div id="xmmcclient"></ > div>, and run it again, everything works. > > So my conclusion is not to use the module name as a DOM ID... > > Am I onto something? - sorry if this is already documented somewhere > obvious - > > Thanks, > Dave > > On Aug 25, 9:20 am, Rajeev Dayal <rda...@google.com> wrote:> Hey Dave, > > A couple things to try: > > > -Blow away the mmclient subdirectory located under your war directory > > -Clear your FF3 cache > > > Try that out and see if that helps. If not, post back here and we'll dig > > deeper. > > > Rajeev > > > On Mon, Aug 24, 2009 at 2:36 PM, Dave <dfdumar...@gmail.com> wrote: > > > > Hi all, > > > > I'm getting several problems after upgrading to 1.7. > > > In hosted mode: > > > - all the http status codes are 304 (Not Modified) > > > - I only see a blank page > > > - when I Compile/Browse, FF3 tells me GWT Module needs to be (re) > > > compiled, (I've tried refreshing first - same thing) > > > - if I change the module name to something bogus in my host html file, > > > and refresh, things seem to work. > > > For example, when I change from <div id="mmcclient"></div> to <div > > > id="x_mmcclient"></div>, I still get 304s, but I also get > > > [ERROR] Unable to load module entry point ... > > > com.google.gwt.core.client.JavaScriptException: (Error): Invalid > > > argument. > > > number: -2147024809 > > > description: Invalid argument. > > > [ERROR] Failure to load module 'mmcclient' > > > with the line number of my entry point class where I call > > > RootPanel.get("mmcclient").add(containerLayout); > > > > But then the module is loaded and my app is fine. No blank page! > > > > - finally, one of my css resource directories (sc) must be copied into > > > the public root, otherwise it will not be found. > > > > Some further info, > > > the war directory structure looks like this (my module name is > > > mmcclient), > > > - war > > > - conf > > > - images > > > - mmcclient > > > - sc > > > - WEB-INF > > > - MMCClient.css > > > - MMCClient.html > > > > The module is loaded from the host html as: > > > <script type="text/javascript" language="javascript" > > > src="mmcclient/mmcclient.nocache.js"></script> > > > Even when I get a blank page, I believe this file is being found. > > > (Firebug shows its JS functions). > > > > I'm working with the Eclipse (3.4.2) GWT plugin, if that's important. > > > > Thanks for any advice! > > > -Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---