小编hem*_*ngh的帖子

无法创建 SAAJ 元工厂:找不到提供程序 com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl

我正在尝试将我的项目升级到 java 15。在尝试启动服务器时,我在 bean 创建过程中遇到错误。

util-context.xml:

<beans:bean id="dummyAdaptor" class="org.dummy.adaptor.DummyAdaptor"></beans:bean>
<beans:bean id = "soapRequestProcessorWithAction" class="org.dummy.adaptor.request.processor.SOAPRequestProcessorWithAction" />
<beans:bean id="soapWebServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate">
   <beans:property name="marshaller" ref="marshaller" />
   <beans:property name="unmarshaller" ref="unmarshaller" />
</beans:bean>
Run Code Online (Sandbox Code Playgroud)

虚拟适配器.java:

private SOAPRequestProcessorWithAction<CTRMProcessRequest, CTRMProcessResponse> soapRequestProcessorWithAction;
Run Code Online (Sandbox Code Playgroud)

SOAPRequestProcessorWithAction.java:

private SOAPRequestProcessorWithAction<CTRMProcessRequest, CTRMProcessResponse> soapRequestProcessorWithAction;
Run Code Online (Sandbox Code Playgroud)

错误:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dummyAdaptor': Unsatisfied dependency expressed through field 'soapRequestProcessorWithAction'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'soapRequestProcessorWithAction': Unsatisfied dependency expressed through field 'webServiceTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'soapWebServiceTemplate' defined in class …
Run Code Online (Sandbox Code Playgroud)

java spring saaj

9
推荐指数
1
解决办法
2万
查看次数

标签 统计

java ×1

saaj ×1

spring ×1