简体   繁体   English

在Netbeans 8上配置JBoss EAP的问题

[英]Issues configuring JBoss EAP on Netbeans 8

I have downloaded JBoss EAP 7 and am configuring it on Netbeans 8. I have reached the wizard "instance Properties" where am asked to select a "domain" from a select box. 我已经下载了JBoss EAP 7并在Netbeans 8上配置它。我已经到达向导“实例属性”,要求从选择框中选择“域”。 When I open the select box, it is empty. 当我打开选择框时,它是空的。 There is nothing there to choose from. 没有什么可供选择的。 Because of this, the "finish" button also is inactive which make in impossible to complete the configuration. 因此,“完成”按钮也处于非活动状态,这使得无法完成配置。

I am adding Jboss via the "services" tab. 我通过“服务”选项卡添加Jboss。 What is going wrong here? 这里出了什么问题?

JBoss EAP 6.4.0 works perfectly fine with Netbeans 8.1, however, if you are like me and wanted to take advantage of the JSF 2.2 functionality, which was only added in JBoss EAP 7.0.0, you will currently need to do some work-arounds. JBoss EAP 6.4.0与Netbeans 8.1完全兼容,但是,如果你像我一样想要利用JSF 2.2功能,这只是在JBoss EAP 7.0.0中添加的,你现在需要做一些工作 - 变通。

In Netbeans 8.1 I managed to work around the problem with the blank domain by setting up JBoss EAP 7.0.0 selecting the "WildFly Application Server" option instead of "JBoss Application Server". 在Netbeans 8.1中,我设法通过设置JBoss EAP 7.0.0来选择“WildFly Application Server”选项而不是“JBoss Application Server”来解决空白域的问题。 Here's are more detailed instructions: 以下是更详细的说明:

In Netbeans 8.0.1, select "Services", right click on "Servers" and select "Add Server...", pick the option "WildFly Application Server", point "server location" to the root of your JBoss EAP 7 install (eg c:\\jboss7) and then point the server configuration option to c:\\jboss7\\standalone\\configuration\\standalone-full.xml and that's it. 在Netbeans 8.0.1中,选择“服务”,右键单击“服务器”并选择“添加服务器...”,选择“WildFly Application Server”选项,将“服务器位置”指向JBoss EAP 7安装的根目录(例如c:\\ jboss7)然后将服务器配置选项指向c:\\ jboss7 \\ standalone \\ configuration \\ standalone-full.xml,就是这样。

However, even after doing this the application server is now added, there is still a bug where your code will not deploy correctly, see details here: 但是,即使在执行此操作后,现在又添加了应用程序服务器,仍然存在代码无法正确部署的错误,请参阅此处的详细信息:

https://netbeans.org/bugzilla/show_bug.cgi?id=258091 https://netbeans.org/bugzilla/show_bug.cgi?id=258091

Thankfully, this has been fixed in the Netbeans nightly build. 值得庆幸的是,这已经在Netbeans每晚构建中得到修复。 It looks like the bug was actually fixed in Feb 2016. I installed NetBeans IDE Build 201607140002, which includes this fix (as will any other newer I presume). 看起来这个bug实际上是在2016年2月修复的。我安装了NetBeans IDE Build 201607140002,其中包含了这个修复程序(我认为还有其他任何新版本)。 So, you can grab the nightly build from here (alternatively, you can wait for the bug fix in Netbeans 8.2, whenever that will be): 所以,您可以从这里获取每晚构建(或者,您可以等待Netbeans 8.2中的错误修复,无论何时都是这样):

http://bits.netbeans.org/dev/nightly/ http://bits.netbeans.org/dev/nightly/

It should be noted, even after using the nightly build, I still had to add the server to Netbeans using the above technique (add it as a "WildFly Application Server", not a "JBoss Application Server" otherwise you will still get the blank domain issue). 应该注意的是,即使在使用每晚构建之后,我仍然必须使用上述技术将服务器添加到Netbeans(将其添加为“WildFly Application Server”,而不是“JBoss Application Server”,否则您仍然会得到空白域名问题)。

Everything appears to be working as expected so far anyway using the above... of course, there is an element of risk using the nightly build, as it's technically still in a test phase. 到目前为止,使用上述内容似乎仍然按预期工作...当然,使用夜间构建存在风险因素,因为它在技术上仍处于测试阶段。 This is the price we pay for living on the sharp edge of the sword! 这是我们为生活在剑锋利边缘所付出的代价! :) :)

There is no support for domain mode in NetBeans. NetBeans中不支持域模式。 What use case should be covered with a domain deployment ? 域部署应涵盖哪些用例? We're talking about an IDE used for development. 我们谈论的是用于开发的IDE。 Also I'm not sure EAP 7 is correctly detected. 此外,我不确定是否正确检测到EAP 7。

暂无
暂无

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

相关问题 Jboss EAP 7.4.1 配置问题 - Jboss EAP 7.4.1 configuration issues Netbeans中的“ Java EE 7”和JBoss EAP 7.0 - “Java EE 7” and JBoss EAP 7.0 in Netbeans JBoss EAP 7 java.lang.IllegalArgumentException通过Gradle脚本配置JBoss EAP 7数据源时出现问题 - JBoss EAP 7 java.lang.IllegalArgumentException Problem configuring JBoss EAP 7 datasource via Gradle scripts 在JBOSS AS 5中工作的JBOSS 6 EAP中部署简单的WAR应用程序的问题 - Issues deploying a simple WAR application in JBOSS 6 EAP that worked in JBOSS AS 5 在 JBOSS 6.4 EAP + spring + Z93F725A07423D11C8B86 应用程序中配置 Oracle 钱包 - Configuring Oracle Wallet in JBOSS 6.4 EAP + spring + java application JBOSS EAP和SPRING:spring-jdbc ns问题 - JBOSS EAP and SPRING: Issues with spring-jdbc ns Java8和JBoss EAP 7是否存在严重的兼容性问题,以便通过JBOSS Developer Studio部署Web服务 - Are there serious compatibility issues with Java8 and JBoss EAP 7 for deploying web services with JBOSS developer studio 在Eclipse Luna中配置jboss-eap-6.4服务器时分配正确的主目录时出错 - Error in Assigning proper home directory while configuring jboss-eap-6.4 server in Eclipse Luna 通过在jboss-deployment-structure.xml上进行配置,是否可以使用JPA 2.1为Spring 4和Hibernate 4.3.10配置JBoss EAP 6.4.x? - Is it possible to configure JBoss EAP 6.4.x for Spring 4 and Hibernate 4.3.10 using JPA 2.1 by configuring it over jboss-deployment-structure.xml? Jboss EAP-未加载Servlet - Jboss EAP - Servlet not loaded
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM