Skip to content

Webtop custom .jar files #7381

@DavidePrincipi

Description

@DavidePrincipi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    verifiedAll test cases were verified successfully

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions