Download Tomcat 7.x (optional) - 6.5

Talend ESB Development Guide

EnrichVersion
6.5
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB

This guide will show you how to deploy CXF services and Camel routes using Talend ESB's Karaf-based Container. However for testing and debugging it can be helpful to be aware of how to deploy on the servlet container Apache Tomcat. Steps involved to deploy a Tomcat installation on your computer:

  • Download and uncompress the latest Tomcat release version from the Apache Tomcat site.

  • Create a $CATALINA_HOME operating system environment variable pointing to the base directory of Tomcat, and add the $CATALINA_HOME/bin directory to your system path so you can easily start Tomcat from any system folder.

  • You'll need to edit the $CATALINA_HOME/conf/tomcat-users.xml file to create an administrative user for deploying and undeploying web applications. Define two new roles, manager-script> and manager-gui and add them to either a new user or any existing user, e.g.:

    <tomcat-users>
       <role rolename="manager-script"/>
       <role rolename="manager-gui"/>
       <user username="tomcat" password="tomcat" 
          roles="manager-script,manager-gui"/>
       ...other users and roles...
    </tomcat-users>
    

    Of course, for a production deployment you'll want to use a username and password different from the easy-to-guess ones above.

  • Next let's test your Tomcat installation. Run sh startup.sh (Linux) or startup.bat (Windows) and navigate to http://localhost:8080 from a browser. You should see the Tomcat welcome screen indicating a successful activation. Next, shut down Tomcat by running the sh shutdown.sh or shutdown.bat commands as appropriate.