使用JDK 8从wildfly 13升级到34版本

问题描述 投票:0回答:1

在 Wildfly 13 中,JDK 8 应用程序运行良好,但在尝试从 Wildfly 13 升级到 34 时。我收到以下错误。

12:10:05,194 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.module.service."deployment.cfrt-fde-3.0.jar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.cfrt-fde-3.0.jar".main: WFLYSRV0179: Failed to load module: deployment.cfrt-fde-3.0.jar
        at [email protected]//org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:100)
        at [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1617)
        at [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1580)
        at [email protected]//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1438)
        at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.jboss.modules.ModuleNotFoundException: cfrt.lib
        at org.jboss.modules.Module.addPaths(Module.java:1304)
        at org.jboss.modules.Module.link(Module.java:1660)
        at org.jboss.modules.Module.relinkIfNecessary(Module.java:1688)
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:303)
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:287)
        at [email protected]//org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:77)
        ... 8 more

12:10:05,194 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.module.service."deployment.fms-entity.jar".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.fms-entity.jar".main: WFLYSRV0179: Failed to load module: deployment.fms-entity.jar
        at [email protected]//org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:100)
        at [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1617)
        at [email protected]//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1580)
        at [email protected]//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1438)
        at [email protected]//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
        at [email protected]//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.jboss.modules.ModuleLoadException: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)
        at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:200)
        at org.jboss.modules.ModuleLoader.findModule0(ModuleLoader.java:700)
        at org.jboss.modules.ModuleLoader.findModule(ModuleLoader.java:693)
        at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:503)
        at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57)
        at org.jboss.modules.ModuleLoader.preloadExportedModule(ModuleLoader.java:418)
        at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:444)
        at [email protected]//org.jboss.as.server.moduleservice.ServiceModuleLoader.preloadModule(ServiceModuleLoader.java:127)
        at org.jboss.modules.Module.addPaths(Module.java:1290)
        at org.jboss.modules.Module.link(Module.java:1660)
        at org.jboss.modules.Module.relinkIfNecessary(Module.java:1688)
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:303)
        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:287)
        at [email protected]//org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:77)
        ... 8 more
Caused by: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)
        at java.base/java.util.zip.ZipFile$ZipFileInputStream.initDataOffset(ZipFile.java:1010)
        at java.base/java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:1020)
        at java.base/java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:478)
        at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)
        at java.base/java.util.jar.Manifest$FastInputStream.fill(Manifest.java:494)
        at java.base/java.util.jar.Manifest$FastInputStream.readLine(Manifest.java:403)
        at java.base/java.util.jar.Manifest$FastInputStream.readLine(Manifest.java:462)
        at java.base/java.util.jar.Attributes.read(Attributes.java:380)
        at java.base/java.util.jar.Manifest.read(Manifest.java:230)
        at java.base/java.util.jar.Manifest.<init>(Manifest.java:80)
        at java.base/java.util.jar.Manifest.<init>(Manifest.java:72)
        at org.jboss.modules.VersionDetection.detectVersion(VersionDetection.java:44)
        at org.jboss.modules.xml.ModuleXmlParser.parseResourceRoot(ModuleXmlParser.java:1124)
        at org.jboss.modules.xml.ModuleXmlParser.parseResources(ModuleXmlParser.java:931)
        at org.jboss.modules.xml.ModuleXmlParser.parseModuleContents(ModuleXmlParser.java:696)
        at org.jboss.modules.xml.ModuleXmlParser.parseDocument(ModuleXmlParser.java:468)
        at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:334)
        at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:292)
        at org.jboss.modules.xml.ModuleXmlParser.parseModuleXml(ModuleXmlParser.java:253)
        at org.jboss.modules.LocalModuleFinder.parseModuleXmlFile(LocalModuleFinder.java:250)
        at org.jboss.modules.LocalModuleFinder.lambda$findModule$1(LocalModuleFinder.java:195)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:688)
        at org.jboss.modules.LocalModuleFinder.findModule(LocalModuleFinder.java:195)
        ... 21 more

12:10:05,286 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "cfrt-fde-3.0.jar")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.cfrt-fde-3.0.jar\".main" => "WFLYSRV0179: Failed to load module: deployment.cfrt-fde-3.0.jar
    Caused by: org.jboss.modules.ModuleNotFoundException: cfrt.lib"}}
12:10:05,301 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "fms-entity.jar")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.module.service.\"deployment.fms-entity.jar\".main" => "WFLYSRV0179: Failed to load module: deployment.fms-entity.jar
    Caused by: org.jboss.modules.ModuleLoadException: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)
    Caused by: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)"}}

注意:- 我的应用程序是在 JDK 8 中开发的。我不想升级我的 JDK。

我的期望是在 Wildfly 34 上运行应用程序而无需升级 JDK。

java jboss wildfly wildfly-13
1个回答
0
投票

尝试升级之前请阅读文档。

Wildfly 34 的发行说明明确指出它在 Java 11、17 和 21 上运行。该文档还建议通常建议在最新的 LTS 上运行,他们在其中进行大部分测试。他们提到 34 是 Java 11 的最后一个版本。

我们的建议是您在 Java SE 21 上运行 WildFly 34,因为这是最新的 LTS JDK 版本,在推荐特定 SE 版本之前,我们已经完成了我们喜欢做的全套测试。 WildFly 34 也经过严格测试,在 Java 17 和 Java 11 上运行良好。

© www.soinside.com 2019 - 2024. All rights reserved.