You can get the older versions from the official glassfish.java.net page:
- Glassfish 3.0.1: https://glassfish.java.net/downloads/3.0.1-final.html
- Glassfish 3.1.1: https://glassfish.java.net/downloads/3.1.1-final.html
- Glassfish 3.1.2: https://glassfish.java.net/downloads/3.1.2-final.html
- Glassfish 3.1.2.2: https://glassfish.java.net/downloads/3.1.2.2-final.html
It is sufficient to get the zip file versions.
A mirror and some even older versions can be found on the oracle technetwork: http://www.oracle.com/technetwork/middleware/glassfish/downloads/index.html
To add the servers in NetBeans go to the Services
tab and right-click on Servers
and click Add Server
. Choose GlassFish Server
and a name (containing the version number), click Next
and choose the folder where you extracted the specific version.
Repeat this for the all the versions you need. You can choose the desired server for each NetBeans project in the project properties (in the Run
tab).