<?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-storage 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/2434737#M142390</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 &lt;STRONG&gt;camel-google-storage&lt;/STRONG&gt; library.&lt;/P&gt;
&lt;P&gt;For your information, I'm developing on version &lt;STRONG&gt;TOS 8.0.1.20211109_1610&lt;/STRONG&gt; and deploying on &lt;STRONG&gt;Talend Runtime (Karaf 3.11.1)&lt;/STRONG&gt; provided with it.&lt;/P&gt;
&lt;P&gt;My route is very simple, it consists of :&lt;BR /&gt;- Receiving an HTTP call (PUT &lt;A href="http://0.0.0.0:8051/put" target="_blank" rel="noopener"&gt;http://0.0.0.0:8051/put&lt;/A&gt;), with a simple JSON in the body ({"test": "test"})&lt;BR /&gt;- Pushing the message as a JSON file into a Google Storage bucket&lt;/P&gt;
&lt;P&gt;I have defined three contexts:&lt;BR /&gt;- work_gcs_serviceAccountKey: path to the service key&lt;BR /&gt;- work_gcs_bucketName: Google Storage bucket name&lt;BR /&gt;- work_gcs_bucketFolderPath: folder name inside the Google Storage bucket&lt;/P&gt;
&lt;P&gt;To store the message in the Google Storage bucket, I'm using two components :&lt;BR /&gt;- A cSetHeader component, where I've defined a CamelGoogleCloudStorageObjectName header with Simple language and value context.work_gcs_bucketFolderPath + "test_${date:now:yyyyMMdd'T'HHmmssSSS}.json".&lt;BR /&gt;- A cMessaging Endpoint component with URI "google-storage://"+context.work_gcs_bucketName+"?serviceAccountKey=file:"+context.work_gcs_serviceAccountKey&lt;/P&gt;
&lt;P&gt;Finally, in the cConfig component, I've imported two main libraries :&lt;BR /&gt;- guava-30.0-jre.jar&lt;BR /&gt;- camel-google-storage-3.11.1.jar&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;Unable to install Kar feature template_google_storage_simple-feature/0.1.0&lt;BR /&gt;org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=template_google_storage_simple-feature; type=karaf.feature; version="[0.1.0,0.1.0]"; filter:="(&amp;amp;(osgi.identity=template_google_storage_simple-feature)(type=karaf.feature)(version&amp;gt;=0.1.0)(version&amp;lt;=0.1.0))" [caused by: Unable to resolve template_google_storage_simple-feature/0.1.0: missing requirement [template_google_storage_simple-feature/0.1.0] osgi.identity; osgi.identity=camel-google-storage; type=karaf.feature]&lt;BR /&gt;at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) ~[?:?]&lt;BR /&gt;at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:401) ~[?:?]&lt;BR /&gt;at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1063) ~[?:?]&lt;BR /&gt;at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]&lt;BR /&gt;at java.lang.Thread.run(Thread.java:834) ~[?:?]&lt;BR /&gt;Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve template_google_storage_simple-feature/0.1.0: missing requirement [template_google_storage_simple-feature/0.1.0] osgi.identity; osgi.identity=camel-google-storage; type=karaf.feature&lt;BR /&gt;at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;... 12 more&lt;/P&gt;
&lt;P&gt;The route seems unable to resolve the camel-google-storage 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-storage 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:01:13 GMT</pubDate>
    <dc:creator>qdrousie59</dc:creator>
    <dc:date>2024-11-15T21:01:13Z</dc:date>
    <item>
      <title>Error while deploying a route on Karaf using the camel-google-storage 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/2434737#M142390</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 &lt;STRONG&gt;camel-google-storage&lt;/STRONG&gt; library.&lt;/P&gt;
&lt;P&gt;For your information, I'm developing on version &lt;STRONG&gt;TOS 8.0.1.20211109_1610&lt;/STRONG&gt; and deploying on &lt;STRONG&gt;Talend Runtime (Karaf 3.11.1)&lt;/STRONG&gt; provided with it.&lt;/P&gt;
&lt;P&gt;My route is very simple, it consists of :&lt;BR /&gt;- Receiving an HTTP call (PUT &lt;A href="http://0.0.0.0:8051/put" target="_blank" rel="noopener"&gt;http://0.0.0.0:8051/put&lt;/A&gt;), with a simple JSON in the body ({"test": "test"})&lt;BR /&gt;- Pushing the message as a JSON file into a Google Storage bucket&lt;/P&gt;
&lt;P&gt;I have defined three contexts:&lt;BR /&gt;- work_gcs_serviceAccountKey: path to the service key&lt;BR /&gt;- work_gcs_bucketName: Google Storage bucket name&lt;BR /&gt;- work_gcs_bucketFolderPath: folder name inside the Google Storage bucket&lt;/P&gt;
&lt;P&gt;To store the message in the Google Storage bucket, I'm using two components :&lt;BR /&gt;- A cSetHeader component, where I've defined a CamelGoogleCloudStorageObjectName header with Simple language and value context.work_gcs_bucketFolderPath + "test_${date:now:yyyyMMdd'T'HHmmssSSS}.json".&lt;BR /&gt;- A cMessaging Endpoint component with URI "google-storage://"+context.work_gcs_bucketName+"?serviceAccountKey=file:"+context.work_gcs_serviceAccountKey&lt;/P&gt;
&lt;P&gt;Finally, in the cConfig component, I've imported two main libraries :&lt;BR /&gt;- guava-30.0-jre.jar&lt;BR /&gt;- camel-google-storage-3.11.1.jar&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;Unable to install Kar feature template_google_storage_simple-feature/0.1.0&lt;BR /&gt;org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=template_google_storage_simple-feature; type=karaf.feature; version="[0.1.0,0.1.0]"; filter:="(&amp;amp;(osgi.identity=template_google_storage_simple-feature)(type=karaf.feature)(version&amp;gt;=0.1.0)(version&amp;lt;=0.1.0))" [caused by: Unable to resolve template_google_storage_simple-feature/0.1.0: missing requirement [template_google_storage_simple-feature/0.1.0] osgi.identity; osgi.identity=camel-google-storage; type=karaf.feature]&lt;BR /&gt;at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) ~[?:?]&lt;BR /&gt;at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:401) ~[?:?]&lt;BR /&gt;at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1063) ~[?:?]&lt;BR /&gt;at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]&lt;BR /&gt;at java.lang.Thread.run(Thread.java:834) ~[?:?]&lt;BR /&gt;Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve template_google_storage_simple-feature/0.1.0: missing requirement [template_google_storage_simple-feature/0.1.0] osgi.identity; osgi.identity=camel-google-storage; type=karaf.feature&lt;BR /&gt;at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[org.eclipse.osgi-3.13.300.jar:?]&lt;BR /&gt;... 12 more&lt;/P&gt;
&lt;P&gt;The route seems unable to resolve the camel-google-storage 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-storage 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:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-while-deploying-a-route-on-Karaf-using-the-camel-google/m-p/2434737#M142390</guid>
      <dc:creator>qdrousie59</dc:creator>
      <dc:date>2024-11-15T21:01:13Z</dc:date>
    </item>
  </channel>
</rss>

