Spread the love

How change the default port of Netbeans and Glassfish ?

Spread the love

How change the default port of Netbeans and Glassfish ?
Glassfish and Oracle XE uses the same port 8080, and thus, if installed in the same system, results in the port conflict.
Now, locate
glassfish-3.0.1glassfishdomainsdomain1config and inside it, there is a file domain.xml. In the file, change the port number to 8081 from 8080. Now in the directory,  <home dir>/.netbeans/<version>/config, there is a file called .nbattrs – edit it 8080 to 8081:

<attr name=”GlassFishEE6Instancesglassfish_autoregistered_instancehttpportnumber” stringvalue=”8081″/>

Finally, a last and a small thing needs to be done. Netbeans need to recognize the new port number and so, we need to do the following steps:

  • Select Services window by using Window -> Services in NetBeans IDE.
  • In Servers window of NetBeans, remove GlassFish by using RemoveServer button after selecting GlassFish server.
  • Click on AddServer and select GlassFish and click on Next.
  • Select the Installation Location of GlassFish and click on Next.
  • Accept defaults and click on Finish.
  • Restart GlassFish, if it was already running.




Spread the love
READ  Class SequenceInputStream in Java
Animesh Chatterjeehttps://techtravelhub.com/
I am the founder and owner of the blog - TechTravelHub.com, always love to share knowledge on test automation,tools,techniques and tips.I am a passionate coder of Java and VBScript.I also publish articles on Travel ideas and great honeymoon destinations.Apart from these, I am a gear-head,love to drive across India. I have shared lots of articles here on How to travel several parts of India.Customization of cars aka car modification is my another hobby.Get in touch with me on ani01104@gamil.com

Related Articles

Learn Quickly About DevOps Tools in a Fast and Efficient Manner

Introduction to DevOps tools DevOps tools are a collection of a set...

Comments

Recent Posts

Learn Quickly About DevOps Tools in a Fast and Efficient Manner

Introduction to DevOps tools DevOps tools are a collection of...

How to Collaborate between Development and Operations Team Fast and Effectively

Collaborate between Development and Operations Teams are the key...

Learn How to Use Jacoco Java code Coverage

Introduction to Jacoco Jacoco provides a wide range of coverage(analysis...

EDITOR PICKS


Spread the love