Java application thrown 404 Not found

Created:

2017-07-30 11:09:55 UTC

Modified:

2017-08-08 13:11:33 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Java application thrown 404 Not found

Symptoms

After uploading Java Web Application Archive (.war file) into Plesk it is not working. Show 404 in web browser

CONFIG_TEXT: 
HTTP Status 404 - /swinger/pages/security/login.jsf type
Status report message /swinger/pages/security/login.jsf description
The requested resource is not available.

Cause

WAR file has invalid structure

Resolution

Make sure that application manifest and other meta data are not located under any parent folders and placed in the root '/' of an archive. For reference sample WAR file layout.

CONFIG_TEXT:
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/mypackage/
WEB-INF/lib/
images/
WEB-INF/classes/mypackage/Hello.class
WEB-INF/web.xml
hello.jsp
images/tomcat.gif
index.html

Have more questions? Submit a request
Please sign in to leave a comment.