Hi,
I have a working project when using SI 2.1.0-RELEASE and Spring 3.0.7-RELEASE. When I changed it to compile with SI 2.1.2-RELEASE and Spring 3.1.0-RELEASE, I have an error loading the spring context, which is not intuitive to track down.
I need assistance to track down what is causing this error.
The error occurs even with the @Test method and the auto wired field removed, leaving just the @ContextConfiguration and @RunWith there.
This is a sample class:
This is the context file:Code:@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = {"/sif/ws/routing-context.xml"}) public class SaajServiceNameRouterTest { // @Autowired // private SaajServiceNameRouter saajServiceNameRouter; @Test public void testDetermineServiceName() throws Exception { }
Code:<beans:beans xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.1.xsd"> <int:channel id="ws-errorMessageChannel"/> <int:channel id="ws-unknownServiceChannel"/> <int:channel id="ws-incommingPingPongChannel"/> <int:channel id="ws-sifAdminMessageChannel"/> <!-- ======================================= SIF Routing ======================================= --> <int:router id="ws-route-SaajSoapMessage-ByServiceName" input-channel="ws-inboundChannel" default-output-channel="ws-unknownServiceChannel" method="determineServiceName" ref="saajServiceNameRouter" > <int:mapping value="service1" channel="service1Channel"/> <int:mapping value="service2" channel="service2Channel"/> <int:mapping value="service3" channel="service3Channel"/> <int:mapping value="service4" channel="service4Channel"/> </int:router> <beans:bean id="saajServiceNameRouter" class="com.wfb.csts.sif.ws.message.SaajServiceNameRouter"> <beans:property name="serviceNameRouter" ref="serviceNameRouterPrefixResolver"/> </beans:bean> <beans:bean id="serviceNameRouterPrefixResolver" class="com.wfb.csts.sif.ws.message.ServiceNameRouterPrefixResolver"> </beans:bean> </beans:beans>


Reply With Quote

