When I am running test at that time @Autowired is working but when I run the web app and try to fetch data at that time its throwing null pointer exception.
You can try using the SpringServlet instead of the jersey provided servlet container to achieve Jersey-Spring integration.
com.sun.jersey.spi.spring.container.servlet.SpringServlet
The documentation for this class states :
A servlet or filter for deploying root resource classes with Spring integration. This class extends ServletContainer and initiates the WebApplication with a Spring-based IoCComponentProviderFactory, SpringComponentProviderFactory, such that instances of resource and provider classes declared and managed by Spring can be obtained. Classes of Spring beans declared using XML-based configuration or auto-wire-based confguration will be automatically registered if such classes are root resource classes or provider classes. It is not necessary to provide initialization parameters for declaring classes in the web.xml unless a mixture of Spring-managed and Jersey- managed classes is required. The servlet supports configuration of child applicationContexts, see CONTEXT_CONFIG_LOCATION.