<?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 Error while deploying a route on Karaf using the camel-google-pubsub library (TOS 8.0.1.20211109_1610) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-while-deploying-a-route-on-Karaf-using-the-camel-google/m-p/2437350#M142392</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;Today, I'm reaching out to the community regarding a deployment issue on Karaf of a route using the camel-google-pubsub library.&lt;/P&gt;
&lt;P&gt;For your information, I'm developing on version TOS 8.0.1.20211109_1610 and deploying on Talend Runtime (Karaf 3.11.1) provided with it.&lt;/P&gt;
&lt;P&gt;My route is very simple, it consists of :&lt;BR /&gt;- Receiving a Google PubSub Message&lt;BR /&gt;- Displaying the message in console log&lt;/P&gt;
&lt;P&gt;I have defined three contexts:&lt;BR /&gt;- work_pubsub_in_project: GCP project name&lt;BR /&gt;- work_pubsub_in_subscription: Google PubSub subscription name&lt;BR /&gt;- work_pubsub_in_serviceAccountKey: path to the service key&lt;/P&gt;
&lt;P&gt;To receive the Google PubSub message, I'm using one component :&lt;BR /&gt;- A cMessaging Endpoint component with URI "google-pubsub://"+context.work_pubsub_in_project+":"+context.work_pubsub_in_subscription+"?serviceAccountKey=file:"+context.work_pubsub_in_serviceAccountKey&lt;/P&gt;
&lt;P&gt;Finally, in the cConfig component, I've imported lots of libraries (see attached screenshots).&lt;/P&gt;
&lt;P&gt;In the Studio, the route works without any issue.&lt;BR /&gt;But I can't deploy it on the Talend Runtime (Karaf) provided with the Studio.&lt;/P&gt;
&lt;P&gt;I get this error during deployment (placing the kar file in the deploy folder after startup):&lt;/P&gt;
&lt;P&gt;14:00:23.989 WARN [Delayed kar deployment] Unable to install Kar feature template_google_pubsub-feature/0.1.0 org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=template_google_pubsub-feature; type=karaf.feature; version="[0.1.0,0.1.0]"; filter:="(&amp;amp;(osgi.identity=template_google_pubsub-feature)(type=karaf.feature)(version&amp;gt;=0.1.0)(version&amp;lt;=0.1.0))" [caused by: Unable to resolve template_google_pubsub-feature/0.1.0: missing requirement [template_google_pubsub-feature/0.1.0] osgi.identity; osgi.identity=camel-google-pubsub; type=karaf.feature] at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.13.300.jar:?] at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392) ~[org.eclipse.osgi-3.13.300.jar:?] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378) ~[org.eclipse.osgi-3.13.300.jar:?] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332) ~[org.eclipse.osgi-3.13.300.jar:?] at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) ~[?:?] at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:401) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1063) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] at java.lang.Thread.run(Thread.java:834) ~[?:?] Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve template_google_pubsub-feature/0.1.0: missing requirement [template_google_pubsub-feature/0.1.0] osgi.identity; osgi.identity=camel-google-pubsub; type=karaf.feature at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.13.300.jar:?] ... 12 more&lt;/P&gt;
&lt;P&gt;The route seems unable to resolve the camel-google-pubsub feature.&lt;BR /&gt;I've tried several fixes, including on the pom.xml file by manually adding dependencies but it doesn't work.&lt;BR /&gt;And I can't directly install the camel-google-pubsub feature on Karaf.&lt;/P&gt;
&lt;P&gt;Do you have any suggestions for me?&lt;BR /&gt;I'm attaching the export of the route elements.&lt;/P&gt;
&lt;P&gt;Thanks in advance and have a great day!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:00:51 GMT</pubDate>
    <dc:creator>qdrousie59</dc:creator>
    <dc:date>2024-11-15T21:00:51Z</dc:date>
    <item>
      <title>Error while deploying a route on Karaf using the camel-google-pubsub library (TOS 8.0.1.20211109_1610)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-while-deploying-a-route-on-Karaf-using-the-camel-google/m-p/2437350#M142392</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;Today, I'm reaching out to the community regarding a deployment issue on Karaf of a route using the camel-google-pubsub library.&lt;/P&gt;
