getting error message “Failed to load resource: the server responded with a status of 404 (Not Found)”

前端 未结 2 553
执念已碎
执念已碎 2021-01-16 04:48

I have a simple MVC web application, which was running locally without problems 3 weeks ago.

When I now open the application in Netbeans and run it, everything seems

2条回答
  •  再見小時候
    2021-01-16 05:08

    Error clearly shows, server is not able to recognize archive type of jar,

    Archive type of /private/var/folders/hh/hgq7wrjn5d51gy2tkbxkkbwh0000gn/T/optimizer-15075570634779987058.0-SNAPSHOT.jar was not recognized

    From payara blog,

    If you set “Location” by “Packaged File to Be Uploaded to the Server”, the suitable type would be selected.

    So, the suitable type would be selected automatically.

    Also, optimizer-15075570634779987058.0-SNAPSHOT.jar is not an original jar optimizer-1.0-SNAPSHOT.jar

    It seems that issue is with the path of an archive, from thread

    Code in uploadFrame.jsf:

    I probe to change it to:

    in uploadFrame.jsf into console-common.jar file. And it works.

    You can try with changing uploadFrame.jsf into console-common.jar file. (Not sure if chrome takes care of this, as it was working for you with chrome).

    You may also want to try manual deployment,

    install-directory/bin/asadmin deploy PATH_TO_ARCHIEVE/optimizer-1.0-SNAPSHOT.jar
    

提交回复
热议问题