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

前端 未结 2 554
执念已碎
执念已碎 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 04:56

    Ok, I now found out how to run the app locally without problems: by creating a .war file instead of a .jar file - now I can run the app again without problems.

    0 讨论(0)
  • 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:

    <sun:form id="form">

    I probe to change it to:

    <sun:form id="form" enctype="multipart/form-data">

    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
    
    0 讨论(0)
提交回复
热议问题