Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

Labels (2)
21 Replies
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

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:INFO0683p000009MA5A.pngejs.AbstractConnector0683p000009M9p6.pngtarted SelectChannelConnect
or@localhost:8090
web service published
HTH
Xilai
Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Thanks For your post
Anonymous
Not applicable
Author

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.
Anonymous
Not applicable
Author

Hi,

In Talend,unable to create .WAR file for web services related job.

But in tomcat,i need to deploy .WAR file.

 

Thanks

Anonymous
Not applicable
Author

Hello,

As of 6.4.1 product management has deprecated the build job to Axis WebService (WAR) as shown in the following documentation.

What does your web services related job look like?

Best regards

Sabrina

 

Anonymous
Not applicable
Author

Im working Talend ESB 6.4 version.

My job:

 

tesbproviderrequest-----row(main)---->tesbproviderresponse.

 

 

my web service is assigned to above mentioned job. I need to export the above job as .war file