I successfully integrated the GWT Server Library into my GWT 2.0 app
and had a working example in hosted mode.  Due to a suggestion in the
server library documentation I then added the following to my web.xml.

        <filter>
                <filter-name>NoCachingFilter</filter-name>
                
<filter-class>org.gwtwidgets.server.filters.ResponseHeaderFilter</
filter-class>
                <init-param>
                        <param-name>Expires</param-name>
                        <param-value>Di, 1 Jul 2008 12:00:00 GMT</param-value>
                </init-param>
                <init-param>
                        <param-name>Cache-Control</param-name>
                        <param-value>no-cache, must-revalidate</param-value>
                </init-param>
                <init-param>
                        <param-name>Pragma</param-name>
                        <param-value>no-cache</param-value>
                </init-param>
        </filter>

        <filter-mapping>
                <filter-name>NoCachingFilter</filter-name>
                <servlet-name>stream</servlet-name>
        </filter-mapping>

Shortly thereafter I was unable to load my GWT app in hosted mode.
The html page loads but I get the error shown below in the console
when I paste the URL into the browser and go.

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

   Request headers
      Host: localhost:8888
      User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.9.2.8) Gecko/20100722 Firefox/3.6.8
      Accept: */*
      Accept-Language: en-us,en;q=0.5
      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://localhost:8888/GMMASLocalOrdering.html?gwt.codesvr=172.31.80.167:9997
   Response headers
      Content-Type: text/html; charset=iso-8859-1
      Content-Length: 1434

The file exists in the correct location under under the war directory
as specified by the path shown in the error message.  Post error, I
did the following in this order at each step hoping it would fix the
issue.

1) Removed the xml filters shown above form web.xml.
2) Performed a GWT compile.
3) Rebooted my computer.
4) Cleared the browser cache of both I.E. and Chrome.
5) Installed Firefox (never before installed on this computer)

None of these steps helped.  Helpful thoughts appreciated.

-- 
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-tool...@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.

Reply via email to