Saturday, February 26, 2011

[WARN] 404 - GET /.nocache.js (127.0.0.1) 1397 bytes

Hi,
I am new to GWT 2.2

I am using Helios with the GWT plugin.
I created a simple Hello World example.

The content of the module file HelloGwt.gwt.xml is :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.2.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.2.0/distro-source/core/src/gwt-module.dtd">
<module>
    <inherits name="com.google.gwt.user.User" />
    <source path="client" />
    <entry-point class="oge.gwt.chap24.hello.client.HelloGwt" />
</module>

The content of the HelloGwt (EntryPoint) class is :

package oge.gwt.chap24.hello.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;

public class HelloGwt implements EntryPoint {

    @Override
    public void onModuleLoad() {
        // TODO Auto-generated method stub
        RootPanel.get().add(new Label("cool"));

    }

}

And finally Hello.html :

<!doctype html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Hello33</title>
    <script type="text/javascript" language="javascript" src=".nocache.js"></script>
  </head>

  <body>
    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>

  </body>
</html>

The problem is that nothing shows up in the browser. It is supposed to display "cool". It displays the title though : "Hello33".

I get this message in the Eclipse console :
[WARN] 404 - GET /.nocache.js (127.0.0.1) 1397 bytes
   Request headers
      Host: 127.0.0.1:8888
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
      Accept: */*
      Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 115
      Connection: keep-alive
      Referer: http://127.0.0.1:8888/Hello.html?gwt.codesvr=127.0.0.1:9997
      Cache-Control: max-age=0
   Response headers
      Content-Type: text/html; charset=iso-8859-1
      Content-Length: 1397

Any idea ? It's like it cannot find that .nocache.js file.
Thanks for helping.




--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment