Webtop features can be extended by custom .jar files, installed in configurable directories. In NS7 the manual installation of .jar files was easy (just drop the files in some directory). In NS8 webtop-app container image there is no simple way to achieve it.
Proposed solution
Configure a host directory, mapped as a webtop-app volume where .jar files can be placed.
Webtop .jar files are normally searched in WEB-INF/lib. Add more search dirs in META-INF/context.xml with a content like:
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/webtop">
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
virtualClasspath="/usr/.../*.jar;/usr/.../*.jar"/>
</Context>
Alternative solutions
Bind individual .jar files as podman-run volumes.
See also
Discussion https://mattermost.nethesis.it/nethesis/pl/srmz5bw3ti8ymcmycpwd3jiuac
Thanks to @lucagasparini
Webtop features can be extended by custom .jar files, installed in configurable directories. In NS7 the manual installation of .jar files was easy (just drop the files in some directory). In NS8 webtop-app container image there is no simple way to achieve it.
Proposed solution
Configure a host directory, mapped as a webtop-app volume where .jar files can be placed.
Webtop .jar files are normally searched in
WEB-INF/lib. Add more search dirs inMETA-INF/context.xmlwith a content like:Alternative solutions
Bind individual .jar files as podman-run volumes.
See also
Discussion https://mattermost.nethesis.it/nethesis/pl/srmz5bw3ti8ymcmycpwd3jiuac
Thanks to @lucagasparini