Apache Tomcat is an open source application/script which means there is no price to pay in order to use it. The open source license gives you the possibility to contribute to the good functionality of the application, if you know programming.
For additional information, visit the following website where everything about Apache Tomcat is explained: http://tomcat.apache.org/