[英]Spring boot 2.2.6 application with apache axis Issue
My question is similar to this one ( Spring boot application with apache axis ) but I am running Spring Boot v2.2.6.我的问题类似于这个问题( Spring 引导应用程序与 apache 轴)但我正在运行 Spring Boot v2.2.6。 When I execute the command
当我执行命令时
java -jar -Dspring.profiles.active=local myjar-0.0.1-SNAPSHOT.jar
I get the error我得到错误
2021-06-01 00:41:53,152 myjar [http-nio-9090-exec-1] ERROR
org.apache.axis2.deployment.ModuleDeployer - deploy:94 - The addressing-1.6.3-classpath-
module.jar module, which is not valid, caused The /Users/xxxx/workspace/myjar/build/libs/myjar-0.0.1-SNAPSHOT.jar!/BOOT-INF/lib/addressing-1.6.3-classpath-
module.jar file cannot be found.
org.apache.axis2.AxisFault: The /Users/xxxx/workspace/.../build/libs/myjar-0.0.1-
SNAPSHOT.jar!/BOOT-INF/lib/addressing-1.6.3-classpath-module.jar file cannot be found.
I also have the relevant build.gradle snippet我也有相关的 build.gradle 片段
api "org.apache.axis2:addressing:1.6.3:classpath-module"
api "org.apache.axis2:axis2:1.6.3"
api "org.apache.axis2:axis2-adb:1.6.3"
api "org.apache.axis2:axis2-transport-local:1.6.3"
api "org.apache.axis2:axis2-transport-http:1.6.3"
I confirmed that the file /Users/xxxx/workspace/myjar/build/libs/myjar-0.0.1-SNAPSHOT.jar./BOOT-INF/lib/addressing-1.6.3-classpath-module.jar does exist?我确认文件 /Users/xxxx/workspace/myjar/build/libs/myjar-0.0.1-SNAPSHOT.jar./BOOT-INF/lib/addressing-1.6.3-classpath-module.jar 确实存在? Can anyone help fix this issue?
任何人都可以帮助解决这个问题吗?
It looks like Axis cannot cope with one jar file being nested inside another.看起来 Axis 无法处理一个嵌套在另一个文件中的 jar 文件。 For situations like this, you can configure Spring Boot to automatically unpack the nested jar when you start your application:
对于这样的情况,您可以配置 Spring Boot 以在您启动应用程序时自动解压缩嵌套的 jar :
bootJar {
requiresUnpack '**/addressing-*-classpath-module.jar'
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.