alrobai00
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-p ool" />
<network-listener port="10443" protocol="http-listener-2" transport="tcp" name="http-listener-2" thread-pool="http-thread-p ool" />
<network-listener port="4848" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="http-thread-p ool" />
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.
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"
<network-listener port="10443" protocol="http-listener-2"
<network-listener port="4848" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="http-thread-p
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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"
Finally, I add the server to Netbeans and that's it.