How To Change Port Number Of GlassFish
If GlassFish and Oracle Database are installed in the same system, it results in port conflict as both of them use port
Here is the procedure to change port number of GlassFish so that you can run GlassFish at a different port number from Oracle to avoid the port conflict.
Find out the folder where GlassFish is installed.
If you installed GlassFish along with NetBeans, you can find out the folder where GlassFish is installed by using the following procedure.
Select Services window by using
Window -> Services
in NetBeans IDE
node and select GlassFish Domain
Right click and select
option from popup menu.
On the right of
you can see the folder where GlassFish is installed. For example :
. You can also see the other details regarding Glassfish such as port number, in the same window.
Go to the folder where Glassfish in installed.
folder which is as follows:
using any text editor.
and change it to some other port number that doesnâ€™t conflict with other port numbers. I generally change it to 9999.
Now you need to remove GlassFish from NetBeans and add it again so that NetBeans IDE understands the new port number. For this do the following
window of NetBeans, remove GlassFish by using
button after selecting GlassFish server.
and select GlassFish V2 or GlassFish V3 and click on
of GlassFish and click on
Accept defaults and click on
Restart GlassFish, if it was already running.