java - Axis 1.4 问题(无法加载 [META-INF/services/org.apache.axis.EngineConfigurationFactor)

标签 java spring-boot axis java-11

我有一个使用 JDK 11 运行的 Spring-boot 项目,需要导入外部库来执行一些功能,该库依赖于 Axis 1.4。 当我作为>> Java应用程序运行时,就可以了。但是当我通过“mvn spring-boot:run”运行时。有异常

java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [META-INF/services/org.apache.axis.EngineConfigurationFactory]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1383)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1036)
at org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:134)
at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(DiscoverResources.java:124)
at org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(DiscoverResources.java:98)
at org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverResources.java:84)
at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassNames(DiscoverNamesInFile.java:226)
at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassName(DiscoverNamesInFile.java:209)
at org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(DiscoverNamesInFile.java:196)
at org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterator(NameDiscoverers.java:122)
at org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDiscoverers.java:105)
at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.getNextResource(ResourceClassDiscoverImpl.java:116)
at org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.hasNext(ResourceClassDiscoverImpl.java:103)
at org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:120)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
at org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160)
at org.apache.axis.client.Service.getEngineConfiguration(Service.java:813)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)

请帮我解决这个问题。

最佳答案

我发现了问题。当我重新启动服务器时,不会出现此错误。

关于java - Axis 1.4 问题(无法加载 [META-INF/services/org.apache.axis.EngineConfigurationFactor),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59659602/

相关文章:

java - 如何用java语言将字符 'A'转换为二进制 '1010'

java - 未能评估断点条件。原因 : Object has been collected

java - Thymeleaf 在一页上呈现另一页错误

javascript - 如何使用D3 Axis 命令正确调换X轴和Y轴?

java - 如何在另一个生成字节码类中使用匿名类实例

java - 如何在 java 流中添加我的方法?

spring-mvc - Spring Rest Docs 如何在我的代码片段或 .adoc 文件中包含应用程序名称

java - 为什么迁移到 Java 11 后, header "Accept: application/xml"在 Spring Boot 中不起作用?

java - 如何在 https 和客户端证书请求后面生成 Web 服务代理

r - 如何对齐不同高度的 Axis 标签?