Problem loading ...rebind/JSWrapperGenerator.java

29 views
Skip to first unread message

kbow...@gmail.com

unread,
Jul 18, 2008, 9:29:17 PM7/18/08
to Google Web Toolkit
Hi All,

I'm having trouble getting started with gwt/maps. I'm following the
instructions on
http://code.google.com/p/gwt-google-apis/wiki/GettingStartedSource to
use the source.
[I'm running on Mac OS X 5.2, using GWT 1.5]. Here are my detailed
steps:
1. Get the source:
$ mkdir /usr/local/gwt-google-apis
$ cd /usr/local/gwt-google-apis/
$ svn checkout http://gwt-google-apis.googlecode.com/svn/trunk/ .
Everything appears to be there:
ls /usr/local/gwt-google-apis/maps/maps/src/com/google/gwt/maps/
GoogleMaps.gwt.xml client/ jsio/

2. Create the project and application as usual:
projectCreator -eclipse MapsTutorial -out MapsTutorial
applicationCreator -eclipse MapsTutorial -out MapsTutorial
com.example.google.gwt.mapstutorial.client.MapsTutorial
[At this point running MapsTutorial-shell works as usual]

3. Add /usr/local/gwt-google-apis/maps/maps/src to the classpath in
MapsTutorial-compile and MapsTutorial-shell. The contentof
MapsTutorial-shell now looks like:
#!/bin/sh
APPDIR=`dirname $0`;
java -XstartOnFirstThread -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:/usr/
local/gwt-mac-1.5.0/gwt-user.jar:/usr/local/gwt-mac-1.5.0/gwt-dev-mac.
jar:/usr/local/gwt-google-apis/maps/maps/src"
com.google.gwt.dev.GWTShell -out "$APPDIR/www" "$@"
com.example.google.gwt.mapstutorial.MapsT
utorial/MapsTutorial.html;

[At this point running MapsTutorial-shell still works as usual]

4. Add the line <script src="http://maps.google.com/maps?
file=api&amp;v=2.x&amp;key=???" />
at the end of MapsTutorial/src/com/example/google/gwt/mapstutorial/
MapsTutorial.gwt.xml.
[At this point running MapsTutorial-shell still works as usual]

5. Add the line <inherits name="com.google.gwt.maps.GoogleMaps" /> to
MapsTutorial/src/com/example/google/gwt/mapstutorial/
MapsTutorial.gwt.xml after all the
other <inherits...> lines.

Now attempting to run MapsTutorial-shell produces the following
exception messages in the shell:

Lading module 'com.example.google.gwt.mapstutorial.MapsTutorial'
Loading inherited module 'com.google.gwt.maps.GoogleMaps'
Loading inherited module 'com.google.gwt.maps.jsio.JSIO'
Unable to load class
'com.google.gwt.maps.jsio.rebind.JSWrapperGenerator
Failure while parsing XML
Line 17: Unexpected exception while processing element 'inherits'
Failure while parsing XML
Line 16: Unexpected exception while processing element 'inherits'
Failure while parsing XML

The desired class is certainly there:

$ ls /usr/local/gwt-google-apis/maps/maps/src/com/google/gwt/maps/jsio/
rebind/JSWrapper*
/usr/local/gwt-google-apis/maps/maps/src/com/google/gwt/maps/jsio/
rebind/JSWrapperFragmentGenerator.java
/usr/local/gwt-google-apis/maps/maps/src/com/google/gwt/maps/jsio/
rebind/JSWrapperGenerator.java

What am I missing here?
Thanks in advance,
Ken Bowen

Eric Ayers

unread,
Jul 19, 2008, 8:16:26 PM7/19/08
to Google-We...@googlegroups.com
Possibly you'll get some more details by adding '-logLevel DEBUG' to
MapsTutorial-shell (try adding it right before -out)

When you say you are running GWT 1.5, which version exactly to you
mean? There are several milestones & release candidates, and then you
could be compiling from trunk.

-Eric.

--
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

kbow...@gmail.com

unread,
Jul 20, 2008, 12:40:31 PM7/20/08
to Google Web Toolkit
Eric,

From release_notes.html it appears that I'm using: Release Notes for
1.5.0 (RC)
I think it was downloaded June 19.

Adding -logLevel DEBUG in MapsTutorial-shell produced the follwing
expanded response (color codes in sq.brackets):

Starting URL: http://localhost:8888/com.example.google.gwt.mapstutorial.MapsTutorial/MapsTutorial.html
[grey]
Request 0: http://localhost:8888/com.example.google.gwt.mapstutorial.MapsTutorial/MapsTutorial.html
[red]
Loading module
'com.example.google.gwt.mapstutorial.MapsTutorial' [red]
Module location:
file:/Users/ken/Projects/NewTech/GMapsGWT2/MapsTutorial/MapsTutorial/
src/com/example/google/gwt/mapstutorial/MapsTutorial.gwt.xml [red]
Loading inherited module 'com.google.gwt.user.User' [grey]
Loading inherited module
'com.google.gwt.user.theme.standard.Standard' [grey]
Loading inherited module
'com.google.gwt.maps.GoogleMaps' [red]
Module location: file:/usr/local/gwt-google-apis/maps/maps/
src/com/google/gwt/maps/GoogleMaps.gwt.xml [grey]
Loading inherited module
'com.google.gwt.user.User' [grey]
Loading inherited module 'com.google.gwt.maps.jsio.JSIO'
Module location: file:/usr/local/gwt-google-apis/maps/
maps/src/com/google/gwt/maps/jsio/JSIO.gwt.xml [grey]
Loading inherited module
'com.google.gwt.core.Core' [grey]
Module 'com.google.gwt.core.Core' has already been
loaded and will be skipped [grey]
[X] Unable to load class
'com.google.gwt.maps.jsio.rebind.JSWrapperGenerator [red]
[X] Failure while parsing XML [red]
[X] Line 17: Unexpected exception while processing element
'inherits' [red]
[X] Failure while parsing XML [red]
[X] Line 16: Unexpected exception while processing element
'inherits' [red]
[X] Failure while parsing XML [red]
{repeats above again, but starting with line:
The development shell servlet received a request for
'MapsTutorial.html' in module
'com.example.google.gwt.mapstutorial.MapsTutorial.gwt.xml' }

--Ken

Eric Ayers

unread,
Jul 20, 2008, 6:32:22 PM7/20/08
to Google-We...@googlegroups.com
Hi Ken,

Start the tutorial again and when you see the bad output come up in
the Development shell, select the lines that seem to be errors. The
'Unexpected Exception' line, for example. Down below in the status
window, you should see a more detailed message about the problem. See
if any of those look relevant, and if you can't figure them out, post
them on this thread.

-Eric.

kbow...@gmail.com

unread,
Jul 20, 2008, 8:21:06 PM7/20/08
to Google Web Toolkit
Eric,

Below are what I think are the relevant lines from the trace. All of
them have the small arrow on the left pointing down, so the
line has been expanded in the trace. All of them are red except the
three I marked with [grey] at the the end. Clicking on them only
produces a copy of the line in the log at the bottom, EXCEPT for the
"Unable to load class
'com.google.gwt.maps.jsio.rebind.JSWrapperGenerator" which produces
the Exception trace shown below this.
Loading module 'com.example.google.gwt.mapstutorial.MapsTutorial'
Loading inherited module 'com.google.gwt.maps.GoogleMaps'
Loading inherited module 'com.google.gwt.maps.jsio.JSIO'
Module location: file:/usr/local/gwt-google-apis/maps/
maps/src/com/google/gwt/maps/jsio/JSIO.gwt.xml [grey]
Loading inherited module
'com.google.gwt.core.Core' [grey]
Module 'com.google.gwt.core.Core' has already been
loaded and will be skipped [grey]
[X] Unable to load class
'com.google.gwt.maps.jsio.rebind.JSWrapperGenerator
[X] Failure while parsing XML
[X] Line 17: Unexpected exception while processing element
'inherits'
[X] Failure while parsing XML
[X] Line 16: Unexpected exception while processing element
'inherits'
[X] Failure while parsing XML

Unable to load class
'com.google.gwt.maps.jsio.rebind.JSWrapperGenerator
ERROR] Unable to load class
'com.google.gwt.maps.jsio.rebind.JSWrapperGenerator'
java.lang.ClassNotFoundException:
com.google.gwt.maps.jsio.rebind.JSWrapperGenerator
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1340)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1189)
at com.google.gwt.dev.cfg.ModuleDefSchema
$ObjAttrCvt.convertToArg(ModuleDefSchema.java:667)
at
com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:
64)
at
com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:
214)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:257)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
533)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:
878)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:
1693)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
368)

