首页 > 解决方案 > java.lang.VerifyError:在 Fedora 环境中的 tomcat 中

问题描述

启动 tomcat 时出现以下错误。但这场战争正在其他系统中运行,没有任何错误。

SEVERE: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
java.lang.VerifyError: (class: com/company/project/jaxws_asm/RegisterPartner, method: setAuthInfo signature: (Lcom/company/project/AuthInfo;)V) Illegal instruction found at offset 1

非常期待任何帮助。

标签: javaspring-mvctomcat

解决方案


就我而言,问题是我在类路径上有两个 ASM 版本。

  • ASM 3.1.0
  • ASM 5.0.4

我删除了 3.1.0,它运行良好。


推荐阅读