createPasswordFile creates an XML file
Hi all,
*** RTC server version is 6.0 iFix003 ***
*** jbe.exe doesn't have a version number, but it's dated 5/19/2015 ***
We periodically change our password for the build user, and use the -createPasswordFile option to encrypt it.
Up until the last time we created it (about 3-4 months ago) the password file contained only the password itself, encrypted, 24 characters long.
But now, the command produced an XML file that looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"><properties><comment>4.0</comment><entry key="password">*****************************</entry></properties>
Personally I don't have any problem with it, but when trying to re-run old build, we're getting this error:
com.ibm.team.repository.common.TeamRepositoryException: Unable to get password from passwordFile "C:\PATH\FILENAME.txt"
Stripping the XML to contain only the password, doesn't work, we get "wrong credentials" error.
Does anyone have any clue about this, and how can it be fixed?
Thanks, Yaniv
One answer
After a lot of digging through old downloads I have determined that the cut over to XML format for the password file is RTC 4.0.x.
I located a 3.0.1.6 copy of the Jazz Build Engine and running the following:
creates a file containing a single line of what appears to be Base64 encoded text.
Running the same command with a version 4.0.0.1 JBE generates an XML file as you described in the original post.
From this experiment my determination is that the JBE that is being launched by your "JBE-Listener" is from a version prior to RTC version 4.0.
It's not a good idea to be using clients that are more than 1 version older than a server so if you are connecting to RTC 6.0 servers you need to upgrade your jazz build engines to RTC 5.0 at a minimum.
(Note: RTC version 2.x and RTC version 3.x have reached end of life and are no longer supported by IBM)
I conclude that the "JBE_Listener" tool is launching an old version of JBE (3.0 or older) and as "JBE_Listener" is not part of the CLM Build System Toolkit you will need to locate the author of that tool and have them rework it so it launches a compatible version of JBE.
I located a 3.0.1.6 copy of the Jazz Build Engine and running the following:
jbe -createPasswordFile pw.txt
creates a file containing a single line of what appears to be Base64 encoded text.
Running the same command with a version 4.0.0.1 JBE generates an XML file as you described in the original post.
From this experiment my determination is that the JBE that is being launched by your "JBE-Listener" is from a version prior to RTC version 4.0.
It's not a good idea to be using clients that are more than 1 version older than a server so if you are connecting to RTC 6.0 servers you need to upgrade your jazz build engines to RTC 5.0 at a minimum.
(Note: RTC version 2.x and RTC version 3.x have reached end of life and are no longer supported by IBM)
I conclude that the "JBE_Listener" tool is launching an old version of JBE (3.0 or older) and as "JBE_Listener" is not part of the CLM Build System Toolkit you will need to locate the author of that tool and have them rework it so it launches a compatible version of JBE.
Comments
Hi Alan, Thanks for your reply.
Your suggestion to upgrade to a newer version of the build system made sense to me, so I downloaded "RTC-BuildSystem-Toolkit-Win64-6.0.zip" (our RTC server is 6.0), and used it to generate a new password file and run builds with.
However, the results are the same, still getting "Unable to get password from passwordFile"...
The new password file is exactly the same as before.
JBE-listener is just the name of the service that the JSL creates.
JSL was downloaded from here:
And its configuration file was customized for our needs (mainly path changes)
Would it be possible to have just the 6.0 version of JBE in the build machine and see if the error still occurs, just to make sure that the JSL is launching the 6.0 JBE.
Thanks,
Sridevi
Comments
Lakshmi Narasimhan T V
JAZZ DEVELOPER Oct 18 '16, 5:02 a.m.Is the JBE's version that produced the password file same as the one that is consuming it? For eg, JBE 6.0 produced the file which is consumed by JBE 5.0?
Yaniv Nili
Oct 18 '16, 5:02 a.m.Not sure what it means... The jazz engine files are not versioned.
Yaniv Nili
Oct 18 '16, 5:13 a.m.I saw you added more questions.