Upgrading the publishing server from 4.4 to 4.5
The following procedure aims at upgrading the pubserver from version 4.4 to 4.5. Make sure you are running version 4.4 before continuing.
To upgrade:
- Stop the pubserver.
- Rename
PUBSERVER\java\jdkfolder containing JDK 11 toPUBSERVER\java\jdk_11_bkp. - Copy
PUBSERVER\java\jdk17folder containing JDK 17 toPUBSERVER\java\jdk. We recommend setting Java 17 as the default Java in your environment from now on. This might mean updating yourPathand/orJAVA_HOMEenvironment variable to point toPUBSERVER\java\jdk\bin. All in all, you want to run the updater using Java 17 from now on. - Edit
PUBSERVER\glassfish\payara6\glassfish\domains\pubserver\config\domain.xmland just before the line
<jvm-options>-Xmx8192m</jvm-options>
insert the following options:
<jvm-options>[17|]--add-exports=java.base/sun.net.www=ALL-UNNAMED</jvm-options>
<jvm-options>[17|]--add-exports=java.base/sun.security.util=ALL-UNNAMED</jvm-options>
<jvm-options>[17|]--add-opens=java.base/java.lang.invoke=ALL-UNNAMED</jvm-options>
<jvm-options>[17|]--add-opens=java.desktop/java.beans=ALL-UNNAMED</jvm-options>
<jvm-options>[17|]--add-exports=jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED</jvm-options>
<jvm-options>[17|]--add-opens=java.base/java.lang.ref=ALL-UNNAMED</jvm-options>
- Remove the contents of
PUBSERVER\glassfish\payara6\glassfish\domains\pubserver\generatedandPUBSERVER\glassfish\payara6\glassfish\domains\pubserver\osgi-cache - Start the pubserver.
- Run the updater updating to 4.5. Both the installer and the pubserver should now run using JDK 17.
- If all works fine, remove
PUBSERVER\java\jdk_11_bkp.