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-guiand 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:8080from a browser. You should see the Tomcat welcome screen indicating a successful activation. Next, shut down Tomcat by running the
shutdown.batcommands as appropriate.