I had the same problem. I think it was introduced with GWT 1.5. I
had to download the OpenLayers source and add an empty protected
constructor to the JSObject class:
protected JSObject() {}
Everything seems to work fine after that.
--
Curtis
On Sep 15, 3:36 am, mazi <[EMAIL PROTECTED]> wrote:
> Dear all,
> I have recently tried running theopenlayersGWT plugin
> "openlayers_gwt-0.2.jar" along with "OpenLayers-2.6" in an example in
> eclipse. I have installed J2SE1.6 and ECLIPSE 3.4.
> I get the following error when I try to run the example in ECLIPSE.
> Anyone familiar with theopenlayersand GWT?
> I would appreciate any input on this one. I may have used the
> "openlayers_gwt-0.2.jar" instead of "openlayers_gwt-0.1.jar" in this
> particular case, could this be the problem?
> Thank you in advance and regards.
>
> [TRACE] Compiling Java source files in module 'tutorial.Tutorial1'
> [TRACE] Removing units with errors
> [ERROR] Errors in 'jar:file:/gwt-windows-1.5.2/gwt-windows-1.5.2/
> samples/gwt-openlayers-tutorial/openlayers_gwt-0.2.jar!/com/eg/gwt/openLayers/client/JSObject.java'
> Line 5: Constructors must be 'protected' in subclasses of
> JavaScriptObject
> More info: file:/gwt-windows-1.5.2/gwt-windows-1.5.2/doc/helpInfo/
> jsoRestrictions.html
> More info: file:/gwt-windows-1.5.2/gwt-windows-1.5.2/doc/helpInfo/
> jsoRestrictions.html
> Finding entry point classes
> Unable to find type 'tutorial.client.Tutorial1'
> Hint: Previous compiler errors may have made this type
> unavailable
> Hint: Check the inheritance chain from your module; it may not
> be inheriting a required module or a module may not be adding its
> source path entries properly
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---