Issue while upgrading from GWT 1.4 to GWT 1.5 RC1

18 views
Skip to first unread message

ajain

unread,
Jun 2, 2008, 5:14:35 PM6/2/08
to Google Web Toolkit
I have created a demo application using gwt-1.4.62 using the
applicationCreator utility. It works fine and now when I am trying to
upgrade it to gwt-1.5 RC1 by replacing the gwt-user.jar also updated
the classpath, I am getting the following exception:

Loading module 'com.mycompany.TestGWT'
Loading inherited module 'com.google.gwt.user.User'
Loading inherited module 'com.google.gwt.core.Core'
[ERROR] Line 23: Unexpected element 'define-linker'
[ERROR] Failure while parsing XML
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at
com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedElement(DefaultSchema.java:
80)
at com.google.gwt.dev.util.xml.Schema.onUnexpectedElement(Schema.java:
93)
at com.google.gwt.dev.util.xml.Schema.onUnexpectedElement(Schema.java:
93)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:171)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
454)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:
217)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:
594)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:
777)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:
748)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:
1453)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1169)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:295)
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:
366)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
175)
at com.google.gwt.dev.cfg.ModuleDefSchema
$BodySchema.__inherits_begin(ModuleDefSchema.java:143)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:
223)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:242)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
454)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:
217)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:
594)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:
777)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:
748)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:
1453)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1169)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:295)
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:
366)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
175)
at com.google.gwt.dev.cfg.ModuleDefSchema
$BodySchema.__inherits_begin(ModuleDefSchema.java:143)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:
223)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:242)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
454)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:
217)
at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:
594)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:
777)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:
748)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:
1453)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
333)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1169)
at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:295)
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:
366)
at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
175)
at com.google.gwt.dev.cfg.ModuleDefLoader.load(ModuleDefLoader.java:
208)
at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.java:
81)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:753)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:745)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:213)
[ERROR] Line 21: Unexpected exception while processing element
'inherits'


Am I missing anything else? Even if create a new project with the gwt
1.5 I am getting the same error.

Appreciate your help.

Ian Petersen

unread,
Jun 2, 2008, 5:21:13 PM6/2/08
to Google-We...@googlegroups.com
You need to update all the JARs, not just -user. The compiler uses
stuff in -dev, so make sure the compiler's classpath is updated, too.

Ian

--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com

ajain

unread,
Jun 2, 2008, 8:58:52 PM6/2/08
to Google Web Toolkit
I did downloaded the latest gwt-windows-1.5.0.zip and created a new
application using the applicationCreator utility.
Even the default program generated by the tool is giving the same
exception

[ERROR] Line 23: Unexpected element 'define-linker'


Any pointers?

andronix

unread,
Jun 13, 2008, 11:28:21 AM6/13/08
to Google Web Toolkit
I was having the same problem.
Ussually, it happens when gwt-dev-windows.jar, gwt-servlet.jar or gwt-
user.jar are from different versions of gwt.
So, check carefully versions of those files...

ajain:
Reply all
Reply to author
Forward
0 new messages