2 Replies Latest reply on Apr 25, 2016 1:35 AM by Vikrant Thakur

    Forbidden when running http://localhost:8080/myproject

    Congmin Min Newbie

      Hello, I am using Wildfly 9 and can run HelloWorld tutorial successfully. But with my own project I received "Forbidden" message in Browser, the single word message,without anything else. I compile and deploy without any error message:


      mvn clean install wildfly:deploy


      What might cause this "Forbidden" message? Thank you. Where should I look into?

        • 1. Re: Forbidden when running http://localhost:8080/myproject
          Jay SenSharma Master


          403 Forbidden error usually occurs if you have configured security for your webapp but either user might be entering an incorrect credential or User might not be associated with a particular role.



          ***In Your Case:

          As you said that you are deploying a very simple HelloWorld Project so i am assuming that you might not be configuring any security related additional settings to your webapp.   Still if you are getting the error that means You might not have default web pages in your "myProject.war"  like  "index.jsp/index.html" ...etc.    Or your web.xml file might not be including the <welcome-file-list> tag to define a default welcome page for your web app.


          So suppose if you have your WAR as following (which does not include any default welcome page like index.jsp/index.html ...etc)







              Then even if the application will deploy successfully you will get "Forbidden" error if you access: http://localhost:8080/myProject/

              So Either define a valid welcome file in web.xml    or    enter the URL to the last resource like     suppose if you have a servlet with name "TestServlet"  then access it directly like:   http://localhost:8080/myProject/TestServlet



          Jay SenSharma