&lt;P&gt;For your information, I'm developing on version TOS 8.0.1.20211109_1610 and deploying on Talend Runtime (Karaf 3.11.1) provided with it.&lt;/P&gt;
&lt;P&gt;My route is very simple, it consists of :&lt;BR /&gt;- Receiving a Google PubSub Message&lt;BR /&gt;- Displaying the message in console log&lt;/P&gt;
&lt;P&gt;I have defined three contexts:&lt;BR /&gt;- work_pubsub_in_project: GCP project name&lt;BR /&gt;- work_pubsub_in_subscription: Google PubSub subscription name&lt;BR /&gt;- work_pubsub_in_serviceAccountKey: path to the service key&lt;/P&gt;
&lt;P&gt;To receive the Google PubSub message, I'm using one component :&lt;BR /&gt;- A cMessaging Endpoint component with URI "google-pubsub://"+context.work_pubsub_in_project+":"+context.work_pubsub_in_subscription+"?serviceAccountKey=file:"+context.work_pubsub_in_serviceAccountKey&lt;/P&gt;
&lt;P&gt;Finally, in the cConfig component, I've imported lots of libraries (see attached screenshots).&lt;/P&gt;
&lt;P&gt;In the Studio, the route works without any issue.&lt;BR /&gt;But I can't deploy it on the Talend Runtime (Karaf) provided with the Studio.&lt;/P&gt;
&lt;P&gt;I get this error during deployment (placing the kar file in the deploy folder after startup):&lt;/P&gt;
&lt;P&gt;14:00:23.989 WARN [Delayed kar deployment] Unable to install Kar feature template_google_pubsub-feature/0.1.0 org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=template_google_pubsub-feature; type=karaf.feature; version="[0.1.0,0.1.0]"; filter:="(&amp;amp;(osgi.identity=template_google_pubsub-feature)(type=karaf.feature)(version&amp;gt;=0.1.0)(version&amp;lt;=0.1.0))" [caused by: Unable to resolve template_google_pubsub-feature/0.1.0: missing requirement [template_google_pubsub-feature/0.1.0] osgi.identity; osgi.identity=camel-google-pubsub; type=karaf.feature] at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.13.300.jar:?] at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392) ~[org.eclipse.osgi-3.13.300.jar:?] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378) ~[org.eclipse.osgi-3.13.300.jar:?] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332) ~[org.eclipse.osgi-3.13.300.jar:?] at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) ~[?:?] at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:401) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1063) ~[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] at java.lang.Thread.run(Thread.java:834) ~[?:?] Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve template_google_pubsub-feature/0.1.0: missing requirement [template_google_pubsub-feature/0.1.0] osgi.identity; osgi.identity=camel-google-pubsub; type=karaf.feature at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.13.300.jar:?] ... 12 more&lt;/P&gt;
&lt;P&gt;The route seems unable to resolve the camel-google-pubsub feature.&lt;BR /&gt;I've tried several fixes, including on the pom.xml file by manually adding dependencies but it doesn't work.&lt;BR /&gt;And I can't directly install the camel-google-pubsub feature on Karaf.&lt;/P&gt;
&lt;P&gt;Do you have any suggestions for me?&lt;BR /&gt;I'm attaching the export of the route elements.&lt;/P&gt;
&lt;P&gt;Thanks in advance and have a great day!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-while-deploying-a-route-on-Karaf-using-the-camel-google/m-p/2437350#M142392</guid>
      <dc:creator>qdrousie59</dc:creator>
      <dc:date>2024-11-15T21:00:51Z</dc:date>
    </item>
  </channel>
</rss>

