Any step-by-step guide to switching CLM 5.0.2 from Tomcat to WAS?
- From backing up files and DB's as precaution
- To Setting up WebSphere Application Server
- To the mid-stream step Deploying applications for CLM on WAS which guides through a new installation of CLM apps. We assume for an existing Tomcat installation, we should:
- skip this step as described.
- Stop Tomcat Service and disable it
- Configure WAS to point to the existing CLM app area previously served by Tomcat.
- We configure WAS with exactly same JVM options (mainly -Xmx16G, -Xms16G. -Xmn2G) as current Tomcat and server.startup.bat?
- Can we choose to run server.startup.bat on command linejust like before. We noticed that doing so wpuld spawn a Tomcat console while using Tomcat ... With WAS what should we expect? Any required config changes to server.startup.bat?
- Any other pointers? Anything we should be aware of?
Accepted answer
After you switch from Tomcat to WebSphere, you should stop using the server.startup script. That script is used for starting up the bundled application server (previously Tomcat, and now WAS Liberty in 6.0.x).
Starting up WAS is very simple, just run <was_profile>/bin/startServer <server_name>. If you follow the instructions for configuring the WAS server, all necessary environment variables (such as JVM heap size) are already stored within WAS, and you don't need to pass them on with a script.
Stopping WAS is equally simple just run <was_profile>/bin/stopServer <server_name> -username <wasadmin> -password <userpassword>.
There are no direct method to migrate the user repository though, if you're not aware of. If you are switching from Tomcat User Management to WAS Federated Repository, you simply have to create each single user manually. If you are using LDAP, you have to configure LDAP in WAS from scratch.
EDIT: Read your post again and found something wrong. You should not skip any steps in "Deploying applications for CLM on WAS". WAS does not use anything in the existing "tomcat" directory.
Comments
Thx Don,
Also, as 6.0.x is bundled with Liberty, would the upgrade include procedures to migrate the user repo and appSide index?
By "from scratch", I mean that you cannot "migrate" the LDAP configuration from Tomcat to WAS - the steps for setting up LDAP in WAS have nothing to do with Tomcat, whether you previously used Tomcat or not.
If you only switch Tomcat to WAS, the users in CLM remain the same, and the users on the LDAP server remain the same. There is no magical "cleanup" happening.
If you want to utilize the WAS Federated User Repository for a more complicated configuration (such as multiple LDAP server, and perhaps plus non-LDAP users), that's a different story. Keep it simple for the switch - basically, from file based to file based, or from LDAP to LDAP.
If you want to have a completely new installation, the .war files should be readily available whether you back them up or not. The teamserver.properties file should be copied over to the new environment. The indices can be copied over to the new environment to avoid rebuilding them (make sure the teamserver.properties file has the correct index folders).
Thx Don
Don,
You don't need to do anything on the CLM side when switching from Tomcat to WAS, if there are no changes on the LDAP server. As long as you correctly configure LDAP in WAS, everything should just work.
I'm not quite sure why you are worried about the "archived users". Regardless these users exist on the LDAP server or not, they can no longer log on to CLM.
Keep in mind that the user repository in the application server (WAS or Tomcat) and the one in CLM are separate. The only thing linked between them is the user ID. The user authentication is done on the application server (LDAP or not). Once authenticated, the application will map the security role(s) to the user, and pass it along to the (CLM) application, for example, dnong(JazzAdmins). The application will retrieve the user based on the user ID, and load dashboards and other stuff being requested.
Note that the LDAP configuration in the JTS Advanced Properties page is for "user synchronization" (full name and email) only, and has nothing to do with authentication.
Thx Don,
- Authentication is using either a local list or LDAP repo for its user repo
- Can't migrate Tomcat local list to WAS local list
- To use LDAP repo on WAS, proper configuration of WAS to be done, just as it was done on Tomcat previously according to Tomcat requirements.
- Application (WAS or Tomcat) maps security role to user, then send the pair userID/security role to CLM which in turn uses the pair for access..
- Nighly sync's are for changes of other infos on the LDAP accounts, based on userID
- Sort of right. The authentication is done by the application server against the configured user repository.
-
By "local list", if you mean the file based user repository, actually you can do it manually. No scripts can help you though, as far as I know.
-
Correct.
- Correct.
- Correct.
Thx Don
Comments
long TRUONG
May 11 '16, 4:51 p.m.Did find Post 12361: How migrate from tomcat to was? but it does not answer our questions.