That's all the info I can find.

--Ken


On Jul 20, 6:32 pm, "Eric Ayers" <zun...@google.com> wrote:
> Hi Ken,
>
> Start the tutorial again and when you see the bad output come up in
> the Development shell,  select the lines that seem to be errors.  The
> 'Unexpected Exception' line, for example.   Down below in the status
> window, you should see a more detailed message about the problem.  See
> if any of those look relevant,  and if you can't figure them out, post
> them on this thread.
>
> -Eric.
>
>
>
> On Sun, Jul 20, 2008 at 12:40 PM, kbowe...@gmail.com <kbowe...@gmail.com> wrote:
>
> > Eric,
>
> > From release_notes.html it appears that I'm using:  Release Notes for
> > 1.5.0 (RC)
> > I think it was downloaded June 19.
>
> > Adding -logLevel DEBUG in MapsTutorial-shell produced the follwing
> > expanded response (color codes in sq.brackets):
>
> > Starting URL:http://localhost:8888/com.example.google.gwt.mapstutorial.MapsTutoria...
> > [grey]
> > Request 0:http://localhost:8888/com.example.google.gwt.mapstutorial.MapsTutoria...

Eric Ayers

unread,
Jul 20, 2008, 8:55:57 PM7/20/08
to Google-We...@googlegroups.com
Ken,

