<?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: cREST with ResourceClass not working on Talend ESB 7.1.1.20181026_1147 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/cREST-with-ResourceClass-not-working-on-Talend-ESB-7-1-1/m-p/2241678#M28752</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;What's your main goal? Do you want to create a Resource Class to call a REST service?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 07:59:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-04-10T07:59:35Z</dc:date>
    <item>
      <title>cREST with ResourceClass not working on Talend ESB 7.1.1.20181026_1147</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cREST-with-ResourceClass-not-working-on-Talend-ESB-7-1-1/m-p/2241676#M28750</link>
      <description>&lt;P&gt;Talend&amp;nbsp;ESB 7.1.1.20181026_1147&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My route doesn't work when I try to use a Bean in Resource Class within a cREST component. Here's the error :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;org.apache.camel.FailedToCreateRouteException: Failed to create route test4_cREST_1: Route(test4_cREST_1)[[From[cxfrs://http://127.0.0.1:xxxxxx@0... because of Failed to resolve endpoint: cxfrs://http://127.0.0.1:8191/testAPI?cxfRsEndpointConfigurer=%23endpointConfigurer_cREST_1&amp;amp;features=%23features_cREST_1&amp;amp;inInterceptors=%23inInterceptors_cREST_1&amp;amp;loggingFeatureEnabled=false&amp;amp;outInterceptors=%23outInterceptors_cREST_1&amp;amp;properties=%23properties_cREST_1&amp;amp;providers=%23providers&amp;amp;resourceClasses=minsoc.test4_0_1.test4%24Service_cREST_1 due to: minsoc.test4_0_1.test4$Service_cREST_1
org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route test4_cREST_1: Route(test4_cREST_1)[[From[cxfrs://http://127.0.0.1:xxxxxx@0... because of Failed to resolve endpoint: cxfrs://http://127.0.0.1:8191/testAPI?cxfRsEndpointConfigurer=%23endpointConfigurer_cREST_1&amp;amp;features=%23features_cREST_1&amp;amp;inInterceptors=%23inInterceptors_cREST_1&amp;amp;loggingFeatureEnabled=false&amp;amp;outInterceptors=%23outInterceptors_cREST_1&amp;amp;properties=%23properties_cREST_1&amp;amp;providers=%23providers&amp;amp;resourceClasses=minsoc.test4_0_1.test4%24Service_cREST_1 due to: minsoc.test4_0_1.test4$Service_cREST_1
	at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1830)
	at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:136)
	at org.apache.camel.main.Main.doStart(Main.java:139)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.main.MainSupport.run(MainSupport.java:170)
	at minsoc.test4_0_1.test4.run(test4.java:385)
	at minsoc.test4_0_1.test4.runJobInTOS(test4.java:482)
	at minsoc.test4_0_1.test4.main(test4.java:452)
Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route test4_cREST_1: Route(test4_cREST_1)[[From[cxfrs://http://127.0.0.1:xxxxxx@0... because of Failed to resolve endpoint: cxfrs://http://127.0.0.1:8191/testAPI?cxfRsEndpointConfigurer=%23endpointConfigurer_cREST_1&amp;amp;features=%23features_cREST_1&amp;amp;inInterceptors=%23inInterceptors_cREST_1&amp;amp;loggingFeatureEnabled=false&amp;amp;outInterceptors=%23outInterceptors_cREST_1&amp;amp;properties=%23properties_cREST_1&amp;amp;providers=%23providers&amp;amp;resourceClasses=minsoc.test4_0_1.test4%24Service_cREST_1 due to: minsoc.test4_0_1.test4$Service_cREST_1
	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:209)
	at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:1145)
	at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:3731)
	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:3445)
	at org.apache.camel.impl.DefaultCamelContext.access$000(DefaultCamelContext.java:209)
	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3253)
	at org.apache.camel.impl.DefaultCamelContext$2.call(DefaultCamelContext.java:3249)
	at org.apache.camel.impl.DefaultCamelContext.doWithDefinedClassLoader(DefaultCamelContext.java:3272)
	at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:3249)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:3165)
	at org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:133)
	... 6 more
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: cxfrs://http://127.0.0.1:8191/testAPI?cxfRsEndpointConfigurer=%23endpointConfigurer_cREST_1&amp;amp;features=%23features_cREST_1&amp;amp;inInterceptors=%23inInterceptors_cREST_1&amp;amp;loggingFeatureEnabled=false&amp;amp;outInterceptors=%23outInterceptors_cREST_1&amp;amp;properties=%23properties_cREST_1&amp;amp;providers=%23providers&amp;amp;resourceClasses=minsoc.test4_0_1.test4%24Service_cREST_1 due to: minsoc.test4_0_1.test4$Service_cREST_1
	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:758)
	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80)
	at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:219)
	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:115)
	at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:121)
	at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:69)
	at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:97)
	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1283)
	at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:204)
	... 17 more
