users@jersey.java.net

[Jersey] Servlet 3.0 Container Deployment

From: Sathyakumar <sathyakumar.s_at_gmail.com>
Date: Fri, 27 Jun 2014 21:35:05 +0530

Am trying to deploy a war file without a web.xml (with an Application
subclass annotated with @ApplicationPath). While this war files works in
Glassfish server, the same is not working in Tomcat 7.

I understand Jersey through web fragments creates a default
JerseyContainerServlet. I have browsed through the entire source code of
Jersey to locate web-fragment.xml, but could not find it. Could this be the
reason why it wont work in Tomcat (but somehow does in Glassfish)? Am I
missing any jar file in the war ?

Any help will be appreciated.