Still fails:

Here's my gwt.xml file: (followed the tut:
http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted)

<module>

  <inherits name="com.google.gwt.maps.GoogleMaps"/>
  <inherits name="com.jarics.gwt.Widgets" />
  <!-- You can run under localhost without a key -->
  <script src="http://maps.google.com/maps?
gwt=1&amp;file=api&amp;v=2.x" />
  <entry-point class="com.mobigolf.gwt.client.MobiGolf"/>

</module>

On Sep 15, 1:44 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
> Try loading the Maps API before your GWT script.  Or move the loading of the
> Maps script into your .gwt.xml file.  There is an example of the latter in
> the online documentation at:http://code.google.com/p/gwt-google-apis/
>
>
>
> On Mon, Sep 15, 2008 at 12:55 PM, Einstein0970 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I have tried all possibilities:
>
> > 1- <scrip in my html file
> > 2- <cript in my web.xml file
>
> > Still receive same error.
>
> > Here are my files:
> > <html>
> >        <head>
>
> >                <!--                                           -->
> >                <!-- Any title is fine                         -->
> >                <!--                                           -->
> >                <title>Wrapper HTML for MobiGolf</title>
>
> >                <!--                                           -->
> >                <!-- The module reference below is the link    -->
> >                <!-- between html and your Web Toolkit module  -->
> >                <!--                                           -->
> >                <meta name='gwt:module'
> > content='com.mobigolf.gwt.MobiGolf'/>
>
> >                <!--                                           -->
> >                <!-- Link CSS file                             -->
> >                <!--                                           -->
> >                <link type="text/css" rel='stylesheet' href='MobiGolf.css'/>
>
> >        </head>
>
> >        <!--                                           -->
> >        <!-- The body can have arbitrary html, or      -->
> >        <!-- we leave the body empty because we want   -->
> >        <!-- to create a completely dynamic ui         -->
> >        <!--                                           -->
> >        <body>
>
> >                <!--                                            -->
> >                <!-- This script is required bootstrap stuff.   -->
> >                <!-- You can put it in the HEAD, but startup    -->
> >                <!-- is slightly faster if you include it here. -->
> >                <!--                                            -->
> >                <script language="javascript"
> > src="com.mobigolf.gwt.MobiGolf.nocache.js"></script>
>
> >                <!-- OPTIONAL: include this if you want history support -->
> >                <iframe id="__gwt_historyFrame"
> > style="width:0;height:0;border:0"></
> > iframe>
>
> >  <!-- You can run under localhost without a key -->
> >  <script src="http://maps.google.com/maps?
> > gwt=1&amp;file=api&amp;v=2.x<http://maps.google.com/maps?gwt=1&file=api&v=2.x>"
> > />
>
> >        </body>
> > </html>
>
> > And:
>
> > <module>
>
> >  <inherits name="com.google.gwt.i18n.I18N"/>
> >  <inherits name="com.google.gwt.user.User"/>
> >  <inherits name="com.google.gwt.maps.GoogleMaps"/>
> >  <inherits name="com.google.gwt.i18n.I18N"/>
> >  <extend-property name="locale" values="en_CA,fr_CA"/>
> >  <inherits name="com.jarics.gwt.Widgets" />
>
> >        <entry-point class="com.mobigolf.gwt.client.MobiGolf"/>
>
> > </module>
>
> > Thanks
>
> > On Sep 15, 11:54 am, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
> > > Hello,
>
> > > It looks like the Maps API script is not really being loaded.  Check the
> > > <script> tag in your host file, or your .gwt.xml file.   Recent versions
> > of
> > > the code will warn you about this issue.
>
> > > -Eric.
>
> > > On Mon, Sep 15, 2008 at 12:10 AM, Einstein0970 <[EMAIL PROTECTED]> wrote:
>
> > > > Hi Guys,
>
> > > > Recently moved on Ubuntu 8.04 (64bit) and GWT 1.5.
>
> > > > I am using the latest gwt-maps.api and my very simple code does not
> > > > start on host mode but works perfectly when deployed under tomcat.
>
> > > > Here is the error I get:
>
> > > > [ERROR] Unable to load module entry point class
> > > > com.mobigolf.gwt.client.MobiGolf (see associated exception for
> > > > details)
> > > > com.google.gwt.core.client.JavaScriptException: (TypeError):
> > > > $wnd.GLatLng is not a constructor
> > > >  fileName: transient source for
> > > > com.google.gwt.maps.client.impl.__LatLngImplImpl
> > > >  lineNumber: 14
> > > >  stack: (46.870989,-71.217155)@transient source for
> > > > com.google.gwt.maps.client.impl.__LatLngImplImpl:14
> > > > gwtOnLoad([object Window],"com.mobigolf.gwt.MobiGolf","1.5")@:0
> > > > gwtOnLoad((function () {alert("Failed to load module
> > > > com.mobigolf.gwt.MobiGolf\".\nPlease see the log in the development
> > > > shell for details.");}),"com.mobigolf.gwt.MobiGolf","http://localhost:
> > > > 8888/com.mobigolf.gwt.MobiGolf/")@http://localhost:8888/
> > > > com.mobigolf.gwt.MobiGolf/hosted.html?com_mobigolf_gwt_MobiGolf:20
> > > > maybeStartModule()@http://localhost:8888/com.mobigolf.gwt.MobiGolf/
> > > > com.mobigolf.gwt.MobiGolf.nocache.js:100
> > > > ()@http://localhost:8888/com.mobigolf.gwt.MobiGolf/
> > > > com.mobigolf.gwt.MobiGolf.nocache.js:393
> > > > @http://localhost:8888/com.mobigolf.gwt.MobiGolf/hosted.html?
> > > > com_mobigolf_gwt_MobiGolf:39<
> >http://localhost:8888/com.mobigolf.gwt.MobiGolf/hosted.html?com_mobig...>
>
> > > >        at
> > com.google.gwt.maps.client.impl.__LatLngImplImpl.construct(Native
> > > > Method)
> > > >        at com.google.gwt.maps.client.geom.LatLng.<init>(LatLng.java:65)
> > > >        at
>
> > com.mobigolf.gwt.client.reservations.InfoWindowDemo.<clinit>(InfoWindowDemo.java:
> > > > 54)
> > > >        at com.mobigolf.gwt.client.Tabs.<init>(Tabs.java:45)
> > > >        at
> > com.mobigolf.gwt.client.MobiGolf.onModuleLoad(MobiGolf.java:51)
>
> > > > Thanks for any help,
>
> > > --
> > > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
> > code.google.com/webtoolkit/
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~---------~--~----~------------~-------~--~----~
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