Page History
...
Apply the following steps to a JOC Cockpit instance. If a JOC Cockpit cluster is operated then steps are performed for any JOC Cockpit instance.
The example makes use of a patch available from https://download.sos-berlin.com/patches/patch-20220331-JS-1984-2.2.3.jar. This patch does not impact a JOC Cockpit installation and is used for instruction purposes only, for details see JS-1984.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# navigate to the target directory for patches cd /var/sos-berlin.com/js7/joc/jetty_base/webapps/joc/WEB-INF/classes # verify the directory by checking if this file is available ls api-schema-version.json # download the patch archive curl https://download.sos-berlin.com/patches/patch-2022030920220331-JOCJS-12561984-2.2.2_2.2.3.jar -O # extract the patch archive (use "jar" or "unzip" command) jar -xf patch-2022030920220331-JOCJS-12561984-2.2.2_2.2.3.jar # remove the patch archive rm patch-2022030920220331-JOCJS-12561984-2.2.2_2.2.3.jar |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
@rem navigate to the target directory for patches cd %ProgramData%\sos-berlin.com\js7\joc\jetty_base\webapps\joc\WEB-INF\classes @rem verify the directory by checking if this file is available dir api-schema-version.json @rem download from URL https://download.sos-berlin.com/patches/patch-2022030920220331-JOCJS-12561984-2.2.2_2.2.3.jar @rem copy from download location (could be different from this example) copy %USERPROFILE%\Downloads\patch-2022030920220331-JOCJS-1256-2.2.2_1984-2.2.3.jar . @rem extract the patch archive (use "jar" or "unzip" command) jar -xf patch-2022030920220331-JOCJS-12561984-2.2.2_2.2.3.jar @rem remove the patch archive del patch-2022030920220331-JOCJS-12561984-2.2.2_2.2.3.jar |
This example uses the jar
command that is available from a Java JDK. Should no Java JDK be in place then the unzip
command can be used.
...
Note: A restart of JOC Cockpit is required to apply patches.
Hint: For automated rollout of patches see JS7 - Automated Update of JOC Cockpit.
Note: As an alternative for Windows you can download the .jar patch file to the target directory and use tools such as 7-Zip to extract the archive. Do not create a sub-folder from the archive name but extract directly to the directory hierarchy as indicated above.
...