When we try to start the OneClick Webapp from the OneClick web page, we see a short attempt to start webSwing but then only the OneClick web page will be shown.
The catalina.out shows the following entry each time you try to start the Webapp:
Caused by: java.lang.Exception: java.lang.RuntimeException: Loading TTF font /spectrum/webtomcat/webswing/fonts/RobotoSlab-Regular.ttf failed .
But when you look in the filesystem you can see the font is there:
ls -l /spectrum/webtomcat/webswing/fonts/
total 440
-rw-r--r-- 1 spectrum spectrum 114624 Oct 4 02:43 RobotoMono-Regular.ttf
-rw-r--r-- 1 spectrum spectrum 162876 Oct 4 02:43 Roboto-Regular.ttf
-rw-r--r-- 1 spectrum spectrum 169064 Oct 4 02:43 RobotoSlab-Regular.ttf
When you take a look at webswing.config you see this font is configured in the same way as the two others, which can be loaded without any problems.
"fontConfig" : {
"dialog" : "${SPECROOT}/webtomcat/webswing/fonts/Roboto-Regular.ttf",
"dialoginput" : "${SPECROOT}/webtomcat/webswing/fonts/RobotoMono-Regular.ttf",
"serif" : "${SPECROOT}/webtomcat/webswing/fonts/RobotoSlab-Regular.ttf"
},
This appears to be caused if Java 11 is installed, or if Java 8 is being used without linux pango package installed.
Release : 10.4.x / 21.x
Install pango linux package (yum install pango) and its dependencies. Then try to relaunch webapp and now it should succeed.
Dependencies that were installed during pango
Dependencies Resolved
================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================
Installing:
pango x86_64 1.42.4-4.el7_7 rhel-7-server-rpms 280 k
Installing for dependencies:
bzip2-libs i686 1.0.6-13.el7 rhel-7-server-rpms 40 k
cairo x86_64 1.15.12-4.el7 rhel-7-server-rpms 741 k
dejavu-fonts-common noarch 2.33-6.el7 rhel-7-server-rpms 64 k
dejavu-sans-fonts noarch 2.33-6.el7 rhel-7-server-rpms 1.4 M
fribidi x86_64 1.0.2-1.el7_7.1 rhel-7-server-rpms 80 k
graphite2 x86_64 1.3.10-1.el7_3 rhel-7-server-rpms 115 k
harfbuzz x86_64 1.7.5-2.el7 rhel-7-server-rpms 267 k
libglvnd-egl x86_64 1:1.0.1-0.8.git5baa1e5.el7 rhel-7-server-rpms 44 k
libpng x86_64 2:1.5.13-8.el7 rhel-7-server-rpms 213 k
libthai x86_64 0.1.14-9.el7 rhel-7-server-rpms 187 k
libwayland-client x86_64 1.15.0-1.el7 rhel-7-server-rpms 33 k
libwayland-server x86_64 1.15.0-1.el7 rhel-7-server-rpms 39 k
mesa-libEGL x86_64 18.3.4-12.el7_9 rhel-7-server-rpms 110 k
mesa-libgbm x86_64 18.3.4-12.el7_9 rhel-7-server-rpms 39 k
Updating for dependencies:
fontconfig i686 2.13.0-4.3.el7 rhel-7-server-rpms 255 k
fontconfig x86_64 2.13.0-4.3.el7 rhel-7-server-rpms 254 k
freetype i686 2.8-14.el7_9.1 rhel-7-server-rpms 377 k
freetype x86_64 2.8-14.el7_9.1 rhel-7-server-rpms 380 k
glib2 x86_64 2.56.1-9.el7_9 rhel-7-server-rpms 2.5 M
libpng i686 2:1.5.13-8.el7 rhel-7-server-rpms 215 k
mesa-libGL x86_64 18.3.4-12.el7_9 rhel-7-server-rpms 166 k
mesa-libglapi x86_64 18.3.4-12.el7_9 rhel-7-server-rpms 46 k