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&file=api&v=2&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&file=api&v=2&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 ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---