Querying Work Item Type produces linkage error
![]() When attempting to create a work item using the Java Plain API (using groovy method shown here: How can I script Jazz/RTC using Groovy? - Jazz Forum) I have run into a Linkage error when attempting to get a Work Item Type object from the repository:
|
One answer
![]()
Ralph Schoon (61.8k●3●36●43)
| answered Aug 05 '21, 10:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER There is a class loader error involving Xerces. I am not sure if Xerces should be involved. I would suggest to xheck if the Plain Java Code runs in Java only and then check with Groovy. In case that fails I'd try Groovy forums.
Comments Xerces is in the jazz build toolkit. When I try to omit the xerces jar from the classpath, it immediately fails with [2021-08-05T16:04:18.927Z] Caught: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found [2021-08-05T16:04:18.927Z] javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found [2021-08-05T16:04:18.927Z] at org.eclipse.core.runtime.spi.RegistryStrategy.getXMLParser(RegistryStrategy.java:382) [2021-08-05T16:04:18.927Z] at org.eclipse.core.internal.registry.ExtensionRegistry.addContribution(ExtensionRegistry.java:1062) and fails TeamPlatform.startup(). |