Hello,

I'm blocked from trying to have fun with Google gadget and GWT. ;-)
I got the exception like below in trying to compile a simple Google
gadget on Eclipse (Galileo).
I highly appreciate if someone can give me the crew of this cause.
Regards.

Compiling module com.inetools.igadgetexperiment2.IGadgetExperiment2
   Computing all possible rebind results for
'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
      Rebinding
com.inetools.igadgetexperiment2.client.IGadgetExperiment2
         Invoking <generate-with
class='com.google.gwt.gadgets.rebind.GadgetGenerator'/>
            [ERROR] Generator
'com.google.gwt.gadgets.rebind.GadgetGenerator' threw threw an
exception while rebinding
'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create
or change an object in a way which is incorrect with regard to
namespaces.
        at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName
(ElementNSImpl.java:105)
        at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.<init>
(ElementNSImpl.java:80)
        at
com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS
(CoreDocumentImpl.java:2084)
        at
com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.createDocument
(CoreDOMImplementationImpl.java:268)

Here's the Google gadget class (IGadgetExperiment2.java) I try to
compile:
package com.inetools.igadgetexperiment2.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.gadgets.client.Gadget;
import com.google.gwt.gadgets.client.UserPreferences;
import com.google.gwt.gadgets.client.Gadget.ModulePrefs;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;

@ModulePrefs( title = "iGoogle Gadget Experiement2", author = "Art",
author_email = "[email protected]")
public class IGadgetExperiment2 extends Gadget<UserPreferences> {

        @Override
        protected void init(UserPreferences preferences) {
            Button simpleButton = new Button("SimpleGadget");
            simpleButton.addClickHandler(
                        new ClickHandler() {
                                        @Override
                                        public void onClick(ClickEvent event) {
                                        Window.alert("Hello World!");
                                        }
                                }
                        );
            RootPanel.get().add(simpleButton);
        }
}

And here's the IGadgetExperiment2.gwt.xml file:
<?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='igadgetexperiment2'>
  <!-- Inherit the core Web Toolkit stuff.                        -->
  <inherits name='com.google.gwt.user.User'/>

  <!-- 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                                      -->
        <inherits name="com.google.gwt.gadgets.Gadgets" />

  <!-- Specify the app entry point class.                         -->
  <entry-point
class='com.inetools.igadgetexperiment2.client.IGadgetExperiment2'/>
</module>

gwt-gadgets-noredist.jar from 
http://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz
has been added as the library as well as GWT 1.7 SDK (and AppEngine
1.2.2 SDK).

Here's the web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd";>

<web-app>

  <!-- Servlets -->

  <!-- Default page to serve -->
  <welcome-file-list>
    <welcome-file>IGadgetExperiment2.html</welcome-file>
  </welcome-file-list>

</web-app>


Environment:
XP SP3
Google Plugin for Eclipse 3.5 1.1.0.v200907291526
eclipse.buildId=I20090611-1540
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.jee.product


--~--~---------~--~----~------------~-------~--~----~
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