简体   繁体   English

Spring 使用 apache 轴启动 2.2.6 应用程序

[英]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.

相关问题 将 Spring 引导 2.2.6 迁移到 Spring 引导 2.3.0 时出现问题 - Issue when migrate Spring Boot 2.2.6 to Spring Boot 2.3.0 Spring Boot 2.2.6 没有为 Logback 的 SizeAndTimeBasedRollingPolicy 提供上下文 - Spring Boot 2.2.6 No context given for SizeAndTimeBasedRollingPolicy at Logback Spring 引导 2.2.6 - MVC | 如何忽略 application.properties 中定义的后缀和前缀 - Spring Boot 2.2.6 - MVC | How to ignore suffix and prefix defined in application.properties 如何解决 Spring 启动 2.2.6 无法启动端口已在使用的应用程序? - How to troubleshoot Spring boot 2.2.6 failure to launch application with Port already in use? Spring Boot应用程序-Maven问题 - Spring Boot Application - Maven Issue Spring 引导应用程序部署问题 - Spring Boot Application Deployment Issue spring boot + apache camel + mongodb集成问题 - spring boot + apache camel + mongodb integration issue Spring Boot桌面独立应用程序中的Apache Shiro - Apache Shiro in Spring Boot Desktop Standalone Application 在 Spring Boot 应用程序中集成 Apache guacamole - Integrating Apache guacamole in spring boot application EntityScanner 是否检测抽象类和接口? (Spring Boot 2.2.6) - Does EntityScanner detect abstract classes and interfaces? (Spring Boot 2.2.6)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM