Link to home
Start Free TrialLog in
Avatar of alrobai00
alrobai00Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Change the Glassfish server port in Netbeans over Mac

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.


Avatar of alrobai00
alrobai00
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of EE_AutoDeleter
EE_AutoDeleter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial