Install libservlet3.1-java by entering the following commands in the terminal:
sudo apt update sudo apt install libservlet3.1-java
Description:
Servlet 3.1, JSP 2.3, EL 3.0 and WebSocket 1.0 Java API classes
Apache Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Oracle, and provides a "pure Java" HTTP web server environment for Java code to run. . This package contains the Java Servlet and JSP library.
Homepage: http://tomcat.apache.org
Version: 8.5.30-1ubuntu1
Section: universe/java