Using Smooks transformer in Mule 3.4 CE
I'm trying to use smooks 1.5 to transform a csv file to xml. I have
already imported all smooks jar, but getting this error
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration >problem: Unable to locate NamespaceHandler for namespace
>>[http://www.muleforge.org/smooks/schema/mule-module-smooks] Offending
resource: URL
>>[file:/D:/Documents/MuleStudio/workspace/.mule/apps/smooksapp/SmooksApp.xml]
This is my mule-config file
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:file="http://www.mulesoft.org/schema/mule/file"
xmlns:smooks="http://www.muleforge.org/smooks/schema/mule-module-smooks"
xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/file
http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
http://www.muleforge.org/smooks/schema/mule-module-smooks
http://dist.muleforge.org/smooks/schema/mule-module-smooks/1.3/mule-module-smooks.xsd">
<flow name="SmooksAppFlow1" doc:name="SmooksAppFlow1">
<file:inbound-endpoint
path="D:\Documents\MuleStudio\workspace\smooksapp\src\main\resources"
responseTimeout="10000" doc:name="File"/>
<smooks:transformer name="csvToXmlSmooksTransformer"
configFile="D:\Documents\MuleStudio\workspace\smooksapp\src\main\resources\smooks-config.xml"
resultType="STRING" reportPath="target/smooks-report/report.html"
/>
<file:outbound-endpoint responseTimeout="10000" doc:name="File"
path="D:\Documents\MuleStudio\workspace\smooksapp\src\main\resources"/>
</flow>
</mule>
No comments:
Post a Comment