How To Share a Tomcat Instance Between WebApp Component and Another Application

If you want to share a Tomcat instance between WebApp Component and another web application, the following issues need to be considered: