Author Message
JoePerez
Joined: Mar 7, 2022
Messages: 4
Offline
We are upgrading our IVR applications from OD7.1 to OD8.1.1.0801. We want to run multiple instances of of Tomcat (one for 7.1 the other for 8.1) on same server. As we upgrade one application, we will push the new upgraded application war file to the new upgraded Tomcat instance.

Test Server name: "ivr_server01" configured as follows:
Tomcat Instance1_OD7.1 running as service: Java 1.8.0.311 with apache-tomcat-8.5.73 (for OD7.1)
Tomcat Instance2_OD7.1 running as service: Java 1.8.0.311 with apache-tomcat-8.5.73 (for OD7.1)
Tomcat Instance3_OD8.1 running as service: Java 1.8.0.311 with apache-tomcat-9.0.58 (for OD8.1.1.0801)

Server environment variable for CATALINA_HOME IS NOT set and all installs of service are configured using the service.bat file.
Instance3_OD8.1
Instances : Instance1_OD7.1 and Instance2_OD7.1 run fine and the license manager does not have an issue distinguishing their unique CATALINA_HOME directories.

however, for Instance3_OD8.1 I see an issue with two items.
I have to create a directory on the webapps folder named WebLM. (this is not needed on instances configured for OD7.1)
1. Inside WebLM, create subdirectory named admin and copy file: truscert.properties from the tomcat\lib directory
Even though the webLM server being used is server1_weblm01, this is the solution to get rid of the truscert.properties error.
2. set CATALINA_HOME directory in environment variables to fix the license issue.

See example of logs below of what results I get when I do both fixes and when the environment variable is removed.
It seems like there is a dependency on one or more of the updated runtime lib jar files or even runtimeconfig.war.

I have looked at the JVM Options for the service using the gui option of the tomcat service (Tomcat9w.exe) and have set options of -Dcatalina.home=E:\Apps\Tomcat\Instance1 ; -Dcatalina.base=E:\Apps\Tomcat\Instance1. This is how we set up each tomcat service designating the location for each one, but this has no effect.

IVR_APP_TRACE.LOG
18/03/2022 14:49:09:636 DEBUG - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Acquiring initial License
18/03/2022 14:49:09:636 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Acquiring Avaya Platform runtime license
18/03/2022 14:49:09:636 DEBUG - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Using license server - https://server1_weblm01.us.company.com:52233
18/03/2022 14:49:09:636 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Using license check timeout :10
18/03/2022 14:49:10:861 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Runtime :true
18/03/2022 14:49:10:861 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : IC :true
18/03/2022 14:49:10:861 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : CTI :true
18/03/2022 14:49:10:939 DEBUG - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Grace Period timer cleared
18/03/2022 14:49:10:939 DEBUG - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : License refresh timer started

tomcat28080-stderr.2022-03-18.log
INFO: OpenSSL successfully initialized [OpenSSL 1.1.1l 24 Aug 2021]
Mar 18, 2022 2:48:53 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-28080"]
Mar 18, 2022 2:48:53 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["https-openssl-apr-28443"]
Mar 18, 2022 2:48:53 PM org.apache.tomcat.util.net.SSLUtilBase checkTrustStoreEntries


Removing CATALINA_HOME from Enviroment Variable settings:

IVR_APP_TRACE.LOG
18/03/2022 14:58:49:443 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : runtime_platform : Experience Portal
18/03/2022 14:58:49:443 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : runtime_asr : Nuance 10.0 and above
18/03/2022 14:58:49:458 DEBUG - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Acquiring initial License
18/03/2022 14:58:49:458 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Acquiring Avaya Platform runtime license
18/03/2022 14:58:49:458 DEBUG - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Using license server - https://server1_weblm01.us.company.com:52233
18/03/2022 14:58:49:458 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Using license check timeout :10
18/03/2022 14:58:49:741 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : Runtime :false
18/03/2022 14:58:49:741 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : IC :false
18/03/2022 14:58:49:741 INFO - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : CTI :false
18/03/2022 14:58:49:803 DEBUG - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : License is bad, allowing grace period
18/03/2022 14:58:49:803 DEBUG - 3E051D1E2461E0F7C819783C004D7F75:/IVR_APP : License refresh timer started

tomcat28080-stderr.2022-03-18.log
INFO: Starting ProtocolHandler ["http-nio-28080"]
Mar 18, 2022 2:58:43 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["https-openssl-apr-28443"]
Mar 18, 2022 2:58:43 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in [11667] milliseconds
java.io.FileNotFoundException: trustedcert.properties (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.avaya.weblm.HttpConnection.getProperties(HttpConnection.java:327)
at com.avaya.weblm.HttpConnection.createSecureSocketContext(HttpConnection.java:260)
at com.avaya.weblm.HttpConnection.writeProperties(HttpConnection.java:101)
at com.avaya.weblm.RequestMsg.send(RequestMsg.java:103)
at com.avaya.weblm.LicenseManager.getProduct(LicenseManager.java:583)
at com.avaya.runtimecommon.platforms.vp.License.<init>(License.java:97)
at com.avaya.runtimecommon.platforms.vp.Toolkit.createLicense(Toolkit.java:46)
at com.avaya.sce.runtimecommon.License.getInstance(License.java:147)
at com.avaya.sce.runtime.Entry.handleRequest(Entry.java:267)
at com.avaya.sce.runtime.AppDocument.processRequest(AppDocument.java:343)
at com.avaya.sce.runtime.SCEServlet.requestHandler(SCEServlet.java:247)
at com.avaya.sce.runtime.SCEServlet.doGet(SCEServlet.java:140)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:655)


Can someone please guide me to find a solution on how to run the two different instances on same server (running as service)?
if known issue, is there something being worked on to resolve this?

Thanks in advance.
massimo__croci
Joined: Jan 31, 2020
Messages: 518
Offline
Hi. Please, take a look at

https://www.devconnectprogram.com/forums/posts/list/23727.page

https://www.devconnectprogram.com/fileMedia/download/5dd0af54-c2cd-4ab0-9efd-62f131665917 on page 5
Go to:   
Mobile view
502 Bad Gateway

502 Bad Gateway