I ran mvn clean install
on my project and compiled a fat JAR. It built without any errors. I moved the JAR to my server and ran java -jar app.jar
from its file location. Now I when I hit the server's address I get the following:
403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.
I'm running Windows Server 2012R2. The folder C:\inetpub\wwwroot
does serve webpage when I include an index.html
file there. When I have nothing in there I get a 403 error. At some point I had the Springboot app running but I can't recall what had changed. Should I delete the inetpub
folder? Why isn't my web app running from the provided JAR?
Edit: I just realized that if I use the IP address and the correct server port, i.e. http://00.00.00.0:8080/
then I can access the application. Is there a way to set this up so that the app launches with just the IP address? Is there anything I can put in my application.properties
file, for example?