Thursday, September 17, 2009

How to change Glassfish server default 8080 port in Windows

Very simple steps
  1. Open (in notepad or other text editor) domain.xml located in /glassfish/domains/domain1/config folder.
  2. Search for 8080 (there should be one occurance only ideally)
  3. Change it to 80 or 8088 or 8090 - whatever port no. you like and start the server.
  4. There is no step 4 :-)

All your calls to glassfish server now do not require 8080 in your url. This should work same on other platforms as well though I have not tested it. This way you should be able to change glassfish server other ports as well.

No comments:

Post a Comment