|Re: [wtp-releng] help needed on build test failures|
1. Try setting the setXIncludeAware() method to either true or false to see if that fixes your problem. You many need to set the other configuration options as well.
It may work for a while, and then it just goes nuts one day. Dave karen moore wrote:
The org.eclipse.jst.jee.util.internal.XmlRootHandler uses SAXParserFactory factory = SAXParserFactory.newInstance(); while the org.eclipse.core.internal.content.XmlRootHandler usesActivator.getDefault().getFactory() (our JPT copy uses this as well)Will changing our JPT copy to use the former fix this problem? And if so I don't understand why the problem suddenly cropped up. I apologize if I seem clueless about this, it's because I am :)Thanks, Karen On 6/30/2009 11:40 AM, karen moore wrote:I copied XmlRootHandler from org.eclipse.core.internal.content.XmlRootHandler and that class has not changed since 2008. Not really sure how that could have suddenly caused this problem.Karen On 6/30/2009 11:34 AM, David Carver wrote:How ever your orm content type is being set up, and where you are getting your XML parser is causing the issue. The WTP parser is setup to be an XInclude aware configuration. You can't cast between these to configurations.I'd check to see how your SAX based parsing and content resolver are being setup and configured when calling Xerces. Particularly check your createParser code.Dave karen moore wrote:JPT has a bunch of test failures in last night's build and I am unsure of the cause. We did release, but I am confused by the exception (see below) appearing in the log file that are preventing our xml content types from being loaded. I updated my target workspace to last night's build and do not have test failures. Any ideas would be appreciated.Thanks, Karen!MESSAGE Could not create content describer for org.eclipse.jpt.core.content.orm. Content type has been disabled.!STACK 0java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration incompatible with org.apache.xerces.xni.parser.XMLParserConfigurationat org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source)at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) at org.eclipse.jpt.core.internal.resource.xml.XMLRootHandler.createParser(XMLRootHandler.java:118) at org.eclipse.jpt.core.internal.resource.xml.XMLRootHandler.parseContents(XMLRootHandler.java:186) at org.eclipse.jpt.core.internal.resource.xml.XMLRootElementContentDescriber.checkCriteria(XMLRootElementContentDescriber.java:169) at org.eclipse.jpt.core.internal.resource.xml.XMLRootElementContentDescriber.describe(XMLRootElementContentDescriber.java:204) at org.eclipse.core.internal.content.ContentType.describe(ContentType.java:161) at org.eclipse.core.internal.content.ContentTypeCatalog.collectMatchingByContents(ContentTypeCatalog.java:189)_______________________________________________ wtp-releng mailing list wtp-releng@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/wtp-releng_______________________________________________ wtp-releng mailing list wtp-releng@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/wtp-releng_______________________________________________ wtp-releng mailing list wtp-releng@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/wtp-releng
Back to the top