mardi 9 juillet 2019

How can I access my html files in the web folder with glassfish?

I created a GET request using Glassfish, that I can access in localhost:8080/test/request, which returns a JSON with information.

Now I want to create a html page to display that information in a table. But none of the html files I put in the web folder are accessible, including the default index.jsp (localhost:8080/test/index.jsp)

What am I missing here? Is there some configuration I need to do beforehand? Is it impossible to have html files get bundled in the WAR package and get deployed to the Glassfish server? I checked the bundle and the web files are not being included.

I noticed that on the ADMIN panel there are actually 2 applications deployed, the test and one called 'web', but the web returns nothing (404 Not Found).

I'm using Glassfish 4.1.2 and IntelliJ IDEA




Aucun commentaire:

Enregistrer un commentaire