Advertisement

Udemy WW Udemy WW

Thursday 26 January 2012

Netbeans Problem: How To Change Port Number For GlassFish

Both Oracle an GlassFish runs by default on port number 8080,results in port conflict
Following are simple steps to change the port number of glassfish server :

  1. Go to the folder where Glassfish is installed.
  2. Locate config folder which is as follows: C:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\config
  3. Open domain.xml using any text editor.
  4. Look for 8080 and change it to some other port number that doesn’t conflict with other port numbers.
  5. Save domain.xml.
  6. Now  remove GlassFish from NetBeans and add it again so that NetBeans IDE understands the new port number.
  7. Restart GlassFish, if it was already running.

28 comments:

  1. I modified but not change, please help me,
    thanks

    ReplyDelete
    Replies
    1. Can you let me what error message you get

      Delete
    2. Deployment error: Could not start GlassFish Server: HTTP or HTTPS listener port is occupied while server is not running
      See the server log for details.
      BUILD FAILED (total time: 0 seconds)

      Delete
  2. I followed your instructions but not working
    Go! Google Chrome could not connect to localhost page.

    ReplyDelete
  3. Thanks Its work for me

    ReplyDelete
  4. Thanks it worked for me

    ReplyDelete
  5. followed the instructions. but it is not letting me change the port number... getting message access denied

    ReplyDelete
    Replies
    1. Might be you have not logged in with admin or file is write protected.You can copy domain.xml file to other place and can change the port then you need to replace this file with original domain.xml

      Delete
  6. Deployment error: Could not start GlassFish Server 4.1.1: HTTP or HTTPS listener port is occupied while server is not running
    See the server log for details.

    ReplyDelete
    Replies
    1. it seems that same port number is used by other running services.Please try with some other port number

      Delete
  7. i followed all the steps but it didn't change because on saving the file in note pad it shows access is denied even i am using the administrator account ! what can be the issue...

    ReplyDelete
    Replies
    1. Might be you have not logged in with admin or file is write protected.You can copy domain.xml file to other place and can change the port then you need to replace this file with original domain.xml

      Delete
  8. i did it but not get my solution

    ReplyDelete

Advertisement

Udemy WW