well if you use 1.5.2 i think you can't, on trunk if you set a servlet-class instance of a HttpServlet it will work.
*Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2013/7/21 Nick Khamis <[email protected]> > Hello Romain, > > Thanks again for your response. Just to clarify, am I not able to > declaring root resource and provider classes and/or singleton > instances using "javax.ws.rs.core.Application"? Maybe I am using the > term "servlet" too loosely.... > > We have quite a complex application and would like the flexibility of > not having jersey seek out all the services automatically using: > <param-name> jersey.config.server.provider.packages</param-name>" > > Kind Regards, > > N. >
