【发布时间】:2018-06-21 00:28:36
【问题描述】:
我有一个 Spring Boot 应用程序,它通过 Spring Boot Gradle 插件 或 java -jar myApp.war 命令运行良好。
但是,如果我尝试在 WebSphere Liberty 应用服务器上部署它,我会收到以下错误:
[WARNING ] CWWKC0044W: An exception occurred while scanning class and annotation data. The exception was java.lang.RuntimeException
at org.objectweb.asm.ClassVisitor.visitModule(ClassVisitor.java:148)
at [internal classes]
.
此外,此错误会导致 Spring Boot 开始以DEBUG 严重性记录,即使它配置为INFO 或WARN。
谁能指导我找出根本原因,或者如何深入调查?
我正在使用以下版本:
- Spring Boot:2.0.0.M7
- WLP:17.0.0.4
- Java(内部版本):祖鲁 1.8.0_152
- Java (WLP):IBM 8.0.5.6
以及以下依赖项:
dependencies {
implementation "org.springframework.boot:spring-boot-starter-web:2.0.0.M7"
implementation "org.springframework.boot:spring-boot-starter-thymeleaf:2.0.0.M7"
providedRuntime "org.springframework.boot:spring-boot-starter-tomcat:2.0.0.M7"
}
我尝试了不同版本的 Spring Boot (1.5.9) 和 WLP (17.0.0.3),但错误没有改变。删除>
更新:Spring Boot 1.5.9 中不存在该错误。
【问题讨论】:
标签: spring spring-boot gradle websphere websphere-liberty