Hi,
I am facing some task which cannot sort. I'm deploying Tomcat web server with my application. In Files and Folder there is server.xml created in path [conf_dir] (APPDIR\Server\Web Server\conf). As one of elements is "port" (set to property [TSL_TOMCAT_PORT] = 80 by default). File is set to not uninstall as I want to preserve setting for future installation. Installation also create shortcut to "http://localhost:[TSL_TOMCAT_PORT]".
It works as expected for new installation and if port is not changed. If user change port and then upgrade then I need set [TSL_TOMCAT_PORT] to value from existing server.xml
I think it is possible in "Search - XML Search" but I am not sure how.
My setup is sollowing:
File Path = [conf_Dir]server.xml
Elements tree: Server - Service - Connector
Locator: Search=Attribute name, Value=port, Store-Attribute value in TSL_TOMCAT_PORT
Issue is that server.xml contain multiple "Connector" elements with "port" attribute but different "protocol" attributes. I need only value where protocol="HTTP/1.1" .
Do you have any solution?
FOLLOW US
Get the latest news in Application Packaging