After uploading a Java Web Application Archive (.war file) for a domain in Plesk, it is not working. Similar to the below error message is shown in a browser:
PLESK_INFO: HTTP Status 404 - /pages/security/login.jsf
type Status report
description The requested resource is not available.
When listing the content of the .war file on the server, some files/folders that are required by the WAR format are absent. Below is a structure of a sample war file:
# jar tvf /usr/share/tomcat/psa-wars/javatest.tld/sample.war
WAR file has an invalid structure.
Make sure that application manifest and other meta data are not located under any parent folders and placed in the root '/' of an archive.