Tuesday, July 3, 2018

Re: GWT2.8 : org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

For me the following helps in my project's pom.xml:

    <!-- for unknown reason GWT 2.8 debugging under Eclipse fails without xerces dependency -->

On Sunday, July 1, 2018 at 12:13:43 AM UTC-7, Leto wrote:

Am Samstag, 30. Juni 2018 14:35:17 UTC+2 schrieb Thomas Broyer:
What's in your classpath? There might probably be ways to avoid those situations, in GWT, but so few people have run into this that no one investigated further.

I stripped down my dependencies to just only a few, and if I omit the 

> -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
> -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl

arguments, the problem still occurs.

I use the simple Ant script, no Eclipse, no Maven in this setup. And within my Ant script, I print the current classpath, which results in:

> D:\[...]\gwt-2.8.2\gwt-user.jar
> D:\[...]\gwt-2.8.2\gwt-dev.jar
> D:\[...]\Eclipse\MyGwtApp\src
> D:\[...]\Eclipse\MyGwtApp\war\WEB-INF\classes
> D:\[...]\Eclipse\MyGwtApp\war\WEB-INF\lib
> D:\[...]\Eclipse\MyGwtApp\war\WEB-INF\lib\aopalliance-1.0.jar
> D:\[...]\Eclipse\MyGwtApp\war\WEB-INF\lib\gin-2.1.2.jar
> D:\[...]\Eclipse\MyGwtApp\war\WEB-INF\lib\guice-3.0.jar
> D:\[...]\Eclipse\MyGwtApp\war\WEB-INF\lib\guice-assistedinject-3.0.jar
> D:\[...]\Eclipse\MyGwtApp\war\WEB-INF\lib\gwt-visualization-1.1.2.jar
> D:\[...]\Eclipse\MyGwtApp\war\WEB-INF\lib\javax.inject-1.jar 

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment