2016-05-10 17:54:15 DEBUG o.e.j.a.AnnotationConfiguration:570 - Scanned 155 container path jars, 4 WEB-INF/lib jars, 1 WEB-INF/classes dirs in 8779ms for context o.e.j.w.WebAppContext@39ace1a7{/main,file:///path/to/work/main/webapp/,STARTING}{/path/to/web/main.war}
So apparently Jetty doesn't support using partial wildcards like -cp /my/path/*:/my/path/log4j-*.jar:(...) , which is ok, it may not be a valid syntax, not sure.
It also breaks if we specify a jar that doesn't exists, maybe a warning would be ok.
java.io.FileNotFoundException: /path/to/lib/mail.jar (No such file or directory)
at java.util.zip.ZipFile.open(Native Method) ~[?:1.8.0_91]
at java.util.zip.ZipFile.<init>(ZipFile.java:219) ~[?:1.8.0_91]
at java.util.zip.ZipFile.<init>(ZipFile.java:149) ~[?:1.8.0_91]
at java.util.jar.JarFile.<init>(JarFile.java:166) ~[?:1.8.0_91]
at java.util.jar.JarFile.<init>(JarFile.java:103) ~[?:1.8.0_91]
at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:93) ~[?:1.8.0_91]
at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:69) ~[?:1.8.0_91]
at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:84) ~[?:1.8.0_91]
at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122) ~[?:1.8.0_91]
at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89) ~[?:1.8.0_91]
at org.eclipse.jetty.webapp.MetaInfConfiguration.getTlds(MetaInfConfiguration.java:408) ~[jetty-webapp-9.3.8.v20160314.jar:9.3.8.v20160314]
at org.eclipse.jetty.webapp.MetaInfConfiguration.scanForTlds(MetaInfConfiguration.java:326) ~[jetty-webapp-9.3.8.v20160314.jar:9.3.8.v20160314]
Anyways, all good now, thanks a lot
Ben