2015-02-11 4:48 GMT+03:00 Alexander Johnson <alexjohn...@expedia.com>: > Thanks for the suggestions. I don't have access to the server where this > is happening, but I did get a script to run there: > > echo Displaying JAR files with current permissions... > ls -la ./target/MyProject/WEB-INF/lib/ > > echo Adding read, write, and execute permissions to JAR files... > chmod -R 777 ./target/MyProject/WEB-INF/lib/ > > echo Displaying JAR files with updated permissions... > ls -la ./target/MyProject/WEB-INF/lib/ > > > This produces output like the following: > > [INFO] --- exec-maven-plugin:1.3.2:exec (update_jar_file_permissions) @ > MyProject --- > Displaying JAR files with current permissions... > total 124556 > drwxr-xr-x 2 jenkins users 20480 Feb 10 17:26 . > drwxr-xr-x 6 jenkins users 4096 Feb 10 17:26 .. > -rw-r--r-- 1 jenkins users 62983 Jan 22 00:11 activation-1.1.jar > -rw-r--r-- 1 jenkins users 351656 Jan 22 00:25 amqp-client-3.1.3.jar > -rw-r--r-- 1 jenkins users 74080 Jan 22 00:25 annotations-2.0.0.jar > -rw-r--r-- 1 jenkins users 445288 Jan 22 00:25 antlr-2.7.7.jar > -rw-r--r-- 1 jenkins users 895124 Jan 22 00:25 antlr-3.2.jar > > Adding read, write, and execute permissions to JAR files... > Displaying JAR files with updated permissions... > total 124556 > drwxrwxrwx 2 jenkins users 20480 Feb 10 17:26 . > drwxr-xr-x 6 jenkins users 4096 Feb 10 17:26 .. > -rwxrwxrwx 1 jenkins users 62983 Jan 22 00:11 activation-1.1.jar > -rwxrwxrwx 1 jenkins users 351656 Jan 22 00:25 amqp-client-3.1.3.jar > -rwxrwxrwx 1 jenkins users 74080 Jan 22 00:25 annotations-2.0.0.jar > -rwxrwxrwx 1 jenkins users 445288 Jan 22 00:25 antlr-2.7.7.jar > -rwxrwxrwx 1 jenkins users 895124 Jan 22 00:25 antlr-3.2.jar > > > As you can see, there WERE missing permissions. However, this hasn't > solved the problem: > > Feb 10, 2015 5:27:54 PM org.apache.tomcat.util.scan.StandardJarScanner > scan > WARNING: Failed to scan JAR > [file:/opt/jenkins/workspace/MY_JENKINS_JOB/tomcat7/webapps/../../target/MY > _PROJECT/WEB-INF/lib/activation-1.1.jar] from WEB-INF/lib > java.io.FileNotFoundException: > /opt/jenkins/workspace/MY_JENKINS_JOB/tomcat7/webapps/../../target/MY_PROJE > CT/WEB-INF/lib/activation-1.1.jar (No such file or directory) > at java.util.zip.ZipFile.open(Native Method) > > > I'm still at a loss...
The first fragment says "MyProject", the failure messages say "MY_PROJECT" .... Are they the same directory? If "target" directory is a result of a build, is it created by the same build? (E.g. if it is created by something running asynchronously in parallel, it can be cleared/empty at that time). --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org