У меня есть Spring Integration XML с использованием xslt-transformer и xml-xpath-выражений, которые не загружаются. Фрагмент SI XML показан ниже
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration" xmlns:int-http="http://www.springframework.org/schema/integration/http" xmlns:util="http://www.springframework.org/schema/util" xmlns:sixml="http://www.springframework.org/schema/integration/xml" xmlns:jms="http://www.springframework.org/schema/integration/jms" xmlns:jee="http://www.springframework.org/schema/jee" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration/xml http://www.springframework.org/schema/integration/xml/spring-integration-xml.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd http://www.springframework.org/schema/integration/jms http://www.springframework.org/schema/integration/jms/spring-integration-jms.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd http://www.springframework.org/schema/integration/http http://www.springframework.org/schema/integration/http/spring-integration-http.xsd"> <sixml:xslt-transformer xsl-resource="classpath:com/integration/maintenance/xsl/subject.xsl"> <sixml:xslt-param name="userID" value="#{userID}"/> <sixml:xslt-param name="terminalID" expression="#{terminalID}"/> <sixml:xslt-param name="authenticationKey" value="${authenticationKey}"/> <sixml:xslt-param name="destination" value="${destination}"/> </sixml:xslt-transformer>
Приведенный выше фрагмент кода выдает следующую ошибку
21:52:03.083 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Finished creating instance of bean 'org.springframework.integration.config.ConsumerEndpointFactoryBean#9' 21:52:03.083 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.integration.xml.transformer.XsltPayloadTransformer#10' 21:52:03.083 [main] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Creating instance of bean 'org.springframework.integration.xml.transformer.XsltPayloadTransformer#10' 21:52:03.083 [main] TRACE o.s.beans.TypeConverterDelegate - Converting String to [interface org.springframework.core.io.Resource] using property editor [org.springframework.core.io.ResourceEditor@5af92aa9] 21:52:03.083 [main] TRACE o.s.b.f.s.DefaultListableBeanFactory - Ignoring constructor [public org.springframework.integration.xml.transformer.XsltPayloadTransformer(org.springframework.core.io.Resource,org.springframework.integration.xml.transformer.ResultTransformer,java.lang.String)] of bean 'org.springframework.integration.xml.transformer.XsltPayloadTransformer#10': org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.integration.xml.transformer.XsltPayloadTransformer#10': Unsatisfied dependency expressed through constructor parameter 1: Ambiguous argument values for parameter of type [org.springframework.integration.xml.transformer.ResultTransformer] - did you specify the correct bean references as arguments? 21:52:03.084 [main] TRACE o.s.beans.TypeConverterDelegate - Field [classpath:META-INF/pax/lkout/integration/maintenance/xsl/ofac_organization_v1.xsl] isn't an enum value java.lang.NoSuchFieldException: classpath:com/integration/maintenance/xsl/subject.xsl at java.lang.Class.getField(Class.java:1695) at org.springframework.beans.TypeConverterDelegate.attemptToConvertStringToEnum(TypeConverterDelegate.java:348)
Используемая версия Spring Integration - 5.0. Раньше это нормально загружалось с помощью Spring Integration 2.1. Пожалуйста, дайте некоторое представление о том, что может быть не так.
Спасибо