Deploy Talend Job as AXIS web services

One Star

Deploy Talend Job as AXIS web services

Hi, Friends:
I created a document to describe how to use AXIS web service as Job Export. I run Talend 2.3.2.r12707 (java) and JBoss 4.2.2 GA. Also I installed JBoss web servcies, so it works well with Axis.
Enjoy.
Vincent
Deploy Talend?s Job as AXIS web services (*.war)
1. Export Job using Talend as AXIS WebService(WAR)
Export my job as "SLN_OperType_Components_1.0.war".
2. Copy the SLN_OperType_Components_1.0.war to JBoss server. For example, ?C:\jboss-4.2.2.GA\server\defult\deploy\SLN_OperType_Components_1.0? . The JBoss will run hot-deploy, so you will see the process in console.

3. Check deployment successfully
http://localhost:8080/SLN_OperType_Components_1.0/servlet/AxisServlet
To see job?s WSDL, you can click the wsdl.

4. Run job by web services
Open browser and type URL: "http://localhost:8080/SLN_OperType_Components_1.0/services/SLN_OperType_Components?method=runJob"

5. To send parameter with Web services
http://localhost:8080/SLN_OperType_Comp_Update_2.0/services/SLN_OperType_Components?method=runJob&args=--context_param%20opertype=S109
6. Open database to check table!
Community Manager

Re: Deploy Talend Job as AXIS web services

Hello vinhsu
Thanks for your interest in TOS and sharing your work!
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
Employee

Re: Deploy Talend Job as AXIS web services

Funny to read this today, I've just posted a new page in the wiki : export as webservice.
Five Stars

Re: Deploy Talend Job as AXIS web services

Hello,
I tried deploying simple job as webservice on a Tomcat 6 but I end up with 
exception
javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.axis.transport.http.AxisServlet or a class it depends on
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:612)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:503)
java.lang.Thread.run(Unknown Source)

root cause
java.lang.ClassNotFoundException: org.apache.axis.transport.http.AxisServlet
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:612)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:503)
java.lang.Thread.run(Unknown Source)
However if I browse to looks like axis is installed and runs fine.
What do I miss ?
Thanks