0

i Install tomcat 9.0. when i run localhost:8080 it is working fine. Under webapps folder i made Beer-V1 folder and made form.html file. when i try to acess the form.html file in browser it shows 404 error. Help me plz how can i access the form.html file?? (localhost:8080/Beer-V1/form)

Type Status Report

Message The requested resource [/Beer-V1/form] is not available

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

  • Please provide [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example). What is your folder structure? how about your case sensitivity? how can we help if we see nothing? – Giorgi Tsiklauri Oct 02 '20 at 06:03
  • [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\Beer-V1\form.html = folder structure ].......... when i run this [http://localhost:8088/Beer-V1/form.html] error occurs. shows this [The requested resource [/Beer-V1/form.html] is not available].......i have checked properly about case-sensitive.. no error... May be somekind of permission problem ???? – GoO-Rung Aadii Oct 02 '20 at 13:28
  • Did you resolve your problem? – Giorgi Tsiklauri Oct 05 '20 at 12:45

1 Answers1

0

The URL which you are hitting is incorrect, you are missing adding .html with a filename like in your case "form.html".

it should be localhost:8080/BeerV1/form.html.

Also, you can refer here for basic tomcat deployment.

Pankaj Yadav
  • 11
  • 2
  • 7
  • [C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps\Beer-V1\form.html = folder structure ].......... when i run this [localhost:8088/Beer-V1/form.html] error occurs. shows this [The requested resource [/Beer-V1/form.html] is not available].......i have checked properly about case-sensitive.. no error... May be somekind of permission problem ???? – GoO-Rung Aadii Oct 02 '20 at 13:33
  • localhost:8088/Beer-V1/form.html - just to confirm, previously you mentioned 8080 port, now 8088 . – Pankaj Yadav Oct 02 '20 at 13:45
  • Also, try making index.html file under webapps folder and see if is coming up or not. In that way you can confirm your server doesn't have any problem and then later check under your Beer-v1 folder. – Pankaj Yadav Oct 02 '20 at 13:54
  • i have changed port to 8088. localhost:8088 and localhost/8088/docs is running but after adding index.html under webapps it is not running. [http://localhost:8088/index.html] = 404 error – GoO-Rung Aadii Oct 04 '20 at 03:35
  • plz ans i get stuck – GoO-Rung Aadii Oct 04 '20 at 14:01
  • Does http://localhost:8088 is showing any homepage. Is your server getting started correctly ? – Pankaj Yadav Oct 04 '20 at 17:13
  • yes it shows.. congratulation page,... Congratulation you have successfully install tomcat. – GoO-Rung Aadii Oct 05 '20 at 07:24
  • Can you check if any of these solution works for you - https://stackoverflow.com/questions/8520267/http-status-404-the-requested-resource-is-not-available – Pankaj Yadav Oct 05 '20 at 12:20