如何在 Wildfly 中启用远程管理操作
How to enable remote management operations in Wildfly
试图从我的 standalone.xml 在 Wildfly 中读取一些值,我收到以下错误消息:
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0379: System boot is in process; execution of remote management operations is not currently available"
}
在 JBoss 7.1.1 中工作正常,请参阅我在 Ejb Singleton 中的 java 编码:
@Startup
@Singleton
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
public class TestBean {
@PostConstruct
private void init() throws Exception {
final ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set("read-resource");
request.get("recursive").set(true);
request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"),
9029);
final ModelNode response = client.execute(new OperationBuilder(request).build());
}
}
此错误发生在 client.execute() 尝试获取 ModelNode 时。
如有任何帮助,我将不胜感激!
不知道 El Lord Code 试图完成什么,但是在我的项目中,例如,我们正在使用 Startup Singleton 的模式来初始化应用程序。现在,在那件事期间,我们需要进行一些编程登录 - 注销 Wildfly,注销会刷新一些凭据缓存,这取决于对安全域的访问。问题是整个远程管理在启动和关闭期间不可访问(它在应用程序启动/停止之前开始和结束)。
我在这里发布了一个类似的问题:https://developer.jboss.org/message/944842#944842
错误表明 Wildfly 仍在部署一些 WAR/application
在此期间管理仍然无法访问。
尝试在部署文件夹中没有任何应用程序的情况下启动 Wildfly,然后尝试读取独立配置以满足任何需要。
试图从我的 standalone.xml 在 Wildfly 中读取一些值,我收到以下错误消息:
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0379: System boot is in process; execution of remote management operations is not currently available"
}
在 JBoss 7.1.1 中工作正常,请参阅我在 Ejb Singleton 中的 java 编码:
@Startup
@Singleton
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
public class TestBean {
@PostConstruct
private void init() throws Exception {
final ModelNode request = new ModelNode();
request.get(ClientConstants.OP).set("read-resource");
request.get("recursive").set(true);
request.get(ClientConstants.OP_ADDR).add("subsystem", "security");
final ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("127.0.0.1"),
9029);
final ModelNode response = client.execute(new OperationBuilder(request).build());
}
}
此错误发生在 client.execute() 尝试获取 ModelNode 时。
如有任何帮助,我将不胜感激!
不知道 El Lord Code 试图完成什么,但是在我的项目中,例如,我们正在使用 Startup Singleton 的模式来初始化应用程序。现在,在那件事期间,我们需要进行一些编程登录 - 注销 Wildfly,注销会刷新一些凭据缓存,这取决于对安全域的访问。问题是整个远程管理在启动和关闭期间不可访问(它在应用程序启动/停止之前开始和结束)。 我在这里发布了一个类似的问题:https://developer.jboss.org/message/944842#944842
错误表明 Wildfly 仍在部署一些 WAR/application
在此期间管理仍然无法访问。
尝试在部署文件夹中没有任何应用程序的情况下启动 Wildfly,然后尝试读取独立配置以满足任何需要。