<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Spring configuration in Talend ESB (SE) cannot reference resources in the runtime environment. in Installing and Upgrading</title>
    <link>https://community.qlik.com/t5/Installing-and-Upgrading/Spring-configuration-in-Talend-ESB-SE-cannot-reference-resources/m-p/2381054#M3978</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We have redirected your issue to our ESB experts and then come back to you as soon as we can.&lt;/P&gt;
&lt;P&gt;Thank you for your time.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 05:01:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-28T05:01:28Z</dc:date>
    <item>
      <title>Spring configuration in Talend ESB (SE) cannot reference resources in the runtime environment.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Spring-configuration-in-Talend-ESB-SE-cannot-reference-resources/m-p/2381053#M3977</link>
      <description>&lt;P&gt;I'm migrating a route that uses a resource file from within the spring configuration. In 6.5.1 this worked fine, but in 7.1.1 it cannot find the resource, despite the fact that it is included in the .jar file. This seems to be something in the way that Spring is now run from within Blueprint, and I read lots of things about OSGi using different ClassLoaders and problems therein.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As an alternative approach, I've tried instantiating a ClassLoader bean in Spring and using the getResourceAsStream method directly, but even this doesn't work - presumably because I'm getting the "wrong" ClassLoader.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If I do this from within the generated java class, as a processor (i.e. this.getClass().getClassLoader().getResourceAsStream("my/resource.txt") ) it can find it, but if I try using the Spring PathMatchingResourcePatternResolver it works fine in Studio but breaks when deployed to runtime, with an error stating that the bundle-resource isn't part of the filesystem. (The resources are found as actual files in the filesystem when run from the studio.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is this a fault in Spring itself, or in the way Talend is wrapping Spring within Blueprint?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How should I reference a route resource from within the Spring configuration in ESB 7.1.1?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Spring-configuration-in-Talend-ESB-SE-cannot-reference-resources/m-p/2381053#M3977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Spring configuration in Talend ESB (SE) cannot reference resources in the runtime environment.</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/Spring-configuration-in-Talend-ESB-SE-cannot-reference-resources/m-p/2381054#M3978</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We have redirected your issue to our ESB experts and then come back to you as soon as we can.&lt;/P&gt;
&lt;P&gt;Thank you for your time.&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 05:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/Spring-configuration-in-Talend-ESB-SE-cannot-reference-resources/m-p/2381054#M3978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-28T05:01:28Z</dc:date>
    </item>
  </channel>
</rss>

