简体   繁体   English

如何在 Eclipse 中添加 JBoss 服务器?

[英]How to add JBoss Server in Eclipse?

I am new to JBoss and have just installed Eclipse.我是 JBoss 的新手,刚刚安装了 Eclipse。 I have added a project to the workspace and now I want to deploy it to a Jboss server.我已经向工作区添加了一个项目,现在我想将它部署到 Jboss 服务器。 However, in the New Server Runtime Environment list, JBoss is not available:但是,在New Server Runtime Environment列表中,JBoss 不可用:

没有 JBoss 的新服务器运行时环境

I am using the below Eclipse version:我正在使用以下 Eclipse 版本:

Java EE IDE for Web Developers.面向 Web 开发人员的 Java EE IDE。

Version: Mars Release (4.5.0)版本:火星发布(4.5.0)

Why is JBoss not listed as a runtime environment?为什么 JBoss 没有被列为运行时环境? What do I have to do to add JBoss to the list of available runtime environments?我需要做什么才能将 JBoss 添加到可用运行时环境列表中?

Since Eclipse Mars 2 (JEE edition), JBoss Tools can be directly dowloaded from the New Server interface:从 Eclipse Mars 2(JEE 版)开始,JBoss Tools 可以直接从New Server界面下载:

新服务器

Selecting JBoss AS, WildFly, & EAP Server Tools will install JBoss Tools.选择JBoss AS、WildFly 和 EAP 服务器工具将安装 JBoss 工具。 After installation, the view will include JBoss/WildFly:安装后,视图将包含 JBoss/WildFly:

带有 JBoss/WildFly 的新服务器


Follow the below instructions if Eclipse Mars 1 is used.如果使用 Eclipse Mars 1,请按照以下说明进行操作。

It is simply not built-in into the Eclipse distribution.它根本没有内置到 Eclipse 发行版中。 You need to install JBoss Tools from the Eclipse marketplace ( Help -> Eclipse Marketplace and search for "JBoss Tools").您需要从 Eclipse 市场安装JBoss Tools帮助-> Eclipse Marketplace并搜索“JBoss Tools”)。

More specifically, the feature you are asking for is documented here:更具体地说,您要求的功能记录在此处:

http://tools.jboss.org/features/server.html http://tools.jboss.org/features/server.html

Here is the solution follow below steps这是解决方案,请按照以下步骤操作

  1. In Eclipse Mars go to Help-> Install New Software在 Eclipse Mars 中,转到“帮助”->“安装新软件”
  2. Click on add button and paste the URL of the update site which is in our case: Eclipse Mars tools for Jboss单击添加按钮并粘贴更新站点的 URL,在我们的示例中为: Eclipse Mars tools for Jboss
  3. Now select the JBossAS Tools plugin and Click "Next"现在选择JBossAS工具插件并单击“下一步”

I faced the same problem, what I did was change the eclipse.ini point JDK version 1.8.我遇到了同样的问题,我所做的是将 eclipse.ini 指向 JDK 版本 1.8。 Jboss Tools required 1.8. Jboss 工具需要 1.8。

-vm
C:\Program Files\Java\jdk1.8.0_51\jre\bin
-vmargs
-Dosgi.requiredJavaVersion=1.8

If server or tool you wanted(like glassfish,jboss) isn't listed then click download Additional server adapters and download desired adapter.After that all related servers and tools will be listed then follow instruction here -如果您想要的服务器或工具(如 glassfish、jboss)未列出,请单击download Additional server adapters并下载所需的download Additional server adapters之后将列出所有相关服务器和工具,然后按照此处的说明进行操作 -

Jboss Community Jboss 社区

http://riccardotramma.com/2013/06/install-jboss-and-use-it-in-eclipse-juno/ http://riccardotramma.com/2013/06/install-jboss-and-use-it-in-eclipse-juno/

This worked for me.这对我有用。 It required two passes through Window/Preferences ...它需要两次通过Window/Preferences ...

Window/Preferences/Server/Runtime Environments

Add... Select Red Hat JBoss Middleware Next Accept the license agreement添加... 选择 Red Hat JBoss Middleware Next 接受许可协议

Installation takes a few minutes and requires an Eclipse restart安装需要几分钟,需要重启 Eclipse

After the restart:重启后:

 Window/Preferences/Server/Runtime Environments

Add... Select JBoss Community/JBoss xxx Runtime Next Set the home directory and click the " Download and install " link添加... 选择 JBoss Community/JBoss xxx Runtime Next 设置主目录并点击“下载并安装”链接

Select the version to download选择要下载的版本

Accept the license agreement接受许可协议

作为对@Magnilex 响应的补充,(现在...)您必须使用 JDK 8 运行 Eclipse Mars,否则 JBoss 社区的服务器适配器不会出现(请参阅http://tools.jboss的第一章.org/blog/2015-06-23-beta1-for-mars.html )

I tried all the possible solutions that I came across, but none of them worked for me to install the jboss server in the eclipse IDE.我尝试了我遇到的所有可能的解决方案,但没有一个适合我在 Eclipse IDE 中安装 jboss 服务器。 Everytime I ended with one error(ie Unable to load the repository), then I came to cross with below solution每次我以一个错误结束时(即无法加载存储库),然后我就遇到了以下解决方案

Here is the solution follow below steps这是解决方案,请按照以下步骤操作

  1. In Eclipse go to Help-> Eclipse MarketPlace在 Eclipse 中转到帮助-> Eclipse MarketPlace
  2. Search for Red Hat CodeReady Studio(Developer Studio) and install it after accepting the agreement and install it.接受协议后搜索Red Hat CodeReady Studio(Developer Studio)安装即可。
  3. Restart the eclipse inorder to reflect the changes in the eclipse重启eclipse以反映eclipse中的变化
  4. Goto servers and look for the jboss run time enivironment which will be there and load the server to the eclipse转到服务器并查找将在那里的 jboss 运行时环境并将服务器加载到 eclipse

If you have any doubt regarding installation in eclipse IDE,go through the below link如果您对 Eclipse IDE 中的安装有任何疑问,请访问以下链接

http://riccardotramma.com/2013/06/install-jboss-and-use-it-in-eclipse-juno/ http://riccardotramma.com/2013/06/install-jboss-and-use-it-in-eclipse-juno/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM