However, this branch hasn’t been updated since 2019, and you can download GlassFish version 5 from the following website. If you search on Google you will find the following page as its top result. There are different “branches” of GlassFish available out there. I ran into a small problem at this point. Simply having Ubuntu or any other Linux distro would be enough. But it’s easy to set up a LAMP server, on DigitalOcean on a computer, but it’s not a must. I don’t think Apache and PHP is necessary, and you can use a different database management system instead of MySql. You can get more details about the LAMP server on DigitalOcean here – It install the current stable Ubuntu LTS version, and automatically open up port 80 for web traffic and install MySql and setup a user and you can manipulate the database with it. When you create a new droplet on DigitalOcean you can easily select a LAMP server from their market place. If your web app is using MySql, it’s easy to get started with a LAMP server (Linux, Apache, MySql, PHP).
I’ll be writing on how to deploy it on a remote server (a DigitalOcean Droplet) but you can follow the same steps for deploying it on your localhost. Now that I got it working, I decided to write this post combining everything so that someone who wants to deploy a Java web app on Glassfish remotely or locally can get some idea on how to do it. However, I wanted to run it without NetBeans because I don’t have NetBeans setup on my computer and I NetBeans currently doesn’t have the native M1 support.Īfter some googling and reading though hours of different tutorials, StackOverflow answers, troubleshooting various problems I was able to setup the web app on my computer. I know it was easy to deploy it using NetBeans because it has been developed with NetBeans and Glassfish. However, it was my first time trying to run a Java web app locally, or even remotely. Recently I had to locally run a JavaEE web app so I can contribute to the project.