Spring-agent: Error opening zip file or JAR manifest missing
<p>I am trying to run application using Docker. Application is Java program running on Tomcat. So, I am building an image and my <code>Dockerfile</code> looks like:</p>

<pre><code>FROM tomcat:7.0.72-jre8

COPY Tomcat/ $CATALINA_HOME/

ENV JAVA_OPTS="$JAVA_OPTS -javaagent:$CATALINE_HOME/lib/spring-agent-2.5.6.jar -Xms2048m -Xmx2048m -Dorg.apache.el.parser.SKIP_IDENTIFIER_CHECK=true"
</code></pre>

<p>As you see, I am using <code>-javaagent</code> option, but it causes:</p>

<pre><code>Error opening zip file or JAR manifest missing : /lib/spring-agent-2.5.6.jar
Error occurred during initialization of VM
agent library failed to init: instrument
</code></pre>

<p>I've tried the same through setting <code>JAVA_OPTS</code> in <code>setenv.sh</code> - the same exception. I am sure that the lib is copied to container and It exists on specified path. I checked it by running same image without <code>javaagent</code>option and then access it in terminal. <code>spring-agent</code> was in lib folder, so I am a little bit stuck.</p>

<p>I am new Ubuntu user and I guess there are could be any permission problems etc.</p>

<p>Any suggestions?</p>