Posted by
test
|
Posted on
6:28 PM
Category:
NetBean 7.0
If you already have tomcat server installed than you might need to change the port for Glassfish port for working on NetBean 7.0. I faced this problem and here it the solutions for this.
- Find out the folder where GlassFish is installed.
If you installed GlassFish along with NetBeans, you can find out the folder where GlassFish is installed by using the following procedure.
- Select Services window by using Window -> Services in NetBeans IDE
- Expand Servers node and select GlassFish Domain
- Right click and select Properties option from popup menu.
- On the right of Domains Folder you can see the folder where GlassFish is installed. For example : C:\netbeans7.0\glassfish-v3\glassfish\domains. You can also see the other details regarding Glassfish such as port number, in the same window.
- Go to the folder where Glassfish in installed.
- Go into config folder which is as follows: c:\netbeans7.0\glassfish-3\glassfish\domains\domain1\config
- Open domain.xml using any text editor.
- Look for 8080 and change it to some other port number that doesn’t conflict with other port numbers. I generally change it to 9090.
- Save domain.xml.
- Now you need to remove GlassFish from NetBeans and add it again so that NetBeans IDE understands the new port number. For this do the following
:- In Servers window of NetBeans, remove GlassFish by using RemoveServer button after selecting GlassFish server.
- Click on AddServer and select GlassFish V2 or GlassFish V3 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.
Comments (0)
Post a Comment