Caused by: java.lang.ClassNotFoundException: minsoc.test4_0_1.test4$Service_cREST_1
	at org.apache.camel.impl.DefaultClassResolver.resolveMandatoryClass(DefaultClassResolver.java:80)
	at org.apache.camel.component.cxf.jaxrs.CxfRsComponent.createEndpoint(CxfRsComponent.java:111)
	at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:126)
	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:711)
	... 25 more&lt;/PRE&gt; 
&lt;P&gt;Here is my bean :&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;package beans;

import org.apache.camel.CamelContext;
import org.apache.cxf.jaxrs.ext.multipart.MultipartBody;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.Consumes;

public interface test_insee {

	@javax.ws.rs.Path("/siren/{siren}")
	@javax.ws.rs.GET()
	@javax.ws.rs.Produces({"application/xml"})
	Object getSiren(
			@javax.ws.rs.PathParam("siren") String siren);
	
	@javax.ws.rs.Path("/siren/{siren}/{debut}/{nombre}")
	@javax.ws.rs.GET()
	@javax.ws.rs.Produces({"application/xml"})
	Object getEtabs(
			@javax.ws.rs.PathParam("siren") String siren,
			@javax.ws.rs.PathParam("debut") String debut,
			@javax.ws.rs.PathParam("nombre") String nombre);
	
	@javax.ws.rs.Path("/siret/{siret}")
	@javax.ws.rs.GET()
	@javax.ws.rs.Produces({"application/xml"})
	Object getSiret(
			@javax.ws.rs.PathParam("siret") String siret);
	
	@javax.ws.rs.Path("/test/{uid_agrement}/pieces_jointes/")
	@javax.ws.rs.POST()
	@javax.ws.rs.Consumes({ "multipart/form-data" })
	@javax.ws.rs.Produces("application/json; charset=UTF-8")
	Object postPieceJointe(
			@javax.ws.rs.PathParam("uid_organisme") String uid_organisme,
			MultipartBody payload);
}&lt;/PRE&gt; 
&lt;P&gt;And here my simple route.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran de 2019-04-08 16-42-25.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3ZR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151247iCF1A0527C1FAB810/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3ZR.png" alt="0683p000009M3ZR.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:07:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cREST-with-ResourceClass-not-working-on-Talend-ESB-7-1-1/m-p/2241676#M28750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: cREST with ResourceClass not working on Talend ESB 7.1.1.20181026_1147</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cREST-with-ResourceClass-not-working-on-Talend-ESB-7-1-1/m-p/2241677#M28751</link>
      <description>&lt;P&gt;We have the exact same problem. so bump. Anxious to see the answer&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2019 16:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cREST-with-ResourceClass-not-working-on-Talend-ESB-7-1-1/m-p/2241677#M28751</guid>
      <dc:creator>jonlar</dc:creator>
      <dc:date>2019-04-09T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: cREST with ResourceClass not working on Talend ESB 7.1.1.20181026_1147</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cREST-with-ResourceClass-not-working-on-Talend-ESB-7-1-1/m-p/2241678#M28752</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;What's your main goal? Do you want to create a Resource Class to call a REST service?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Sabrina&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 07:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cREST-with-ResourceClass-not-working-on-Talend-ESB-7-1-1/m-p/2241678#M28752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-10T07:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: cREST with ResourceClass not working on Talend ESB 7.1.1.20181026_1147</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cREST-with-ResourceClass-not-working-on-Talend-ESB-7-1-1/m-p/2241679#M28753</link>
      <description>&lt;P&gt;Hello Sabrina, thanks for replying,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Resource Class is already created (The bean I embedded in the post). My main goal is to consume a POST request of form Multipart. I know the component&amp;nbsp;cREST has this option if I choose the type "Manual", the problem is that this way consumes an object of type&amp;nbsp;org.w3c.dom.Document and I want to consume another object, in this case of type&amp;nbsp;org.apache.cxf.jaxrs.ext.multipart.MultipartBody, that's why I'm using my Bean in the Resource Class.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's weird, because the same route works in Talend ESB version&amp;nbsp;6.3.2.20170902_1316.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 09:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cREST-with-ResourceClass-not-working-on-Talend-ESB-7-1-1/m-p/2241679#M28753</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-10T09:44:19Z</dc:date>
    </item>
  </channel>
</rss>

