- Plesk for Linux
Installation of tomcat8 on a Plesk server failed with the following error:
PLESK_INFO: Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
The package is marked as half-configured:
# dpkg -l tomcat8
iF tomcat8 8.0.32-1ubuntu1.5 all Apache Tomcat 8 - Servlet and JSP engine
When trying to perform the package configuration the error appears:
# dpkg --configure tomcat8
Setting up tomcat8 (8.0.32-1ubuntu1.5) ...
Job for tomcat8.service failed because the control process exited with error code. See "systemctl status tomcat8.service" and "journalctl -xe" for details.
systemd: Starting LSB: Start Tomcat....
tomcat8: * Starting Tomcat servlet engine tomcat8
There is no default-jre-headless package on the server:
# dpkg -l default-jre-headless
dpkg-query: no packages found matching default-jre-headless
- Debian-based operating system is in use on the server.
Missing default-jre-headless package required for tomcat functioning.
Connect to the server via SSH.
Install the package:
# apt-get install default-jre-headless