Bonjour,

je cherche à faire une application toute bête qui affiche simplement une google map mais quand je l'exécute j'ai le message suivant:

[ERROR] Unable to load module entry point class org.upv.client.Geo (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: JavaScript TypeError exception: Objet attendu
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:481)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeHandle(ModuleSpace.java:225)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeHandle(JavaScriptHost.java:89)
at com.mapitz.gwt.googleMaps.client.GLatLngImpl.create(GLatLngImpl.java:7)
at com.mapitz.gwt.googleMaps.client.GLatLng.<init>(GLatLng.java:29)
at com.mapitz.gwt.googleMaps.client.GMap2Widget.<clinit>(GMap2Widget.java:23)
at org.upv.client.Geo.onModuleLoad(Geo.java:39)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:342)
at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:326)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$200(BrowserWidgetIE6.java:36)
Je ne trouve pas la solution à ce problème qui m'empêche d'avancer.

Je vous mets les sources de mon application:

Geo.gwt.xml:


Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<module>
 
	<!-- Inherit the core Web Toolkit stuff.                  -->
	<inherits name='com.google.gwt.user.User'/>
	<inherits name="com.google.gwt.i18n.I18N"/>
	<inherits name='com.mapitz.gwt.googleMaps.GoogleMaps' /> 
 
	<stylesheet src="Geo.css"/>
 
	<!-- Specify the app entry point class.                   -->
	<entry-point class='org.upv.client.Geo'/>
 
</module>

Geo.html

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<html>
	<head>
		<title>Geo portail</title>
		<meta name='gwt:module' content='org.upv.Geo'>
	</head>
	<body>
		<script language='javascript' src='gwt.js'></script>
		<iframe id="__gwt_historyFrame"
			style="width:0;height:0;border:0">
		</iframe>
		<DIV id="map">
	</body>
</html>

Geo.java

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package org.upv.client;
 
import com.google.gwt.core.client.EntryPoint;
 
import com.google.gwt.user.client.ui.RootPanel;
 
import com.mapitz.gwt.googleMaps.client.GMap2Widget;
 
 
/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Geo implements EntryPoint {
 
  /**
   * This is the entry point method.
   */
	public void onModuleLoad()
    {
		  GMap2Widget map = new GMap2Widget();
		  RootPanel rootPanel = RootPanel.get();
		  rootPanel.add(map);    
  }
}
Ca doit être une erreur stupide, mais je débute dans ce domaine donc je me permets de demander un peu d'aide.

Merci

Bruno