从Eclipse Luna访问远程Glassfish4服务器 [英] Access Remote Glassfish4 Server from Eclipse Luna

查看:343
本文介绍了从Eclipse Luna访问远程Glassfish4服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Mac上工作。



我在VirtualBox中运行Linux Ubuntu服务器。 GlassFish 4和MySql已经在运行。 Linux IP是10.0.1.12。



在客户系统(Mac)上,我正在运行Eclipse Luna。我安装了用于Eclipse Luna的GlassFish工具并重新启动Eclipse。



然后我想为GlassFish4添加服务器。但是Eclipse正在问我服务器根目录,我不知道这是什么意思!我输入10.0.1.12:4848/,正如我可以通过浏览器从主机系统(Mac OS)访问GlassFish。但它只是不接受该URL。它似乎期待一个本地目录路径。以下是对话框:





提前感谢任何提示!!

解决方案

尽管您想要连接到远程Glassfish服务器并管理远程Glassfish服务器,但您需要将Glassfish4服务器安装到本地计算机(即运行Eclipse)。 Eclipse将使用本地安装中的一些文件来管理远程Glassfish服务器。假设您已经在远程计算机上安装了Glassfish4:



[例如]




  • 假设远程Glassfish服务器在默认端口4848处于192.168.2.7,用于管理,并且将admin用户的密码设置为gfish。

  • 我们还假设您的本地桌面(运行Eclipse Luna的开发机器)在192.168.2.3。


  • 下载Glassfish4开源版本zip


  • 将内容解压缩到本地的目录机器:让我们说在路径 / glassfish_server / 之前你现在将拥有:

    / glassfish_server / glassfish4 / glassfish / 结构



返回Eclipse:


  1. 创建新服务器 - >选择Glassfish4选项

  2. 服务器的主机名= [远程IP地址] // EG 192.168.2.7

    服务器名称:GlassFish 4 at 192.168.2.7 // get's auto-filled

  3. [下一页]这是您特别遇到问题的页面:

    设置本地Glassfish服务器的根路径安装目录

    所以在这个例子中: / glassfish_server / glassfish4 / glassfish / 应该被接受

  4. [下一页]现在使用远程glassfish服务器的凭据和配置。运行Ping-Test测试连接。


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:

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]

  • Let's assume the remote Glassfish server is at 192.168.2.7 on default port 4848 for administration and you've set a password for 'admin' user as 'gfish'.
  • Let's also assume that your local desktop (development machine running Eclipse Luna) is at 192.168.2.3

  • Download Glassfish4 Open Source edition zip

  • Unzip the contents to a directory on your local machine: let's say inside of path /glassfish_server/ you will now have:
    /glassfish_server/glassfish4/glassfish/ structure

Back in Eclipse:

  1. Create a New Server -> Select 'Glassfish4' option
  2. 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
  3. [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
  4. [Next] Now use the credentials and configuration for your remote glassfish server. Run a Ping-Test to test connection.

这篇关于从Eclipse Luna访问远程Glassfish4服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