从JBoss-7.4.0迁移至JBoss-7.4.5时启动服务器报错求助
JBoss EAP 7.4.0 迁移至7.4.5启动失败问题
问题背景
将服务器从JBoss EAP 7.4.0迁移至7.4.5后,启动过程中出现致命错误导致服务器无法启动。已尝试应用红帽官方补丁、替换原7.4.0版本的standalone.xml配置文件,问题仍未解决。
启动错误日志
12:53:55,533 INFO [org.jboss.modules] (main) JBoss Modules version 1.9.1.Final-redhat-00001 12:53:58,921 INFO [org.jboss.msc] (main) JBoss MSC version 1.4.12.Final-redhat-00001 12:53:58,930 INFO [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final-redhat-00001 12:53:59,040 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: JBoss EAP 7.4.5.GA (WildFly Core 15.0.13.Final-redhat-00001) starting 12:54:00,206 INFO [org.wildfly.security] (ServerService Thread Pool -- 24) ELY00001: WildFly Elytron version 1.15.12.Final-redhat-00001 12:54:04,115 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 7) WFLYCTL0033: Extension 'security' is deprecated and may not be supported in future versions 12:54:05,451 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=native-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 12:54:05,452 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 12:54:05,463 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 12) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 12:54:05,464 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 23) WFLYCTL0028: Attribute 'username' in the resource at address '/subsystem=remoting/remote-outbound-connection=remote-ejb-connection' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 12:54:05,464 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 23) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=remoting/remote-outbound-connection=remote-ejb-connection' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 12:54:05,465 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 23) WFLYCTL0028: Attribute 'protocol' in the resource at address '/subsystem=remoting/remote-outbound-connection=remote-ejb-connection' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation. 12:54:05,476 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0015: Re-attempting failed deployment sopra-banking-xchannel-4.x-ib-connect.war 12:54:05,910 ERROR [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0362: Capabilities required by resource '/subsystem=elytron/aggregate-providers=combined-providers' are not available: org.wildfly.security.providers.openssl; Possible registration points for this capability: /subsystem=elytron/aggregate-providers=* /subsystem=elytron/provider-loader=* org.wildfly.security.providers.elytron; Possible registration points for this capability: /subsystem=elytron/aggregate-providers=* /subsystem=elytron/provider-loader=* 12:54:05,913 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details. 12:54:05,923 INFO [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050: JBoss EAP 7.4.5.GA (WildFly Core 15.0.13.Final-redhat-00001) stopped in 7ms
问题分析与解决方案
核心错误为WFLYCTL0362:combined-providers聚合资源依赖的org.wildfly.security.providers.openssl和org.wildfly.security.providers.elytron能力未注册,需通过以下步骤修复:
1. 检查并修正Elytron配置
打开standalone.xml,确认<subsystem xmlns="urn:wildfly:elytron:1.0">节点下是否存在对应的provider-loader配置,确保combined-providers已正确聚合所需提供者:
<subsystem xmlns="urn:wildfly:elytron:1.0"> <!-- 添加缺失的provider-loader --> <provider-loader name="openssl" module="org.wildfly.security.openssl"/> <provider-loader name="elytron" module="org.wildfly.security.elytron"/> <!-- 确保combined-providers聚合上述提供者 --> <aggregate-providers name="combined-providers"> <providers provider-loader="openssl"/> <providers provider-loader="elytron"/> </aggregate-providers> <!-- 其他Elytron配置... --> </subsystem>
2. 验证JBoss模块完整性
检查JBoss安装目录下的模块文件是否存在:
- 确认
modules/system/layers/base/org/wildfly/security/openssl目录及内容完整 - 确认
modules/system/layers/base/org/wildfly/security/elytron目录及内容完整
若模块缺失,需重新执行完整的补丁安装或直接升级至JBoss EAP 7.4.5完整版本。
3. 使用JBoss CLI快速修复
若无法直接编辑配置文件,可通过CLI在维护模式下修复:
- 启动服务器进入维护模式:
./standalone.sh --admin-only - 连接JBoss CLI:
./jboss-cli.sh --connect - 执行命令添加provider-loader并更新聚合配置:
/subsystem=elytron/provider-loader=openssl:add(module=org.wildfly.security.openssl) /subsystem=elytron/provider-loader=elytron:add(module=org.wildfly.security.elytron) /subsystem=elytron/aggregate-providers=combined-providers:add(providers=[{provider-loader=openssl}, {provider-loader=elytron}]) - 保存配置并重启服务器:
:save-config shutdown --restart=true
内容的提问来源于stack exchange,提问作者mohita bansal
相关产品推荐
相关产品推荐

