If you use SYS V initialization scripts and run such Tomcat in the container, DO NOT run the script directly with
sudo /etc/init.d/tomcat7 start
This will launch it without a clean environment.
Use the utility command instead:
sudo /sbin/service tomcat7 start
source
share