I've gone over it a few times and I don't see the problem. One more
thing I can suggest trying (although if it works, I can't tell you why
it will make a difference) is to move the maps API up in the class
path, before gwt-user and gwt-mac-1.5.0

java -XstartOnFirstThread -Xmx256M -cp
"$APPDIR/src:$APPDIR/bin:/usr/local/gwt-google-apis/maps/maps/src:/usr/local/gwt-mac-1.5.0/gwt-user.jar:/usr/local/gwt-mac-1.5.0/gwt-dev-mac.
jar" ...

kbow...@gmail.com

unread,
Jul 20, 2008, 9:54:13 PM7/20/08
to Google Web Toolkit
Eric,

No, that didn't work either.
I think I'll give it a shot on a Linux box tomorrow.
I may also be able to get together with a friend who also has a Mac
and try to work it through on his box,
sometime later this week.

I'll let you know what happens.
Thanks for all the help.

--Ken

On Jul 20, 8:55 pm, "Eric Ayers" <zun...@google.com> wrote:
> Ken,
>
> I've gone over it a few times and I don't see the problem.  One more
> thing I can suggest trying (although if it works, I can't tell you why
> it will make a difference) is to move the maps API up in the class
> path, before gwt-user and gwt-mac-1.5.0
>
> java -XstartOnFirstThread -Xmx256M -cp
> "$APPDIR/src:$APPDIR/bin:/usr/local/gwt-google-apis/maps/maps/src:/usr/loca l/gwt-mac-1.5.0/gwt-user.jar:/usr/local/gwt-mac-1.5.0/gwt-dev-mac.
> jar" ...
>
> On Sun, Jul 20, 2008 at 8:21 PM, kbowe...@gmail.com <kbowe...@gmail.com> wrote:
>
> > Eric,
>
> > Below are what I think are the relevant lines from the trace.  All of
> > them have the small arrow on the left pointing down, so the
> > line has been expanded in the trace.  All of them are  red except the
> > three I marked with [grey] at the the end. Clicking on them only
> > produces a copy of the line in the log at the bottom, EXCEPT for the
> > "Unable to load class
> > 'com.google.gwt.maps.jsio.rebind.JSWrapperGenerator" which produces
> > the Exception trace shown below this.
>
> > Request 0:http://localhost:8888/com.example.google.gwt.mapstutorial.MapsTutoria...
> ...
>
> read more »

MN

unread,
Jul 21, 2008, 3:50:02 AM7/21/08
to Google Web Toolkit
maybe this thread is interesting:
http://groups.google.de/group/Google-Web-Toolkit/browse_thread/thread/64757406efbbd3f7
> ...
>
> Erfahren Sie mehr »
Reply all
Reply to author
Forward
0 new messages