How to configure Tomcat Apache with Service Mapping

dkhanna01
Mega Contributor

I have a Apache tomcat installed on my server which I'm trying to run Service Mapping on. I need to know how do I configure Tomcat such that when mapping runs it should look for config setting in different location. Currently it looks for ROOT location $HOME/tomcat/webapps/ROOT and I'd like to change that to look for another folder under .../webapps.

3 REPLIES 3

Chuck Tomasi
Tera Patron

Hi Deepak,



The patterns determine how to get that configuration. You can use command line args, environment variables, etc. to determine the settings directly, or locate a file that contains the settings.


saadit
Kilo Expert

Hi Deepak,



Were you able to get this resolved? If not let me know and I'll try to provide some guidance. It seems that you'll just need to input the entry point and once discovery fails, you'll need to debug discovery, navigate to the tomcat pattern, and run debug from there. Then you'll need to modify the pattern to add a temporary variable for the correct directory.



Thanks,



Saadi Tahmid


Service Mapping Developer


Cognizant Technology Solutions


srikanthvk
Giga Expert

Hi Deepak,



Saadi is pretty much right, just define a temporary variable and assign a value of the path to which you want to point. After debugging the new step in which you have assigned the path, you'll able to see it in the temporary variables section.



But make sure you use this path with a pre-condition if you are making changes to OOTB pattern.



Thanks,


Srikanth Varma