Passing XSL file in classpath to Mule XSLT Trnasformer

levis

New Member
I am trying to pass the XSL file which is located in the calsspath to Mule XSLT transformer in my flow. Bit it is giving me error.\[code\]<mule-xml:xslt-transformermaxIdleTransformers="2" maxActiveTransformers="5"xsl-file="classpath:xslt/Person_Extractor.xsl"></mule-xml:xslt-transformer>\[/code\]Given below is the error shown in Eclipse console when I tried to run this application.\[code\]********************************************************************************2013-01-18 15:00:00,596 ERROR [main] mule.MuleServer (MuleServer.java:474) - ********************************************************************************* A Fatal error has occurred while the server was running: ** Unable to load resource classpath:xslt/Person_Extractor.xsl ** (java.io.IOException) ** ** The error is fatal, the system will shutdown *********************************************************************************\[/code\]I tried all the different combinations like \[code\]classpath:/xslt/Person_Extractor.xslclasspath:\xslt\Person_Extractor.xsl \[/code\]But no luck.When I give the full physical path of the file it works fine.\[code\]<mule-xml:xslt-transformermaxIdleTransformers="2" maxActiveTransformers="5"xsl-file="c:\EWS\MyMuleProj\src\main\resources\xslt\Person_Extractor.xsl"></mule-xml:xslt-transformer>\[/code\]Please guide me.
 
Back
Top