RTC java api 6.0.5 TeamPlatform.startup() error with Spring application
Hello,
I am using RTC java client api 6.0.5
I am able to connect to RTC and fetch items and things when running as standalone application .But when running same code in Spring web application getting error
java.lang.IllegalAccessError: tried to access class javax.xml.parsers.FactoryFinder from class javax.xml.parsers.SAXParserFactory
16:34:48,390 INFO [stdout] (http-localhost/127.0.0.1:8080-6) at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
16:34:48,390 INFO [stdout] (http-localhost/127.0.0.1:8080-6) at org.eclipse.core.runtime.spi.RegistryStrategy.getXMLParser(RegistryStrategy.java:382)
16:34:48,391 INFO [stdout] (http-localhost/127.0.0.1:8080-6) at org.eclipse.core.internal.registry.ExtensionRegistry.addContribution(ExtensionRegistry.java:1062)
16:34:48,391 INFO [stdout] (http-localhost/127.0.0.1:8080-6) at com.ibm.team.repository.common.internal.util.StandaloneExtensionRegistry.processPlugin(StandaloneExtensionRegistry.java:140)
16:34:48,391 INFO [stdout] (http-localhost/127.0.0.1:8080-6) at com.ibm.team.repository.common.internal.util.StandaloneExtensionRegistry.<init>(StandaloneExtensionRegistry.java:107)
16:34:48,392 INFO [stdout] (http-localhost/127.0.0.1:8080-6) at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.initializeRegistry(InternalTeamPlatform.java:249)
16:34:48,392 INFO [stdout] (http-localhost/127.0.0.1:8080-6) at com.ibm.team.repository.common.internal.util.InternalTeamPlatform.start(InternalTeamPlatform.java:107)
16:34:48,392 INFO [stdout] (http-localhost/127.0.0.1:8080-6) at com.ibm.team.repository.client.TeamPlatform.startup(TeamPlatform.java:50)
16:34:48,392 INFO [stdout] (http-localhost/127.0.0.1:8080-6) at com.rtc.ConnectRTC.<clinit>(ConnectRTC.java:24)
try {
TeamPlatform.startup(); //connectRTC.java line 24
}
catch(Exception ex)
{
ex.printStackTrace();
}