Skip to main content

Download Tomcat 7.x (optional)

This guide will show you how to deploy CXF services and Camel routes using Karaf-based Container of Talend ESB. 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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!