要求されたリソースは利用できません8つのソリューション



Requested Resource Is Not Available 8 Solutions



要求されたリソースは利用できません8つのソリューション
1:WEB-INF / libの下に次のファイルがあるかどうかを確認します
画像
2:Webアプリケーションがデプロイされていない

3:URL入力エラー



a. Check whether the IP address and port number of the URL are written correctly. b. Check whether the context path is correct Project--------Properties------MyElipse-----Web----- Web Context-root Check whether the path name is written correctly. c. Check whether the file name is written correctly.

4:ディレクトリを参照できません

Check the location of the file in the 'Package Explorer' of Eclipse. Since the contents of the META-INF WEB-INF folder cannot be released to the outside world, if you quote files with these two directories, it is definitely not allowed. For example: http://localhost:8080/guestbook/WEB-INF/index.html is wrong, the file location is wrong

6:Tomcatサーバーのweb.xmlの問題



If your web application has multiple jsp pages, you may get a 404 error when you click on the virtual root directory of your web application, but you only need to modify the web.xml web.xml configuration file of the web app in the Tomcat server <init-param> <param-name>listings</param-name> <param-value>false(It should betrue)</param-value> </init-param>

6:WEB-INFの下にいくつかの固定フォルダとファイルが必要です

web.xml The configuration file of the web app lib The library file used by the web app classes store the compiled servlet Please pay attention to their names, do not write classes as classes

7:実行するものが.jspファイルではなく、サーブレット(.class)ファイルである場合は、web.xml(もちろんWEB-INFの下)を構成し、次のフィールドを追加する必要があります。

<servlet> <servlet-name>HelloWorldServlet</servlet-name> <servlet-class>HelloWorldServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>HelloWorldServlet</servlet-name> <url-pattern>/HelloWorldServlet</url-pattern> </servlet-mapping>

8:その他のソリューション
上記の方法では、「HTTPステータス404(要求されたリソースは利用できません」という例外)の多様性のため、結果が得られません。置換方法を使用してください。



Steps: a. Find a normal same environment (find the same development environment machine of classmates and colleagues or normal demo downloaded online, etc.) b. Replace the problem project files one by one, exclude them, and locate them until they are resolved.

これは私が問題に遭遇した後に他の偉大な神のブログで見たものです。私はそれを再版し、それがあなたを助けることができることを望みました。 6番目の問題が発生した後、trueに変更しました。理由はわかりません。あなたが知っているなら、あなたは私にあなたに感謝を言うことができます。不思議なことが起こった後、私はそれをfalseに戻し、顔も正常に開くことができることを発見しました。戸惑い、髪を失いました~~、サーバーが検出されなかったことが原因だと思います。Tomcatまたはアイデアを再起動してください〜