I am working on a Mac.
I am running Linux Ubuntu server in a VirtualBox. GlassFish 4 and MySql are already running there. The Linux IP is 10.0.1.12.
On the guest system (Mac) I am running Eclipse Luna. I installed the GlassFish Tools for Eclipse Luna and restarted Eclipse.
Then I wanted to add server for GlassFish4. But Eclipse is asking me for "Server root" and I have no clue what it means! I entered "10.0.1.12:4848/" just as I can access GlassFish from the host system (Mac OS) by a browser. But it just doesn't accept that URL. It seems to expect a local directory path. Here is the dialog box:
![](https://www.manongdao.com/static/images/pcload.jpg)
Thanks in advance for any hints!!
You need to install a Glassfish4 Server to your local machine (the one Eclipse is running on) despite the fact that you want to connect to and manage a remote Glassfish server; Eclipse will use some of the files in that local installation to manage the remote Glassfish server. Assuming you already have Glassfish4 installed on a remote machine:
[For example purposes]
Back in Eclipse:
- Create a New Server -> Select 'Glassfish4' option
- Server's Hostname =[remote ip address] // E.G. 192.168.2.7
Server Name: GlassFish 4 at 192.168.2.7 // get's auto-filled
![](https://www.manongdao.com/static/images/pcload.jpg)
- [Next] This is the page you were specifically having issue with:
Set the Root Path to your Local Glassfish Server install directory
so in this example: /glassfish_server/glassfish4/glassfish/
should be accepted
![](https://www.manongdao.com/static/images/pcload.jpg)
- [Next] Now use the credentials and configuration for your remote glassfish server. Run a Ping-Test to test connection.
![](https://www.manongdao.com/static/images/pcload.jpg)
The server root means the directory where GlassFish is located. This might be, for example, /opt/glassfish4/glassfish
. Eclipse needs this so that it can look for the bin/
directory and be able to start/stop the server using the scripts in there.