How to run glassfish 4 on port 80 instead of 8080? root access is not an issue

To run GlassFish on port 80 you need to : Connect to the administration interface (by default on port :4848) In the left menu go to Configurations Then select the appropriate configuration you need to change eg server-config Then go to Network Config Then go to Network Listeners Select the appropriate listener, probably http-listener-1 Change … Read more

Using the context-root from glassfish-web.xml in GlassFish 3

In GlassFish 3 and GlassFish 4 the configuration of a web application is done via glassfish-web.xml. In your case the desired configuration file would look like this: <!DOCTYPE glassfish-web-app PUBLIC “-// GlassFish Application Server 3.1 Servlet 3.0//EN” “”> <glassfish-web-app> <context-root>/path/to/our/App</context-root> </glassfish-web-app> You can find further details in section GlassFish Server Deployment Descriptor Files of Oracle … Read more