It's all about the answers!

Ask a question

Problems in setting up the development environment of RTC2.0


josseph zhang (3612) | asked Jun 14 '09, 9:18 a.m.
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

8 answers



permanent link
Jean-Michel Lemieux (2.5k11) | answered Jun 14 '09, 4:31 p.m.
JAZZ DEVELOPER
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.

permanent link
josseph zhang (3612) | answered Jun 15 '09, 8:55 a.m.
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.

permanent link
carlo gneo (9694) | answered Jun 24 '09, 10:29 a.m.
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?

permanent link
josseph zhang (3612) | answered Jun 24 '09, 11:10 a.m.
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?

permanent link
carlo gneo (9694) | answered Jun 24 '09, 11:36 a.m.
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.

permanent link
carlo gneo (9694) | answered Jun 25 '09, 10:22 a.m.
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.

permanent link
EclipseTalk . (32735859) | answered Aug 11 '09, 10:53 p.m.
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.

permanent link
EclipseTalk . (32735859) | answered Aug 12 '09, 7:56 a.m.
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.

Your answer


Register or to post your answer.