I have packaged these Jersey 1.19 libraries within my WEB-INF folder:
- jersey-client-1.19.4.jar
- jersey-core-1.19.4.jar
- jersey-json-1.19.4.jar
- jersey-multipart-1.13.jar
- jersey-server-1.19.4.jar
- jersey-servlet-1.19.4.jar
- jsr311-api-1.1.1.jar
and have verified their presence with untar of the packaged war, and deployed it on tomcat 8.5 and it starts fine.
Though, When I run the traffic on this server I get the exception on server.init():
com.sun.jersey.spi.service.ServiceConfigurationError: com.sun.jersey.spi.container.WebApplicationProvider: : java.io.FileNotFoundException: JAR entry WEB-INF/lib/jersey-server-1.19.4.jar
Additionally, I have a Java application that builds these jersey apps and it did for years. now I am adding support to Jersey 2 apps as well and packaging these war files with required dependencies on tomcat (tomcat 8.5 with jersey1 and jersey2 wars), nothing about jersey in the classpath of the main app.