Hi,
In the past, when working without internet access, I had the XSDs in the
classpath and removed the line that starts with "xsi:schemalocation"
which worked. Perhaps you need to remove the schema location for SFTP?
HTH
A
Pascal Alma wrote:
> Hi,
>
> I am trying to get the sftp transport to work in Mule version 2.2. However I am stuck at the part the Mule has to find the xsd for the sftp transport. I keep getting the following error when trying to run the unit test 'SftpLargeReceiveFunctionalTestCase':
> cvc-complex-type.2.4.a: Invalid content was found starting with element 'sftp:connector'. One of '{"
http://www.mulesource.org/schema/mule/core/2.2":description, "
http://www.springframework.org/schema/beans":beans, "
http://www.springframework.org/schema/beans":bean, "
http://www.springframework.org/schema/context":property-placeholder, "
http://www.mulesource.org/schema/mule/core/2.2":global-property, "
http://www.mulesource.org/schema/mule/core/2.2":configuration, "
http://www.mulesource.org/schema/mule/core/2.2":notifications, "
http://www.mulesource.org/schema/mule/core/2.2":abstract-extension, "
http://www.mulesource.org/schema/mule/core/2.2":abstract-security-manager, "
http://www.mulesource.org/schema/mule/core/2.2":abstract-transaction-manager, "
http://www.mulesource.org/schema/mule/core/2.2":abstract-connector, "
http://www.mulesource.org/schema/mule/core/2.2":abstract-global-endpoint, "
http://www.mulesource.org/schema/mule/core/2.2":abstract-transformer, "
http://www.mulesource.org/schema/mule/core/2.2":abstract-filter, "
http://www.mulesource.org/schema/mule/core/2.2":abstract-model, "
http://www.mulesource.org/schema/mule/core/2.2":abstract-interceptor-stack}' is expected.
>
> So the real question for now is how do I refer to the 'local' location of the xsd in my mule-config file. I have edited the XSD so the namespace match '
http://www.mulesource.org/schema/mule/sftp/2.2'. I hoped that adding it to the classpath would be sufficient but unfortunately that is not the case. Any help is welcome!
>
> Here is part of my config:
> <?xml version="1.0" encoding="UTF-8"?>
> <mule xmlns="
http://www.mulesource.org/schema/mule/core/2.2"
> xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
> xmlns:spring="
http://www.springframework.org/schema/beans"
> xmlns:sftp="
http://www.mulesource.org/schema/mule/sftp/2.2"
> xmlns:vm="
http://www.mulesource.org/schema/mule/vm/2.2"
> xsi:schemaLocation="
>
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd>
http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd>
http://www.mulesource.org/schema/mule/sftp/2.2 file///mule-sftp.xsd
>
http://www.mulesource.org/schema/mule/vm/2.2 http://www.mulesource.org/schema/mule/vm/2.2/mule-vm.xsd">
>
> <sftp:connector name="sftp" pollingFrequency="20000" autoDelete="true">
> <custom-exception-strategy
> class="org.mule.tck.functional.QuietExceptionStrategy" />
> </sftp:connector>
> ....
> </mule>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>
http://xircles.codehaus.org/manage_email>
>
>
>
>
--
Antoine Borg, Senior Consultant | Tel: +32 28 504 696
ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM
See our full schedule of Mule and Android courses:
http://www.ricston.com/courses/schedules/email:
_antoine.borg_@... <mailto:
antoine.borg@...> |
blog: blog.ricston.com <
http://blog.ricston.com> | web: ricston.com
<
http://www.ricston.com/>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email