1) Have you tried running it with a Maps key installed as the error
message suggests?

2) Are you on Windows?  If so, have your IE cache/proxy/security
settings changed recently?  That sometimes gets in the way of the
Google APIs requests.

On Mon, Sep 7, 2009 at 6:50 PM, martind<[email protected]> wrote:
>
> Hi all,
>
> I'm using:
> - GWT 1.7.0
> - gwt-maps 1.0.4
> - GAE 1.2.5
> - Eclipse 3.5 with the Google plugin
> - Sun JDK 1.0.6_16
> - linux (Fedora 11)
>
> A few weeks ago, I began a project using gwt-maps which worked fine.
> But somehow it got broken recently. I get the following error in
> hosted mode:
>
> [ERROR] Unable to load module entry point class test.client.Test (see
> associated exception for details)
> java.lang.RuntimeException: The Maps API has not been loaded.
> Is a <script> tag missing from your host HTML or module file?  Is the
> Maps key missing or invalid?
>        at com.google.gwt.maps.client.Maps.assertLoaded(Maps.java:32)
>        at com.google.gwt.maps.client.geom.LatLng$.newInstance(Native Method)
>        at test.client.Test.onModuleLoad(Test.java:46)
>
> My Test.gwt.xml file is the following:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//
> EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
> source/core/src/gwt-module.dtd">
> <module rename-to='test'>
>  <!-- Inherit the core Web Toolkit stuff.                        -->
>  <inherits name='com.google.gwt.user.User'/>
>
>  <inherits name="com.google.gwt.maps.GoogleMaps" />
>  <script src="http://maps.google.com/maps?
> gwt=1&amp;file=api&amp;v=2&amp;sensor=false" />
>
>  <!-- Inherit the default GWT style sheet.  You can change       -->
>  <!-- the theme of your GWT application by uncommenting          -->
>  <!-- any one of the following lines.                            -->
>  <inherits name='com.google.gwt.user.theme.standard.Standard'/>
>  <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
>  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->
>
>  <!-- Other module inherits                                      -->
>
>  <!-- Specify the app entry point class.                         -->
>  <entry-point class='test.client.Test'/>
> </module>
>
>
> I used wireshark to debug and it seems that "http://maps.google.com/
> maps?gwt=1&amp;file=api&amp;v=2&amp;sensor=false" is never acessed. If
> I try loading the URL in my browser it works fine.
>
> At first I thought it was an issue with Fedora Eclipse or with OpenJDK
> so I replaced them with the "official" eclipse and Sun JDK but no
> luck...
>
> Has anybody got the same issue ?
>
> >
>



-- 
Google Code Jam 2009
http://code.google.com/codejam

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to