Yeah, I forgot, the GadgetLinker "went bad" with GWT 2.2 there is a
patch I just put up for gadgets that builds against the latest GWT
releases.

http://gwt-code-reviews.appspot.com/1370808/

It doesn't handle <stylesheet> module directives correctly though.

On Fri, Apr 15, 2011 at 2:34 AM, dicko <d...@mothdesign.com.au> wrote:
> Thanks for your help guys but I'm still having trouble.  Do I just
> need to import the project and then re-compile it?  If so, I'm getting
> this error:
>
> [ERROR] Unable to load class
> 'com.google.gwt.gadgets.linker.GadgetLinker'
> java.lang.ClassNotFoundException:
> com.google.gwt.gadgets.linker.GadgetLinker
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at com.google.gwt.dev.cfg.ModuleDefSchema
> $ClassAttrCvt.convertToArg(ModuleDefSchema.java:869)
>        at
> com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:
> 64)
>        at
> com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:
> 221)
>        at com.google.gwt.dev.util.xml.ReflectiveParser
> $Impl.startElement(ReflectiveParser.java:274)
>        at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> $FragmentContentDriver.next(Unknown Source)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
> Source)
>        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> $JAXPSAXParser.parse(Unknown Source)
>        at com.google.gwt.dev.util.xml.ReflectiveParser
> $Impl.parse(ReflectiveParser.java:331)
>        at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access
> $100(ReflectiveParser.java:48)
>        at
> com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
> 402)
>        at
> com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
> 280)
>        at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
> 192)
>        at
> com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
> 308)
>        at
> com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:
> 151)
>        at com.google.gwt.dev.Compiler.run(Compiler.java:185)
>        at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
>        at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 87)
>        at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
> 81)
>        at com.google.gwt.dev.Compiler.main(Compiler.java:166)
> [ERROR] Failure while parsing XML
> com.google.gwt.core.ext.UnableToCompleteException: (see previous log
> entries)
>        at com.google.gwt.dev.cfg.ModuleDefSchema
> $ClassAttrCvt.convertToArg(ModuleDefSchema.java:872)
>        at
> com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:
> 64)
>        at
> com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:
> 221)
>        at com.google.gwt.dev.util.xml.ReflectiveParser
> $Impl.startElement(ReflectiveParser.java:274)
>        at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> $FragmentContentDriver.next(Unknown Source)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
> Source)
>        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
> Source)
>        at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
> Source)
>        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> $JAXPSAXParser.parse(Unknown Source)
>        at com.google.gwt.dev.util.xml.ReflectiveParser
> $Impl.parse(ReflectiveParser.java:331)
>        at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access
> $100(ReflectiveParser.java:48)
>        at
> com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
> 402)
>        at
> com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
> 280)
>        at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
> 192)
>        at
> com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
> 308)
>        at
> com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:
> 151)
>        at com.google.gwt.dev.Compiler.run(Compiler.java:185)
>        at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
>        at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 87)
>        at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
> 81)
>        at com.google.gwt.dev.Compiler.main(Compiler.java:166)
> [ERROR] Unexpected error while processing XML
> com.google.gwt.core.ext.UnableToCompleteException: (see previous log
> entries)
>        at com.google.gwt.dev.util.xml.ReflectiveParser
> $Impl.parse(ReflectiveParser.java:355)
>        at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access
> $100(ReflectiveParser.java:48)
>        at
> com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
> 402)
>        at
> com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
> 280)
>        at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
> 192)
>        at
> com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
> 308)
>        at
> com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:
> 151)
>        at com.google.gwt.dev.Compiler.run(Compiler.java:185)
>        at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
>        at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 87)
>        at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
> 81)
>        at com.google.gwt.dev.Compiler.main(Compiler.java:166)
>
> If there are some other steps I should be taking, please let me know -
> or you could just give me a link to a recompiled gwt-gadgets.jar
> file ; )
>
> On Apr 11, 7:44 pm, Eric Ayers <zun...@google.com> wrote:
>> http://code.google.com/p/gwt-google-apis/wiki/GettingStartedSource
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Apr 11, 2011 at 2:16 AM, dicko <d...@mothdesign.com.au> wrote:
>> > To be honest, I have no idea how to compile gwt-gadgets sources or
>> > where to get them from in the first place (I'm not a real developer).
>> > I was kind of hoping that Google might have a spare developer to do it
>> > if it's really that simple!
>>
>> > Alternatively, if someone can help me out with some instructions on
>> > how to do this, I'd really appreciate it.
>>
>> > On Apr 10, 2:52 am, Eric Ayers <zun...@google.com> wrote:
>> >> That's exactly what the problem is (with all the gwt-google-api
>> >> libraries and GWT 2.2)
>>
>> >> On Sat, Apr 9, 2011 at 12:34 PM, Juan Pablo Gardella
>>
>> >> <gardellajuanpa...@gmail.com> wrote:
>> >> > Is gwt-gadgets compatible with gwt 2.2? Perhaps you must 
>> >> > compile gwt-gadgets
>> >> > sources with gwt 2.2 for use in your project.
>>
>> >> > 2011/4/8 dicko <d...@mothdesign.com.au>
>>
>> >> >> Hi there,
>>
>> >> >> I've seen a few posts complaining about this error but they seem to
>> >> >> refer to issues using the Maps.jar.  Anyway, I've recently updated the
>> >> >> GWT plugin from 2.1 to 2.2 and can now no longer compile a gadget I've
>> >> >> been building using the Gadgets plugin (gwt-gadgets.jar).  I'm
>> >> >> receiving this error:
>>
>> >> >> [ERROR] Unexpected
>> >> >> java.lang.IncompatibleClassChangeError: Found interface
>> >> >> com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
>> >> >>        at
>>
>> >> >> com.google.gwt.gadgets.rebind.GadgetGenerator.validateType(GadgetGenerator.
>> >> >>  java:
>> >> >> 475)
>> >> >>        at
>>
>> >> >> com.google.gwt.gadgets.rebind.GadgetGenerator.generate(GadgetGenerator.java
>> >> >>  :
>> >> >> 93)
>> >> >>        at
>>
>> >> >> com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja
>> >> >>  va:
>> >> >> 48)
>> >> >>        at
>>
>> >> >> com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator
>> >> >>  ExtWrapper.java:
>> >> >> 60)
>> >> >>        at
>>
>> >> >> com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally
>> >> >>  (StandardGeneratorContext.java:
>> >> >> 662)
>> >> >>        at
>> >> >> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
>> >> >> 41)
>> >> >>        at com.google.gwt.dev.shell.StandardRebindOracle
>> >> >> $Rebinder.rebind(StandardRebindOracle.java:74)
>> >> >>        at
>>
>> >> >> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j
>> >> >>  ava:
>> >> >> 259)
>> >> >>        at
>>
>> >> >> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j
>> >> >>  ava:
>> >> >> 248)
>> >> >>        at
>>
>> >> >> com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns
>> >> >>  wers(DistillerRebindPermutationOracle.java:
>> >> >> 91)
>> >> >>        at
>>
>> >> >> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript
>> >> >>  Compiler.java:
>> >> >> 505)
>> >> >>        at
>>
>> >> >> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav
>> >> >>  a:
>> >> >> 35)
>> >> >>        at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
>> >> >>        at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
>> >> >>        at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
>> >> >>        at com.google.gwt.dev.Compiler.run(Compiler.java:215)
>> >> >>        at com.google.gwt.dev.Compiler.run(Compiler.java:187)
>> >> >>        at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
>> >> >>        at
>> >> >> com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
>> >> >> 87)
>> >> >>        at
>>
>> >> >> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu
>> >> >>  nner.java:
>> >> >> 81)
>> >> >>        at com.google.gwt.dev.Compiler.main(Compiler.java:166)
>>
>> >> >> Can anyone give me an idea of how this can be fixed or whether Google
>> >> >> are working on this?  I've temporarily re-added the GWT 2.1 plugin but
>> >> >> obviously this won't be a long-term solution as I'm assuming my code
>> >> >> will become deprecated at some point.
>>
>> >> >> Thanks!
>>
>> >> >> --
>> >> >> 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.
>>
>> >> > --
>> >> > 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.
>>
>> >> --
>> >> Eric Z. Ayers
>> >> Google Web Toolkit, Atlanta, GA USA
>>
>> > --
>> > 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 
>> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> --
>> Eric Z. Ayers
>> Google Web Toolkit, Atlanta, GA USA
>
> --
> 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.
>
>



-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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

Reply via email to