How to modify the Glassfish port without starting it?

Asked

Viewed 434 times

1

I need to modify the Glassfish port on the server without starting it, because I ended up installing another service that is making use of port 8080 and I can’t stop it to start Glassfish and go to the admin panel to change. There’s some way to do it in the archives?

1 answer

0


Yes, there are ways to modify through files. Go to the Glassfish folder and access the following subfolders:

PASTAGLASSFISH/glassfish/domains/domain1/config

Inside this config folder is a file called domain.xml. Edit in it the following part:

<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, like 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 normally.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.