PDA

View Full Version : XML Schema error



vijaynairis
May 15th, 2008, 01:45 AM
Hi,

I am using M3 release. I have configured my code like this to use an ftp-source adapter.

I keep on getting the error

org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'si:message-bus'.





<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Vijay Nair
Description: Test spring Context xml file definition for all Integration spring objects
Version: 1.0
-->
<beans:beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:si="http://www.springframework.org/schema/integration"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd">

<si:message-bus/>
<si:channel id="ftpChannel"/>
<si:annotation-driven />

<bean id="ftpSource"
class="org.springframework.integration.adapter.ftp.FtpSou rceAdapter">
<property name="host" value="10.81.1.85"/>
<property name="username" value="vijay"/>
<property name="password" value="vijay123"/>
<property name="localWorkingDirectory" value="E:/FCPBS/integration/"/>
<property name="remoteWorkingDirectory" value="E:/FCPBS/integration/ftp/"/>
<property name="channel" ref="ftpChannel"/>
<property name="period" value="30000"/>
</bean>


</beans:beans>

vijaynairis
May 15th, 2008, 03:56 AM
This has been resolved...my bad

Souheil
Mar 2nd, 2010, 05:18 AM
how did you resolved the problem please help me*