<?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: Configuration problem: Unable to locate Spring NamespaceHandler for XM in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311709#M82728</link>
    <description>Hi xldai, 
&lt;BR /&gt;I removed the cConfig and export it to karaf. I still got the same error. 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Unable to resolve root: missing requirement&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;Thanks for suggesting to use Job, instead of Route. But, our company has some Camel projects which want to migrate into Talend and we want to keep the technology. This is my proof of concept project. I was following the link below to do it. Can you tell me what is missing in karaf or the kar? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks again! 
&lt;BR /&gt;email3888</description>
    <pubDate>Fri, 24 Mar 2017 03:42:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-24T03:42:43Z</dc:date>
    <item>
      <title>Configuration problem: Unable to locate Spring NamespaceHandler for XM</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311702#M82721</link>
      <description>After I added the code in bold at the Spring, I got the above error. 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt; 
&lt;BR /&gt;&amp;lt;!--Used to inject external resources, beans or define more CamelContext and RouteBuilder here--&amp;gt; 
&lt;BR /&gt;&amp;lt;beans xmlns="" 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns:xsi="" 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns:camel="" 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlns:context="" 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;B&gt;xmlns&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;sgi=""&lt;/B&gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xsi:schemaLocation=" 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;BR /&gt; &amp;nbsp; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;bean id="jmxEventNotifier" class="org.apache.camel.management.JmxNotificationEventNotifier" &amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="source" value="DemoDatasource" /&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="ignoreCamelContextEvents" value="true" /&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="ignoreRouteEvents" value="true" /&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="ignoreServiceEvents" value="true" /&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;property name="ignoreExchangeEvents" value="true" /&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/bean&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 
&lt;B&gt;&amp;lt;osgi:reference id="demoDS" interface="javax.sql.DataSource" filter="(osgi.jndi.service.name=jdb-TRNG)"/&amp;gt;&lt;/B&gt; 
&lt;BR /&gt;&amp;lt;/beans&amp;gt; 
&lt;BR /&gt;Anyone have any idea how to fix it? 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;email3888</description>
      <pubDate>Sat, 16 Nov 2024 09:59:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311702#M82721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration problem: Unable to locate Spring NamespaceHandler for XM</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311703#M82722</link>
      <description>Hi,
&lt;BR /&gt;The namespace handler for Spring-DM is defined in the spring-osgi-core/1.2.1 jar, it could not be loaded automatically when you add osgi:reference into the Spring xml in the Studio, that's why you got the "Unable to locate Spring NamespaceHandler ...".
&lt;BR /&gt;If you want to reference a DataSource using Spring-DM, you have to export/publish the Route into Talend Runtime (OSGi container), the Runtime container has the spring-osgi-core/1.2.1 and its dependences pre-installed. also you need to deploy the DataSource "
&lt;B&gt;demoDS&lt;/B&gt;" before deploy the Route.
&lt;BR /&gt;(you may add a cConfig component and add spring-osgi-core-1.2.1.jar into it from Studio to solve the "Unable to locate Spring NamespaceHandler ...", but it's not the expected way for Spring-DM use case)
&lt;BR /&gt;Regards.</description>
      <pubDate>Sat, 18 Mar 2017 03:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311703#M82722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-18T03:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration problem: Unable to locate Spring NamespaceHandler for XM</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311704#M82723</link>
      <description>Thanks xldai! I added the cConfig and&amp;nbsp;passed thru that error. I got another error. Is it related to the version of the jar? 
&lt;BR /&gt;Unexpected exception parsing XML document from class path resource ; nested exception is org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class for namespace []: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/osgi/framework/ServiceReference 
&lt;BR /&gt;org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource ; nested exception is org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class for namespace []: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/osgi/framework/ServiceReference 
&lt;BR /&gt; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:413) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:335) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303) 
&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174) 
&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209) 
&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180) 
&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:243) 
&lt;BR /&gt; at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:127) 
&lt;BR /&gt; at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:93) 
&lt;BR /&gt; at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) 
&lt;BR /&gt; at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:539) 
&lt;BR /&gt; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451) 
&lt;BR /&gt; at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:139) 
&lt;BR /&gt; at org.springframework.context.support.ClassPathXmlApplicationContext.&amp;lt;init&amp;gt;(ClassPathXmlApplicationContext.java:83) 
&lt;BR /&gt; at demo_project.demodatasource_0_1.DemoDatasource$2.createContext(DemoDatasource.java:204) 
&lt;BR /&gt; at org.apache.camel.main.Main.getCamelContextMap(Main.java:148) 
&lt;BR /&gt; at org.apache.camel.main.MainSupport.postProcessContext(MainSupport.java:386) 
&lt;BR /&gt; at org.apache.camel.main.Main.doStart(Main.java:124) 
&lt;BR /&gt; at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61) 
&lt;BR /&gt; at org.apache.camel.main.MainSupport.run(MainSupport.java:124) 
&lt;BR /&gt; at demo_project.demodatasource_0_1.DemoDatasource.run(DemoDatasource.java:270) 
&lt;BR /&gt; at demo_project.demodatasource_0_1.DemoDatasource.runJobInTOS(DemoDatasource.java:332) 
&lt;BR /&gt; at demo_project.demodatasource_0_1.DemoDatasource.main(DemoDatasource.java:302) 
&lt;BR /&gt;Caused by: org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class for namespace []: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/osgi/framework/ServiceReference 
&lt;BR /&gt; at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:139) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1427) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1422) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:187) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:147) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:101) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:495) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391) 
&lt;BR /&gt; ... 22 more 
&lt;BR /&gt;Caused by: java.lang.NoClassDefFoundError: org/osgi/framework/ServiceReference 
&lt;BR /&gt; at org.springframework.osgi.config.CollectionBeanDefinitionParser.&amp;lt;clinit&amp;gt;(CollectionBeanDefinitionParser.java:78) 
&lt;BR /&gt; at org.springframework.osgi.config.OsgiNamespaceHandler.init(OsgiNamespaceHandler.java:40) 
&lt;BR /&gt; at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:130) 
&lt;BR /&gt; ... 29 more 
&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.osgi.framework.ServiceReference 
&lt;BR /&gt; at java.net.URLClassLoader.findClass(Unknown Source) 
&lt;BR /&gt; at java.lang.ClassLoader.loadClass(Unknown Source) 
&lt;BR /&gt; at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) 
&lt;BR /&gt; at java.lang.ClassLoader.loadClass(Unknown Source) 
&lt;BR /&gt; ... 32 more</description>
      <pubDate>Sat, 18 Mar 2017 15:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311704#M82723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-18T15:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration problem: Unable to locate Spring NamespaceHandler for XM</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311705#M82724</link>
      <description>Hi&amp;nbsp; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;xldai,&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;I added more jars in cConfig as in the screenshot. My current error is&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Error creating bean with name 'trngDS': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Required 'bundleContext' property was not set. Can you help me to solve it?&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;Thanks in advanced!&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;email3888&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDkm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129666iE30CB13CD27A3957/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDkm.png" alt="0683p000009MDkm.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 21 Mar 2017 17:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311705#M82724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-21T17:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration problem: Unable to locate Spring NamespaceHandler for XM</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311706#M82725</link>
      <description>Hi&lt;BR /&gt;Well, are you expected running the Route within Studio? What I suggested is based on the DataSource is deployed in Runtime, also the Route is running in the Runtime container.&lt;BR /&gt;I've never tried the Route + DataSource running in Studio, if you want to try you don't need to introduce the &lt;B&gt;osgi:reference &lt;/B&gt;, you can define the DataSource bean in the same spring.&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 22 Mar 2017 07:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311706#M82725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-22T07:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration problem: Unable to locate Spring NamespaceHandler for XM</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311707#M82726</link>
      <description>Hi xldai, 
