Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Problems in setting up the development environment of RTC2.0

Hi All,
According to the guide
https://jazz.net/wiki/bin/view/Main/RTCSDK20_DevelopmentEnvironmentSetup,
I set up the development environment, and when I run the plain java client libraries samples, I met a problem:
Contacting https://127.0.0.1:9443/jazz/...

Unable to login: CRJAZ0099I HTTP error "RSA premaster secret error" accessing URL "https://127.0.0.1:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService".

The version I used is RTC 2.0 Rc2 Express-C. I don't know why this happened. When I visit the link https://127.0.0.1:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService.
I got error: The server encountered an internal error () that prevented it from fulfilling this request.
Do I need some licenses to do some extension for RTC?
Could somebody please help me?
Thanks in advance.

Regards,
Joseph

0 votes



8 answers

Permanent link
I've seen this error before when not using the bundled JRE that comes with RTC. This error relates to JCE extensions which can't be shipped in all JREs because of import control restrictions on crypto code in several countries.

Ensure you are using the JRE that ships with RTC.

Cheers,
Jean-Michel

======= Found several discussion about this on the web

Download and install the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files version 5.0. http://java.sun.com/j2se/1.5.0/download.jsp

Due to import control restrictions, the version of JCE policy files that
are bundled in the JDK(TM) 5.0 environment allow "strong" but limited
cryptography to be used.

0 votes


Permanent link
Thanks Jean a lot.
As you described, I resolved it with your solution.

Regards,
Joseph



I've seen this error before when not using the bundled JRE that comes with RTC. This error relates to JCE extensions which can't be shipped in all JREs because of import control restrictions on crypto code in several countries.

Ensure you are using the JRE that ships with RTC.

Cheers,
Jean-Michel

======= Found several discussion about this on the web

Download and install the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files version 5.0. http://java.sun.com/j2se/1.5.0/download.jsp

Due to import control restrictions, the version of JCE policy files that
are bundled in the JDK(TM) 5.0 environment allow "strong" but limited
cryptography to be used.

0 votes


Permanent link
I have the same problem.

When I run the plain java client, I obtain:

root@srtc01:/opt/IBM/JazzTeamServer/client/plainjava# java -Djava.ext.dirs=/opt/IBM/JazzTeamServer/client/plainjava/etc:snippets:. snippets/Snippet1
Contacting https://localhost:9443/jazz/...
Unable to login: CRJAZ0099I HTTP error "RSA premaster secret error" accessing URL "https://localhost:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService".

So I followed this topic and I installed JCE files., but the result is the same.
In addition now if I login from RTC I obtain this error:

Internal error during: "Login to localhost".
java.lang.NoClassDefFoundError: javax.crypto.b (initialization failure)

If I put the old JCE files I can login normally.

What is my mistake?

0 votes


Permanent link
Hi. I did not reinstall the jce. I just use the jre shipped by jazz. It works well. Hope this could help you.

Regards,
Joseph.

I have the same problem.

When I run the plain java client, I obtain:

root@srtc01:/opt/IBM/JazzTeamServer/client/plainjava# java -Djava.ext.dirs=/opt/IBM/JazzTeamServer/client/plainjava/etc:snippets:. snippets/Snippet1
Contacting https://localhost:9443/jazz/...
Unable to login: CRJAZ0099I HTTP error "RSA premaster secret error" accessing URL "https://localhost:9443/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService".

So I followed this topic and I installed JCE files., but the result is the same.
In addition now if I login form RTC I obtain this error:

Internal error during: "Login to localhost".
java.lang.NoClassDefFoundError: javax.crypto.b (initialization failure)

What is my mistake?

0 votes


Permanent link
Thanks for asnwer josseph.
I change the java home to: /opt/IBM/JazzTeamServer/client/eclipse/jdk/jre/bin/ that contains the jre shipped by jazz, but the error remains the same.

Perhaps I need to change the -Djava.ext.dirs argument.

Hi. I did not reinstall the jce. I just use the jre shipped by jazz. It works well. Hope this could help you.

Regards,
Joseph.

0 votes


Permanent link
Thanks for asnwer josseph.
I change the java home to: /opt/IBM/JazzTeamServer/client/eclipse/jdk/jre/bin/ that contains the jre shipped by jazz, but the error remains the same.

Perhaps I need to change the -Djava.ext.dirs argument.


Ok, I resolved. I have an old version of jre.
So I try to launch Snippet1 from RTC and I obtain this error:

Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.team.repository.transport.auth.TransportAuthUtil
at com.ibm.team.repository.transport.client.RemoteTeamServer.setCredentials(RemoteTeamServer.java:179)
at com.ibm.team.repository.client.internal.TeamRepository.<init>(TeamRepository.java:348)
at com.ibm.team.repository.client.internal.TeamRepositoryService.createSharedTeamRepository(TeamRepositoryService.java:366)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:91)
at com.ibm.team.repository.client.internal.TeamRepositoryService.getTeamRepository(TeamRepositoryService.java:110)
at snippets.Snippet1.login(Snippet1.java:37)
at snippets.Snippet1.main(Snippet1.java:28)
Caused by: java.lang.ClassNotFoundException: com.ibm.team.repository.transport.auth.TransportAuthUtil
at java.net.URLClassLoader.findClass(URLClassLoader.java:496)
at java.lang.ClassLoader.loadClass(ClassLoader.java:631)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
... 7 more


I search everything, but I don't found the plugin com.ibm.team.repository.transport.auth.TransportAuthUtil.
I have a com.ibm.team.repository.common.transport..., but it isn't the same.

0 votes


Permanent link
Hello,
I got it working but I'm getting this error for com.ibm.team.repository.common.util.ExtensionRegistryReader. Does anyone know why?

Thanks

com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.filesystem.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.filesystem that is not unique.

0 votes


Permanent link
I resolved it by updating the classpath...
Hello,
I got it working but I'm getting this error for com.ibm.team.repository.common.util.ExtensionRegistryReader. Does anyone know why?

Thanks

com.ibm.team.repository.common.util.ExtensionRegistryReader logError
SEVERE: The com.ibm.team.filesystem.common bundle's plugin.xml file contains a <component> element with the id attribute value com.ibm.team.filesystem that is not unique.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Jun 14 '09, 9:18 a.m.

Question was seen: 13,073 times

Last updated: Jun 14 '09, 9:18 a.m.

Confirmation Cancel Confirm