AI News Hub Logo

AI News Hub

Fixing XSLT Import Issues in MuleSoft (Works in Local but Fails in RTF Runtime)

DEV Community
sphurthi Edara

Fixing XSLT Import Issues in MuleSoft Introduction πŸ”Ή Scenario πŸ”Ή Local Setup vs Runtime Issue In the General section, I used: β€’ Inside the parent XSL, I imported the child XSL using: πŸ“Έ (Refer to the screenshot above for the exact configuration) πŸ‘‰ With this setup, the transformation worked perfectly in the local environment (Anypoint Studio). πŸ”΄ Issue in Runtime Fabric (RTF) However, when the same application was deployed to the RTF (Runtime Fabric) environment, the transformation failed with the following error: [2026-04-21 17:50:36.966] ERROR DefaultExceptionListener [[MuleRuntime].uber.03: [test].test.CPU_INTENSIVE @65f712f4] [event: ]: Message : I/O error reported by XML parser processing file:/apps/test/xslt/xsl/child.xsl: /apps/test/xslt/xsl/child.xsl (No such file or directory) πŸ’‘ Why This Happens In Anypoint Studio (local): In RTF (runtime): πŸ‘‰ That’s why the child XSL cannot be found in runtime πŸ”΄ Failed Approaches Using classpath inside parent XSL Message : I/O error reported by XML parser processing classpath:/xslt.xsl/child.xsl: unknown protocol: classpath Using relative path Message : I/O error reported by XML parser processing file:/tmp/child.xsl: /tmp/child.xsl (No such file or directory) Using absolute path Message : I/O error reported by XML parser processing file:/xslt/child.xsl: /xslt/child.xsl (No such file or directory) βœ… Final Working Solution xml-module:xslt /xml-module:xslt βœ” Step 2: Use classpath inside parent XSL βœ” Step 3: Ensure correct folder structure βœ” Step 4: Match Mule XML Module dependency with runtime πŸ‘‰ Important: Dependency version must align with your Mule runtime. πŸ’‘ Bonus Insight πŸ”Ή Conclusion ✍️ Author https://www.linkedin.com/in/sphurthi-edara/