<?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 Xpath function max is not working in talend runtime container in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Xpath-function-max-is-not-working-in-talend-runtime-container/m-p/2306973#M144056</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I have a very simple talend mediation route which reads a xml file and applied xpath on it.&lt;/P&gt; 
&lt;P&gt;Xpath is : "max(/Employees/Employee/DateOfJoining/dateTime(.))"&lt;/P&gt; 
&lt;P&gt;To get this working, I had to load external jar 'saxon-he-9.4.0.7.jar'. This route runs fine in talend open studio but when I deploy it in talend runtime container, it is throwing error "javax.xml.transform.TransformerException: Could not find function: max"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I know that external jar files are not embedded in OSGI bundle by default and to configure it, we need to edit route manifest.&lt;/P&gt; 
&lt;P&gt;So in 'Dependencies' tab in talend studio i checked the checkbox for this jar file and exported the route(see screenshot). But getting the same error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I put the saxon jar file in lib folder of container also tried putting it in lib\ext folder of container but no luck.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;FYI : I am using talend open studio 6.1.0 and same runtime. I also tried it in talend open studio 5.6.2 and same runtime but the issue is same over there.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I checked the manifest file after the route is exported and I can see&amp;nbsp;following&lt;/P&gt; 
&lt;P&gt;Bundle-ClassPath: .,lib/saxon-he-9.4.0.7.jar,...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please help!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:26:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T08:26:33Z</dc:date>
    <item>
      <title>Xpath function max is not working in talend runtime container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Xpath-function-max-is-not-working-in-talend-runtime-container/m-p/2306973#M144056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I have a very simple talend mediation route which reads a xml file and applied xpath on it.&lt;/P&gt; 
&lt;P&gt;Xpath is : "max(/Employees/Employee/DateOfJoining/dateTime(.))"&lt;/P&gt; 
&lt;P&gt;To get this working, I had to load external jar 'saxon-he-9.4.0.7.jar'. This route runs fine in talend open studio but when I deploy it in talend runtime container, it is throwing error "javax.xml.transform.TransformerException: Could not find function: max"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I know that external jar files are not embedded in OSGI bundle by default and to configure it, we need to edit route manifest.&lt;/P&gt; 
&lt;P&gt;So in 'Dependencies' tab in talend studio i checked the checkbox for this jar file and exported the route(see screenshot). But getting the same error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I put the saxon jar file in lib folder of container also tried putting it in lib\ext folder of container but no luck.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;FYI : I am using talend open studio 6.1.0 and same runtime. I also tried it in talend open studio 5.6.2 and same runtime but the issue is same over there.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I checked the manifest file after the route is exported and I can see&amp;nbsp;following&lt;/P&gt; 
&lt;P&gt;Bundle-ClassPath: .,lib/saxon-he-9.4.0.7.jar,...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please help!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Xpath-function-max-is-not-working-in-talend-runtime-container/m-p/2306973#M144056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Xpath function max is not working in talend runtime container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Xpath-function-max-is-not-working-in-talend-runtime-container/m-p/2306974#M144057</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Here exists a jira issue:&lt;A title="https://jira.talendforge.org/browse/TESB-14958" href="https://jira.talendforge.org/browse/TESB-14958" target="_self" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TESB-14958&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;It has been fixed on V 6.1&lt;/P&gt; 
&lt;P&gt;Could you please a look at this related topic about:&lt;A title="https://community.talend.com/t5/Design-and-Development/How-to-deploy-external-jars-to-Talend-Runtime/m-p/64624" href="https://community.qlik.com/s/feed/0D53p00007vCtYeCAK" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/How-to-deploy-external-jars-to-Talend-Runtime/m-p/64624&lt;/A&gt; to see if it is OK with you?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 07:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Xpath-function-max-is-not-working-in-talend-runtime-container/m-p/2306974#M144057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T07:54:14Z</dc:date>
    </item>
  </channel>
</rss>

