title: Spring app in Docker container runs on one host, fails on another
body: <p>I have a Spring web application packed in a Docker container, together with Tomcat. The app runs on several hosts, but does not start up on one particular host with this error message (split in 3 lines for easier reading):</p>
  
  <pre><code>19-Apr-2018 07:23:12.728 SEVERE [localhost-startStop-1] org.springframework.web.context.ContextLoader.initWebApplicationContext Context initialization failed
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]:
  Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/asm/util/TraceClassVisitor
  </code></pre>
  
  <p>The versions of Docker are identical between the hosts.</p>
  
  <p>What can be the reason for this different behavior?</p>
  
  <p>I assume that some run-time dependency is missing on the "bad" host. How can I find it?</p>