Upgrade Java and Tomcat

Start the latest version of Deployment Manager, from the latest Zylinc release that you downloaded and unzipped in a previous step.
Run DeploymentManager.exe directly from the extracted folder, for example C:\Zylinc install\Release_6.0u4.8\Release_6.0u4.8\DeploymentManager.exe
We recommend that you pin the latest version of Deployment Manager to the taskbar, and unpin any previous versions from the taskbar.
-
In the Deployment Manager menu, select Deployment > Installation.
-
If a new Java version is available, install it.
Do not uninstall the old Java version yet.

-
In the Deployment Manager menu, select Deployment > Installation.
-
If a new Tomcat version is available, install it.
Do not uninstall the old Tomcat version yet.

- In the Deployment Manager menu, select Application Administration > Apache Tomcat Administration
- In Instances, check that you can see your Tomcat instances

- In Instances, click the first instance
- In Apache, select the latest version of Apache Tomcat
- In Java, select the latest version of Java
- Click Save instance
Repeat the steps for the remaining instances.

Check that your existing Tomcat instance configuration matches the current recommendation, which is:
- Create at least two separate Tomcat instances that use the Java and Tomcat versions included in the latest Zylinc release. Don’t upgrade to newer versions of Tomcat or Java via third-party downloads.
- One of the instances must support HTTPS via a self-signed certificate. The other instances doesn’t need support for HTTPS.
- In Max Memory (MB), enter at least 2048 for all instances
If you existing configuration doesn't match the current Zylinc recommendation, Alternative B in the following describes how to set up the recommended configuration.

-
In Windows Control Panel, click Uninstall a program.
-
Uninstall all old versions of Apache Tomcat. Because you have a backup of the old Tomcat folders, you can click Yes, when you're asked if you want to delete the program folders during uninstallation.
-
Uninstall all old versions of Java.
Then do the following.

This is how to use Deployment Manager to set up the first Tomcat instance:
-
In the Deployment Manager menu, select Deployment > Application Administration > Apache Tomcat Administration
-
In Instances, click New instance
-
In Apache, select the most recent Tomcat version available in the list
-
In Java, select the most recent Java version available in the list
-
In Initial Memory (MB), enter 512
-
In Max Memory (MB), enter 2048
-
In Name, enter ZyTomcat1-8080-8443
-
In User, enter admin
-
In Password, enter the password for Windows Tomcat 8080 user admin
-
Click Save instance
-
A new instance with the name ZyTomcat1-8080-8443 should be visible in the Instances list
- In Connector(s), click New connector
In Port, enter 8443
In Protocol, select Http11NioProtocol
Select SSL Enabled
Select Secure
In Scheme, select https
In SSL Protocol, select TLS
- Click Generate certificate
In Common name, enter the hostname of the Zylinc Windows Application Server, for example: WinAppServer
In Organizational unit, enter 2
In Organization, enter 3
In Locality name, enter 4
In State name, enter 5
In Country code, enter 6
In Alias, enter tomcat
In Password, enter the password for Java keytool -genkey keystore
In Destination path, enter C:\ProgramData\Zylinc\.keystore
Click Apply
If you see an error: Failed to generate certificate, do the followingRename the file in the path C:\ProgramData\Zylinc\.keystore to old.keystore
Click Apply
In Do you want to import the generated certificate, answer Yes
Click Save connector
-
Click Save instance
-
In the Deployment Manager menu, select Deployment > Windows Services
-
Click Refresh Services
-
A new service with a name that ends with ZyTomcat1-8080-8443 should be visible in the Deployed Services list
-
Start the service

-
Go to the following address in a web browser: http://<WinAppServer>:8080/
Example: The complete URL could be http://WinAppServer:8080/
-
You should see a Tomcat welcome page that says If you're seeing this, you've successfully installed Tomcat. Congratulations!
-
Click Manager App
-
In User name, enter Admin
-
In Password, enter the password for Windows Tomcat 8080 user admin
-
You should see a list of Applications, for example /docs and /examples
Now you know that HTTP works.

-
Go to the following address in a web browser: https://<WinAppServer>:8443/
Example: The complete URL could be https://WinAppServer:8443/
- Because the certificate is self-signed and hasn't been imported into Trusted Root Certification Authorities, you'll see a warning about a problem with the website’s security certificate:
If you use Internet Explorer, click Continue to this website (not recommended).
If you use Chrome, click ADVANCED, and then click Proceed to <WinAppServer> (unsafe).
-
You should see a Tomcat welcome page that says If you're seeing this, you've successfully installed Tomcat. Congratulations!
-
Click Manager App
-
In User name, enter Admin
-
In Password, enter the password for Windows Tomcat 8080 user admin
-
You should see a list of Applications, for example /docs and /examples
Now you know that HTTPS works.

Now, set up a second Tomcat instance, start it, and test it:
-
In the Deployment Manager menu, select Deployment > Application Administration > Apache Tomcat Administration
-
In Instances, click New instance
-
In Apache, select the most recent Tomcat version available in the list
-
In Java, select the most recent Java version available in the list
-
In Initial Memory (MB), select 512
-
In Max Memory (MB), select 2048
-
In Name, enter ZyTomcat2-8081
-
In Server port, change 8005 to 8006
-
In User, enter admin
-
In Password, enter the password for Windows Tomcat 8081 user admin
-
Click Save instance
-
A new instance with the name ZyTomcat2-8081 should be visible in the Instances list
- In Connector(s), click Port=8080, Protocol=Http11
In Port, change 8080 to 8081
Click Save connector
- In Connector(s), click Port=8009, Protocol=Ajp13
In Port, change 8009 to 8010
Click Save connector
15. Click Save instance
16. In the Deployment Manager menu, select Deployment > Windows Services
17. Click Refresh Services
18. A new service with a name that ends with ZyTomcat2-8081 should be visible in the Deployed Services list
19. Start the service

-
Go to the following address in a web browser: http://<WinAppServer>:8081/
Example: The complete URL could be http://WinAppServer:8081/
-
You should see a Tomcat welcome page that says If you're seeing this, you've successfully installed Tomcat. Congratulations!
-
Click Manager App
-
In User name, enter Admin
-
In Password, enter the password for Windows Tomcat 8081 user admin
-
You should see a list of Applications, for example /docs and /examples
Now you know that HTTP works. There's no HTTPS connector for this instance, so there's no need to test that.

To avoid network port conflicts between the two Tomcat instances, inspect the Tomcat instance configuration manually:
- In the Deployment Manager menu, select Deployment > Application Administration > Apache Tomcat Administration
- In Instances, select ZyTomcat1-8080-8443 and verify the following:
- Server port is 8005
- A connector exists with Port=8080, Protocol=Http11
- A connector exists with Port=8009, Protocol=Ajp13
- A connector exists with Port=8443, Protocol=Http11NioProtocol
- No other connectors exist
- In Instances, select ZyTomcat2-8081 and verify the following:
- Server port is 8006
- No connectors exist with Port=8080
- No connectors exist with Port=8009
- No connectors exist with Port=8443
- A connector exists with Port=8081, Protocol=Http11
- A connector exists with Port=8010, Protocol=Ajp13
- No other connectors exist

- In the Deployment Manager menu, select Deployment > Installation
- In Installed Applications, remove outdated and unused versions of Apache Tomcat
- In Installed Applications, remove outdated and unused versions of Java
This is help for Zylinc version 6.0. To view Zylinc unified help for other versions, go here.
© 2021 Zylinc A/S • Disclaimer
Help version: 22 January 2021 13:21:22
Share this topic: