One Star

Deploy Talend ESB Web Service in Tomcat

Hello,
I am trying to deploy a Web Service I created with Talend ESB on Tomcat, but I do not seem to find a way to do it.
I have been searching for some online information and I have had a look at the examples provided with the Talend distribution, but it uses other types of examples, not Talend generated classes.
Could anyone point me in the right way to achieve this? I would like to be able to reuse the code generated from Talend.
Please help!!
Many thanks,
Julipool

21 REPLIES
Moderator

Re: Deploy Talend ESB Web Service in Tomcat

Hi,
What's your job design? Could you please export your job as .war type ans then copy the War folder and paste it in the Tomcat webapp directory? See the related forum How+to+export+Jobs with scenario.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Hi Sabrina,
Thanks very much for you reply, but I'm afraid that is not what I am trying to do, it describes how to deploy "any job" to be run as a Web Service and what I want to do is to deploy a "Service" in Tomcat.
I am designing a Service within Talend ESB: I create a service from an existing WSDL and assigning the invoke method a new job (myws); the job is mapping the input with some transformations and sending a response back to the Web Service requester. (See pictures attached).
I can export this service as a .kar file to be deployed in Talend Runtime ESBE, and it all works fine; I can invoke the Web Service and I get the response I expect.
What I would like to do now is to be able to deploy this service in Tomcat.
Do you know if this is possible? If so, could you please give me some guidance?
Many thanks and kind regards,
Julipool
Moderator

Re: Deploy Talend ESB Web Service in Tomcat

Hi,
If so, I think you are looking for How+to+deploy+a+data+service.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Hi Sabrina,
Thanks for your reply, but this is not what I am looking for. I already did this, because my service is successfully running within the Talend Runtime ESBE.
What I would like to do now is to deploy my service in Tomcat, instead of the Talend Runtime ESBE.
Any thoughts?
Many thanks and kind regards,
Julipool
Employee

Re: Deploy Talend ESB Web Service in Tomcat

Hi Julipool,
A .kar is intended to run in Talend Runtime (aka Apache Karaf). Kar stands for "Karaf Archive".
Regards,
Cyril.
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Hi Cyril,
Thanks for your response.
I know that a .kar is intended to be run in Talend Runtime, and I am getting this to work fine with the Karaf container provided by the Talend distribution.
What I would like is to be able to deploy the service I am designing with Talend ESB in Tomcat. Is there any way in Talend to export a Service so that it is deployable directly in Tomcat? Something similar to the deployment of the .kar in Talend Runtime, but with a .war in Tomcat?
Many thanks for your cooperation.
Kind regards,
Julipool
Employee

Re: Deploy Talend ESB Web Service in Tomcat

Hi,
you can export your service to Axis WebService (WAR), for example:
Job Designs -> DemoService, Right click menu -> Export Job, select the export type: Axis WebService (WAR), you will got an DemoService.war which can be deployed into Tomcat container.
after put this war into webapps, you will see a log like this:
2013-06-26 09:46:51.876:INFOSmiley Surprisedejs.AbstractConnectorSmiley Frustratedtarted SelectChannelConnect
or@localhost:8090
web service published
HTH
Xilai
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Hello Xilai,
Thanks for your suggestion, I tried it but unfortunately it does not work as I would like.
Deploying the job as you say means that I am deploying the Talend job that wraps my service, and the wsdl of the service that is deployed is as shown in the attached image (TALEND WSDL).
If I wanted to make my service available through Tomcat I have to invoke the job through the browser with the following url:
http://localhost:8080/Demoservice_0_1/services/Demoservice?method=runJob&args=null
But because my service is always listening, it never returns a response to that call, and this also means that every time I wanted to deploy my service I would have to invoke it that way.
I would like to be able to deploy my service directly in Tomcat, so my wsdl is the one that my service defines, shown in the attached image (DESIRED WSDL) and I don't want to invoke it through the Talend wrapper service.
Is this possible? Any ideas?
Many thanks and kind regards,
Julipool
Employee

Re: Deploy Talend ESB Web Service in Tomcat

No, the service has been published to the endpoint which defined in the wsdl wsdlSmiley Tongueort, for example, DemoService has been published to http://localhost:8090/services/DemoService?wsdl, not the http://localhost:8080/xxx ...
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Hello again,
Many thanks for all your replies, but I think you don't understand what I am trying to do.
What I would like to do is deploy my service (created as a Service in Talend ESB) directly in Tomcat, not wrap it on a Talend job exported as a war.
But I guess Talend does not provide that feature yet.
Kind regards,
Julipool
Employee

Re: Deploy Talend ESB Web Service in Tomcat

What I would like to do is deploy my service (created as a Service in Talend ESB) directly in Tomcat, not wrap it on a Talend job exported as a war.
But I guess Talend does not provide that feature yet.
Kind regards,
Julipool

Absolutely correct. Talend ESB Services designed, packaged and exported from the Talend Studio can't be deployed into Tomcat (or any other Application Server). You'll have to use the Talend ESB Runtime.
Cheers, Armin

Re: Deploy Talend ESB Web Service in Tomcat

I have an issue here
I did same steps.
Create My Job added rest Request/Response did SQl transactions and some manipulations.
Everything worked fine in Talend Version 5.3.1 but once i performed the steps mentioned like creating a war file and deploying in Tomcat i am getting weird error messages and not able to figured out that my service is running or not.
INFO: validateJarFile(E:\TOMCAT\apache-tomcat-7.0.29\webapps\RestService_0.1\WEB
-INF\lib\geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2
.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

After that once i resolved this after removing this jar and deploying again i am still not able to make my war file run.
I hope i am not missing something.

Hi,
you can export your service to Axis WebService (WAR), for example:
Job Designs -> DemoService, Right click menu -> Export Job, select the export type: Axis WebService (WAR), you will got an DemoService.war which can be deployed into Tomcat container.
after put this war into webapps, you will see a log like this:
2013-06-26 09:46:51.876:INFOSmiley Surprisedejs.AbstractConnectorSmiley Frustratedtarted SelectChannelConnect
or@localhost:8090
web service published
HTH
Xilai
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Hi,
I am also looking a way to deploy REST service in Tomcat created using Talend ESB but not able to acheive. This is crusual for our development and nw trying to figure out whether Talend is suitable for our development or not based on this capability.
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Hi leelakrishnan,
Unfortunately, if you want to deploy the Web Services you create with Talend, you need to use the Talend ESB Container that is shipped with the ESB package; there is no way of deploying them in Tomcat so far.
Kind regards,
Julipool
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Thanks For your post
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Greetings.
I think that when you export the Job as a War file, the Tomcat application server is properly deployed. In my case when starting the server the only strange thing I can notice is the alert:
validateJarFile(/opt/apache-tomcat/webapps/GetAllLocations_0.6/WEB-INF/lib/geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

But according to what I read is just a matter of conflict between the jar and the tomcat Servlets jar, and tells us that this is ignoring it considers that the correct version is the one located at /opt/apache-tomcat/lib
So I go to my browser and typing
http://localhost:8080/GetAllLocations_0.6/services/GetAllLocations?method=runJob&args=null

The server console show me this
12:32:09,376 INFO   Setting the server's publish address to be http://192.168.1.101:8088/
12:32:09,519 INFO jetty-8.1.7.v20120910
12:32:09,594 INFO Started SelectChannelConnector@192.168.1.101:8088

I think that mean that the service is already running, indeed, if i go to my browser and typing:
http://192.168.1.101:8080/GetAllLocations_0.6/services/GetAllLocations?wsdl

I can see the wsdl... So my problem now is that I don't know how to invoke my service correctly to obtain the response, I try something like:
http://192.168.1.101:8080/GetAllLocations_0.6/services/GetAllLocations/1/41.665556/83.575278/500000/0/0

But the response is:
AXIS error
No service is available at this URL
I don't know if I explain me well, but if anybody have an idea, please say it
Sorry for my bad english and thanks for your help.
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Started unusual web project

nice arabic.com review cavalry bollywood
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Novel devise

internet date online dating sites totally free older men gay dating jw online dating dating sites in usa
One Star

Re: Deploy Talend ESB Web Service in Tomcat

Daily updated sissy blog
liberal and radicaal feminism adult baby care vocal therapy exercises for vocal cords

sports poems how to put on chastity belt location budapest one colour outfit cute bodysuit images for boy and girl feminizing face what is noun meaning
One Star

Re: Deploy Talend ESB Web Service in Tomcat

New photo blog

marina orlova playboy alessandra ambrosio sexy rapidshare getting pregnant to save marriage naked romanian girls marias foot torture
One Star

Re: Deploy Talend ESB Web Service in Tomcat

My contemporary number

free chat room online free create social media site download social media dinner dating clubs cam dating sites