How to migrate from Tomcat to WAS Liberty ? We are getting an error during Merging JTS configuration files
Using the upgrade wrapper below is the command executed and it fails because is looking for nonexistent files.. It seems that it wants to migrate from liberty to liberty instead Tomcat to Liberty. Do I missing some step before run the migration ?
bash$ upgrade/jts/jts_upgrade.sh -oldJTSHome /home/jazz/6.0/jtsccm_9443/server/conf repotools-jts -migration_jts_updateConfigurationFiles jtsContextRoot=jts lpaContextRoot=admin newJTSHome=/home/jazz/6.0.1/jtsccm_9443/server/conf oldJTSHome=/home/jazz/6.0/jtsccm_9443/server/conf/ updateAppServerFiles=yes updateTomcatFiles=no Log output: 016-01-07 14:26:40,335 Repo Tools 2016-01-07 14:26:40,335 java.version=1.7.0 2016-01-07 14:26:40,335 java.runtime.version=pxa6470_27sr3fp10-20150708_01 (SR3 FP10) 2016-01-07 14:26:40,343 Provisioning using "./conf/jts/provision_profiles". 2016-01-07 14:26:40,381 repotools-jts -migration_jts_updateConfigurationFiles jtsContextRoot=jts lpaContextRoot=admin newJTSHome=/home/jazz/6.0.1/jtsccm_9443/server/conf oldJTSHome=/home/jazz/6.0/jtsccm_9443/server/conf/ updateAppServerFiles=yes updateTomcatFiles=no 2016-01-07 14:26:40,391 Global patch active at /home/jazz/6.0.1/jtsccm_9443/server/patc/CLM_server_patch_6.0.1.0-CALM601M-I20151217-2117.zip: "null" Jazz Foundation - Core Libraries, Version 6.0.1 (RJF-I20151106-1823) 2016-01-07 14:26:40,459 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-01-07 14:26:40,459 CRJAZ1363I Loading the configuration from "bundleresource://165.fwk1578759029:1/teamserver.properties". 2016-01-07 14:26:40,471 Validating JTS configuration files... 2016-01-07 14:26:40,474 Checking the old JTS version... 2016-01-07 14:26:46,147 CRJAZ2132I The old JTS version is "6.0.0". 2016-01-07 14:26:52,658 CRJAZ2624I The new JTS version is "6.0.1". 2016-01-07 14:26:52,663 2016-01-07 14:26:52,663 Merging JTS configuration files... 2016-01-07 14:26:52,663 Backing up the JTS teamserver properties "/home/jazz/6.0.1/jtsccm_9443/server/conf/jts/teamserver.properties" to "/home/jazz/6.0.1/jtsccm_9443/server/conf/jts/teamserver-1452198412663backup.properties"... 2016-01-07 14:26:52,668 Backup file "/home/jazz/6.0.1/jtsccm_9443/server/conf/jts/teamserver-1452198412663backup.properties" created. 2016-01-07 14:26:52,668 2016-01-07 14:26:52,668 Updating properties file "/home/jazz/6.0.1/jtsccm_9443/server/conf/jts/teamserver.properties" using the properties defined in "/home/jazz/6.0/jtsccm_9443/server/conf/jts/teamserver.properties". 2016-01-07 14:26:52,672 - Adding property "com.ibm.team.repository.completed.setup". 2016-01-07 14:26:52,672 - Adding property "com.ibm.team.repository.setup.completed.setup". 2016-01-07 14:26:52,672 The teamserver properties file /home/jazz/6.0.1/jtsccm_9443/server/conf/jts/teamserver.properties is current and does not required any updates. 2016-01-07 14:26:52,672 2016-01-07 14:26:52,673 Backing up the Liberty user configuration file "/home/jazz/6.0.1/jtsccm_9443/server/liberty/servers/clm/conf/basicUserRegistry.xml" to "/home/jazz/6.0.1/jtsccm_9443/server/liberty/servers/clm/conf/basicUserRegistry1452198412673backup.xml"... 2016-01-07 14:26:52,677 CRJAZ1879E The source file "/home/jazz/6.0.1/jtsccm_9443/server/liberty/servers/clm/conf/basicUserRegistry.xml" does not exist. The source file "/home/jazz/6.0.1/jtsccm_9443/server/liberty/servers/clm/conf/basicUserRegistry.xml" cannot be copied to the target file "/home/jazz/6.0.1/jtsccm_9443/server/liberty/servers/clm/conf/basicUserRegistry1452198412673backup.xml". 2016-01-07 14:26:52,678 2016-01-07 14:26:52,678 CRJAZ1868E There was an error merging configuration files. See log for details. |
Accepted answer
Hi,
Looks like the script could not create correctly the new liberty server (e.g. did not copy all the contents from the server template folder to the new server). If you have set your JAVA_HOME variable, verify is pointing to a valid and supported java version ARIANNE NAVARRO selected this answer as the correct answer
|
2 other answers
The directory <JazzTeamServerHome>/server/liberty/servers/clm/ is only created the first time you start the liberty server for 6.0.1. You can check if the clm folder exists.
You could as well try starting the 6.0.1 server once (server.startup), shut it down and then try the upgrade script again.
|
Roberto, Shubjut - Thanks!
The first time I ran the upgrade script JAVA_HOME variable was incorrect and seems that left me a corrupted environment. Follow your instructions this was the workaround : - Started 6.0.1 server then shutted down. - Removed <jazzteamserverhome>/server/liberty/servers/clm directory - Restart the upgrade script |
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.