I'm not sure why this would fix the problem you're seeing, but have you tried rebuilding the gadgets distribution from SVN trunk? I think if you get past this problem, you're doing to find another one since you are using GWT 1.6:
See issue 275: http://code.google.com/p/gwt-google-apis/issues/detail?id=275 On Fri, Aug 7, 2009 at 8:31 PM, Art<art...@gmail.com> wrote: > > Eric, thank you for your reply. > > The thing is that I encounter this issue by trying to work around the > Xerces class issue. > I had encountered the Xerces class issue with Google GWT Gadget > library file described at > http://groups.google.com/group/google-appengine-java/browse_frm/thread/145d950d2606bef7/d5c00a71468a08fb?hl=en&q=Gears,+Gadget+API+libraries+giving+error+with+GWT#d5c00a71468a08fb. > Thereby, as I wrote, I picked up the gwt-gadgets-noredist.jar from > http://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz, > which does not contain Xerces classes (And I confirmed that gwt- > gadgets-noredist.jar does not contain Xerces classes.) > So, I had good expectation of that it would compile without a problem. > But.. I got this issue. > > Regards > > > > On Aug 6, 7:51 pm, Eric Ayers <zun...@google.com> wrote: >> This error I've seen caused by a conflict in Xerces distributed with >> gwt-gadget.jar. Try using the gwt-gadget-noredist.jar file. It >> doesn't bundle the Xerces library. >> >> >> >> On Thu, Aug 6, 2009 at 10:36 PM, Art<art...@gmail.com> wrote: >> >> > 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 = "atozof...@gmail.com") >> > 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 >> > fromhttp://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 >> >> -- >> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://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 Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---