Creating a Java jar results in: IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.
Hi team,
I have created executable jar file which includes IBM RTC Client library 6.05. when I run the java class it works well but when i make executable it throws error. please kindly suggest .
java -jar deletedef.jar https://abc.net/ccm uid passwd builddef
log4j:WARN No appenders could be found for logger (com.ibm.team.repository.common.internal.util.InternalTeamPlatform).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:447)
at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository(TeamRepositoryService.java:526)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:113)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:132)
at DeleteBuilddefinition.login(DeleteBuilddefinition.java:203)
at DeleteBuilddefinition.main(DeleteBuilddefinition.java:70)
Caused by: java.lang.IllegalArgumentException: The type name Contributor and the namespace URI com.ibm.team.repository do not resolve to an IItemType.
2 answers
Hi , i get the same issue, have u resolved it?
Comments
This has always worked for me provided I made sure that
- A correct Java Version was used to make the JAR file
- The Java extdirs were provided as described in the README.TXT included in the snippets folder of the plain java client libraries.