Solved

Change the Glassfish server port in Netbeans over Mac

Posted on 2010-11-13
2
996 Views
Last Modified: 2013-12-14
I installed Netbeans version (IDE 6.9.1) with Glassfish (V3) server on Mac OS X version (10.6.4), then I installed (PostgreSQL). After that I had a problem as both products are using the same port (8080).


So I tried to change the port of Glassfish server from the Netbeans, but I found that the port is readonly. After searching over the Internet I found that I can update the file called (domain.xml) and I put the following values:


 <network-listener port="10080" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" />

          <network-listener port="10443" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-pool" />

          <network-listener port="4848" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="http-thread-pool" />
 

I can run the server now since it takes the new values, but when I run any JSP project in the netbeans It gives me an error message since the value is still 8080 in the netbeans.


0
Comment
Question by:alrobai00
2 Comments
 

Author Comment

by:alrobai00
ID: 34133353
The solution:

I just realised that I can remove the server from Netbeans, then I download the server again from the Internet. Before I install it back, I updated the file domain.xml as follows:

 <network-listener port="10080" protocol="http-listener-1" transport="tcp" name="http-listener-1" thread-pool="http-thread-pool" />
 
Finally, I add the server to Netbeans and that's it.
0
 

Accepted Solution

by:
EE_AutoDeleter earned 0 total points
ID: 37141300
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

EE_AutoDeleter
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
c++ class logger 6 108
eclipse giving error when test program exits 6 144
Tomcat6 in eclipse 2 42
how do i remove white background in node inside virtual TVirtualStringTree? 12 105
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question