It's all about the answers!

Ask a question

Migration from Tomcat to WAS liberty profile failing


Jorge Alarcon (41322) | asked Apr 14 '16, 3:52 p.m.
Hi

I am running the upgrade script from CLM 6.0 to CLM 6.0.1 as follows:

upgrade/jts/jts_upgrade.sh -oldJTSHome /opt/IBM/CLM_SAPC_v600/server/conf

Command:
    repotools-jts.sh -migration_jts_updateConfigurationFiles oldJTSHome=/opt/IBM/CLM_SAPC_v600/server/conf jtsContextRoot=jts updateAppServerFiles=yes updateTomcatFiles=no  newJTSHome=/opt/IBM/CLM_SAPC_v601/server/conf    lpaContextRoot=admin



and it keeps failing after merging Tomcat server xml file:
Merging Tomcat server xml file "/opt/IBM/CLM_SAPC_v600/server/tomcat/conf/server.xml"...
CRJAZ1868E There was an error merging configuration files. See log for details.
The jts upgrade failed at step 0.  Correct the problem and run the script again starting at step 0.

This is what I see on the log:

2016-04-14 15:45:07,089 Repo Tools
2016-04-14 15:45:07,090 java.version=1.7.0
2016-04-14 15:45:07,090 java.runtime.version=pxa6470_27sr3fp10-20150708_01 (SR3 FP10)
2016-04-14 15:45:07,094 Provisioning using "./conf/jts/provision_profiles".
2016-04-14 15:45:07,138 repotools-jts -migration_jts_updateConfigurationFiles jtsContextRoot=jts lpaContextRoot=admin newJTSHome=/opt/IBM/CLM_SAPC_v601/server/conf oldJTSHome=/opt/IBM/CLM_SAPC_v600/server/conf updateAppServerFiles=yes updateTomcatFiles=no
2016-04-14 15:45:07,144   Jazz Foundation - Core Libraries, Version 6.0.1 (RJF-I20151106-1823)

2016-04-14 15:45:07,194
 To submit questions about issues, go to the Jazz.net forum at https://jazz.net/forum.
 To find more information about a message, see the online product documentation.
2016-04-14 15:45:07,194 CRJAZ1363I Loading the configuration from "bundleresource://164.fwk-2060308952:1/teamserver.properties".
2016-04-14 15:45:07,202 Validating JTS configuration files...
2016-04-14 15:45:07,204 Checking the old JTS version...
2016-04-14 15:45:11,705 CRJAZ2132I The old JTS version is "6.0.0".
2016-04-14 15:45:17,179 CRJAZ2624I The new JTS version is "6.0.1".
2016-04-14 15:45:17,182
2016-04-14 15:45:17,182 Merging JTS configuration files...
2016-04-14 15:45:17,182 Backing up the JTS teamserver properties "/opt/IBM/CLM_SAPC_v601/server/conf/jts/teamserver.properties" to "/opt/IBM/CLM_SAPC_v601/server/conf/jts/teamserver-1460663117182backup.properties"...
2016-04-14 15:45:17,186 Backup file "/opt/IBM/CLM_SAPC_v601/server/conf/jts/teamserver-1460663117182backup.properties" created.
2016-04-14 15:45:17,186
2016-04-14 15:45:17,186 Updating properties file "/opt/IBM/CLM_SAPC_v601/server/conf/jts/teamserver.properties" using the properties defined in "/opt/IBM/CLM_SAPC_v600/server/conf/jts/teamserver.properties".
2016-04-14 15:45:17,187          - Adding property "com.ibm.team.repository.completed.setup".
2016-04-14 15:45:17,187          - Adding property "com.ibm.team.repository.setup.completed.setup".
2016-04-14 15:45:17,188 The teamserver properties file /opt/IBM/CLM_SAPC_v601/server/conf/jts/teamserver.properties is current and does not required any updates.
2016-04-14 15:45:17,188
2016-04-14 15:45:17,188 Backing up the Liberty user configuration file "/opt/IBM/CLM_SAPC_v601/server/liberty/servers/clm/conf/basicUserRegistry.xml" to "/opt/IBM/CLM_SAPC_v601/server/liberty/servers/clm/conf/basicUserRegistry1460663117188backup.xml"...
2016-04-14 15:45:17,189 Backup Liberty user configuration file "/opt/IBM/CLM_SAPC_v601/server/liberty/servers/clm/conf/basicUserRegistry1460663117188backup.xml" created.
2016-04-14 15:45:17,189
2016-04-14 15:45:17,189 Merging Tomcat users xml file "/opt/IBM/CLM_SAPC_v600/server/tomcat/conf/tomcat-users.xml"...
2016-04-14 15:45:17,223 The Tomcat users xml file was merged successfully. The merged file is present at "/opt/IBM/CLM_SAPC_v601/server/liberty/servers/clm/conf/basicUserRegistry.xml".
2016-04-14 15:45:17,223
2016-04-14 15:45:17,223 Backing up the Liberty Server xml file "/opt/IBM/CLM_SAPC_v601/server/liberty/servers/clm/server.xml" to "/opt/IBM/CLM_SAPC_v601/server/liberty/servers/clm/server1460663117223backup.xml"...
2016-04-14 15:45:17,223 Backup Liberty Server xml file "/opt/IBM/CLM_SAPC_v601/server/liberty/servers/clm/server1460663117223backup.xml" created.
2016-04-14 15:45:17,224
2016-04-14 15:45:17,224 Merging Tomcat server xml file "/opt/IBM/CLM_SAPC_v600/server/tomcat/conf/server.xml"...
2016-04-14 15:45:17,229
2016-04-14 15:45:17,229 CRJAZ1868E There was an error merging configuration files. See log for details.



And I set JAVA variable on repotools-jts.sh to the following:

JAVA="/opt/IBM/CLM_SAPC_v601/server/jre/bin/java"



Can you please advice?

2 answers



permanent link
Jorge Alarcon (41322) | answered Apr 15 '16, 12:13 p.m.
Hi Donald

Yeah, I noticed that the error is similar to that one and that's why I made sure the JAVA_HOME path was correct, I also started suspecting about a problem with Tomcat configuration files.
At the end I decided to move to Websphere Application Server instead of using Liberty profile
Thanks and regards

permanent link
Donald Nong (14.4k314) | answered Apr 15 '16, 1:15 a.m.
I'm sure you're aware of this post, as the error there looks the same.
https://jazz.net/forum/questions/214078/how-to-migrate-from-tomcat-to-was-liberty-we-are-getting-an-error-during-merging-jts-configuration-files

Note that your problem can be quite different, as the other user got the problem when backing up the Liberty basicUserRegistry.xml file, and in your case, you've got past that step.

Based on the error message alone, it suggests that there are some problems with the Tomcat server.xml file. Have you done any customization in that file, such as LDAP configuration? If so, provide the details. Maybe the script just cannot handle some particular configurations.

Your answer


Register or to post your answer.