&lt;BR /&gt;I am not expected to run in Studio, but at least there is no compilation error. I think there will be runtime error (at least for the datasource) 
&lt;BR /&gt;I tried to deploy to Karaf. I got this error. 
&lt;BR /&gt;karaf@trun()&amp;gt; feature:install TestDatasource-feature 
&lt;BR /&gt; ERROR org.apache.karaf.shell.support.ShellUtil - Exception caught while executing command 
&lt;BR /&gt;org.osgi.service.resolver.ResolutionException:&amp;nbsp; 
&lt;BR /&gt;Unable to resolve root: missing requirement 
&lt;BR /&gt;&amp;nbsp; osgi.identity; osgi.identity=TestDatasource-feature; type=karaf.feature; version=""; filter:="(&amp;amp;(osgi.identity=TestDatasource-feature)(type=karaf.feature)(version&amp;gt;=0.1.0)(version&amp;lt;=0.1.0))" osgi.identity; osgi.identity=demo_project.TestDatasource; type=osgi.bundle; version=""; resolution:=mandatory osgi.wiring.package; filter:="(osgi.wiring.package=org.osgi)"]] 
&lt;BR /&gt;Thanks very much for looking into it. 
&lt;BR /&gt;email3888</description>
      <pubDate>Wed, 22 Mar 2017 16:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311707#M82726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-22T16:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration problem: Unable to locate Spring NamespaceHandler for XM</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311708#M82727</link>
      <description>Hi,
&lt;BR /&gt;OK. if you expect running the Route in Runtime container, you need to "Build Route"/"Publish" it, that will be no any compilation error from Studio. the compilation error you mentioned only happening when you try to "Run" the route within Studio. So please remove the cConfig component or remove the spring-osgi-core, org.osgi.core lib from the cConfig then "Build Route"/"Publish" it.
&lt;BR /&gt;We are not sure if Route + Datasource (your use case) is fully supported. as alternative suggestion, you may create a Job using tXXXConnection (e.g tMySQLConnection) and "Specify a data source alias", and invoke this Job using cTalendJob component in your Route.
&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 24 Mar 2017 02:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311708#M82727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T02:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration problem: Unable to locate Spring NamespaceHandler for XM</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311709#M82728</link>
      <description>Hi xldai, 
&lt;BR /&gt;I removed the cConfig and export it to karaf. I still got the same error. 
&lt;BR /&gt; 
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Unable to resolve root: missing requirement&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt;Thanks for suggesting to use Job, instead of Route. But, our company has some Camel projects which want to migrate into Talend and we want to keep the technology. This is my proof of concept project. I was following the link below to do it. Can you tell me what is missing in karaf or the kar? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks again! 
&lt;BR /&gt;email3888</description>
      <pubDate>Fri, 24 Mar 2017 03:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311709#M82728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T03:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration problem: Unable to locate Spring NamespaceHandler for XM</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311710#M82729</link>
      <description>I uploaded the simple project with 3 components. Can you see if it works on your system?
&lt;BR /&gt;Thanks,
&lt;BR /&gt;email3888
&lt;BR /&gt;DemoDatasource.zip.zip</description>
      <pubDate>Fri, 24 Mar 2017 18:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Configuration-problem-Unable-to-locate-Spring-NamespaceHandler/m-p/2311710#M82729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-24T18:38:14Z</dc:date>
    </item>
  </channel>
</rss>

