我有一个使用Maven编译的Java应用程序(mvn-U clean package
),我使用jboss cli手动部署它。sh
:
$ /usr/local/wildfly-23.0.2.Final/bin/jboss-cli.sh --connect --controller=localhost:9991 --command='deploy /usr/local/git/app/war-module/target/war-module.war --force'
直到上周,它才开始显示出这个错误:
[standalone@localhost:9991 /] deploy /usr/local/git/app/war-module/target/war-module.war --force
{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"war-module.war\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException
Caused by: javax.enterprise.event.ObserverException
Caused by: java.util.ServiceConfigurationError: org.eclipse.microprofile.config.spi.ConfigSource: org.jboss.resteasy.microprofile.config.ServletConfigSource not a subtype"}}}}
查看控制台日志输出,我发现以下几行:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."war-module.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."war-module.war".WeldStartService: Failed to start service
at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1731)
at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: org.jboss.weld.exceptions.DeploymentException
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:38)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:28)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.bootstrap.WeldStartup.validateBeans(WeldStartup.java:505)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:93)
at org.jboss.as.weld@23.0.2.Final//org.jboss.as.weld.WeldStartService.start(WeldStartService.java:98)
at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
at org.jboss.msc@1.4.12.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
... 6 more
Caused by: javax.enterprise.event.ObserverException
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:124)
at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:346)
at java.base/java.lang.Class.newInstance(Class.java:604)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.security.NewInstanceAction.run(NewInstanceAction.java:33)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:554)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:78)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:103)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:85)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.injection.MethodInvocationStrategy$SimpleMethodInvocationStrategy.invoke(MethodInvocationStrategy.java:168)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:330)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:123)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:308)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:286)
at javax.enterprise.api//javax.enterprise.inject.spi.ObserverMethod.notify(ObserverMethod.java:124)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.util.Observers.notify(Observers.java:166)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:285)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:273)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:177)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:171)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:35)
... 12 more
Caused by: java.util.ServiceConfigurationError: org.eclipse.microprofile.config.spi.ConfigSource: org.jboss.resteasy.microprofile.config.ServletConfigSource not a subtype
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:591)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1238)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1266)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1301)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1386)
at deployment.war-module.war//io.smallrye.config.SmallRyeConfigBuilder.discoverSources(SmallRyeConfigBuilder.java:96)
at deployment.war-module.war//io.smallrye.config.SmallRyeConfig$ConfigSources.buildConfigSources(SmallRyeConfig.java:564)
at deployment.war-module.war//io.smallrye.config.SmallRyeConfig$ConfigSources.<init>(SmallRyeConfig.java:517)
at deployment.war-module.war//io.smallrye.config.SmallRyeConfig.<init>(SmallRyeConfig.java:68)
at deployment.war-module.war//io.smallrye.config.SmallRyeConfigBuilder.build(SmallRyeConfigBuilder.java:418)
at deployment.war-module.war//io.smallrye.config.SmallRyeConfigFactory$Default.getConfigFor(SmallRyeConfigFactory.java:59)
at deployment.war-module.war//io.smallrye.config.SmallRyeConfigProviderResolver.getConfig(SmallRyeConfigProviderResolver.java:76)
at deployment.war-module.war//org.eclipse.microprofile.config.ConfigProvider.getConfig(ConfigProvider.java:101)
at deployment.war-module.war//io.smallrye.config.inject.ConfigExtension.validate(ConfigExtension.java:147)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.jboss.weld.core@3.1.6.Final//org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)
... 26 more
11:33:02,318 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ({"deployment" => "war-module.war"}) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"war-module.war\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException
Caused by: javax.enterprise.event.ObserverException
Caused by: java.util.ServiceConfigurationError: org.eclipse.microprofile.config.spi.ConfigSource: org.jboss.resteasy.microprofile.config.ServletConfigSource not a subtype"}}
11:33:02,319 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "war-module.war" was rolled back with the following failure message:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"war-module.war\".WeldStartService" => "Failed to start service
Caused by: org.jboss.weld.exceptions.DeploymentException
Caused by: javax.enterprise.event.ObserverException
Caused by: java.util.ServiceConfigurationError: org.eclipse.microprofile.config.spi.ConfigSource: org.jboss.resteasy.microprofile.config.ServletConfigSource not a subtype"}}
Wildfly版本23.0.2,OpenJDK 14,针对Maven的pom中的Java 11。xml
使用maven编译器插件
v3。8.1.
已经尝试取消所有部署并再次部署战争,但没有使用武力,没有成功。
升级到Wildfly 26.0.1解决了这个问题。
原来我试图在Wildfly 23中部署,但其他团队已经将该应用程序升级到Wildfly 26:他们更改了maven包org。野蝇。bom:wildfly-jakartaee8
至版本26.0.1。最终版
。
可能与Wildfly 24、25或26中添加到MicroporFile的新功能有关。
> JBoss引导环境 JBOSS_HOME: JAVA: 启动jBoss时获取此错误...
我可以在Wildfly快速入门中提供的Eclipse中运行这些教程中的大部分: https://github.com/wildfly/quickstart/
我们已经使用部署扫描程序(“部署”文件夹)将WAR文件部署到Wildfly。web应用程序一直工作到计算机重新启动为止-当服务器再次加载web应用程序时,它会失败。值得一提的是,如果重新启动Wildfly服务,我们就不会有这个问题,它只会在整个操作系统重新启动时发生。如果我重新启动Wildfly,它会再次工作。 如果从部署文件夹中删除失败的文件标志(healthsafety-server.war.
我试图在Wildfly 8.0上使用KIE-CI(用于动态Maven打包规则)部署Drools。0.5决赛。 我的极简测试项目的POM是: 部署失败,出现以下错误: (还有一些类似的例外) 它的工作原理,如果我从ki-ci依赖中排除sisu注入丛: 但在我的“真正”项目中,我需要这种依赖。 有人知道如何让这两个(野蝇和口水和KIE-CI)一起工作吗?和建议,我应该在哪里提交一个错误?
我正在使用Terraform编写AWS代码管道。在如下所示定义CodeDeploy的阶段时,我发现一个错误: 操作部署的操作配置包含未知配置部署组 我检查了Terraform上的留档,但我没有找到任何与CodeDeploy提供商配置相关的内容。 我认为这里的配置参数“DeploymentGroup”不正确。我应该提到什么而不是DeploymentGroup。