How to modify the Glassfish port without starting it?

0

I need to modify the Glassfish port on the server without starting it, so I ended up installing another service that is making use of port 8080 and I can not stop it to start Glassfish and go to the admin panel to change . Is there any way to do this in the archives?

    
asked by anonymous 16.06.2017 / 14:27

1 answer

0

Yes, there is how to modify through files. Go to the Glassfish folder and go to the following subfolders:

PASTAGLASSFISH/glassfish/domains/domain1/config

Within this config folder there is a file named domain.xml . Edit the following part in it:

<network-listener protocol="http-listener-1" port="8080" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"></network-listener>

Put in port="SUAPORTA" the port you want, such as 9999:

<network-listener protocol="http-listener-1" port="9999" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"></network-listener>

Now just start Glassfish as usual.

    
16.06.2017 / 14:27