Error in accessing remote Services

Four Stars

Error in accessing remote Services

i have deployed Rest Webservice with ServiceLocator Checkbox enabled. Locator server is running in this host


in another server i have RestConsumer which consumes the above rest service. Here i have checked the ServiceLocator checkbox and in relative path i have given "/customers/"+input.number\ and seviceName DemoRest. In this runtime i have not started the Locator server.


when i tried to run this job i am getting below exception. Can anyone can help me in this configuration.



karaf@trun()> Exception in component tRESTClient_1 (DemoRESTConsumer)
java.lang.IllegalStateException: No endpoint found in Service Locator for servic
e {}DemoREST
at org.talend.esb.servicelocator.cxf.internal.LocatorTargetSelector.setA
at org.talend.esb.servicelocator.cxf.internal.LocatorTargetSelector.prep
at org.apache.cxf.jaxrs.client.ClientConfiguration.prepareConduitSelecto
at org.apache.cxf.jaxrs.client.ClientConfiguration.getConduit(ClientConf
at org.apache.cxf.jaxrs.client.ClientConfiguration.getHttpConduit(Client
at demoproject.demorestconsumer_0_1.DemoRESTConsumer.tFixedFlowInput_1Pr
at demoproject.demorestconsumer_0_1.DemoRESTConsumer.runJobInTOS(DemoRES
at org.talend.esb.job.controller.internal.SimpleJobTask$
at java.util.concurrent.Executors$ Source)
at Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$ Source)
at Source)







Re: Error in accessing remote Services


What's your ESB environment? Are you able to run the consumer in the sudio?

Best regards


Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs