title: jersey + spring + hibernate configuration issue getting null pointer exception for @autowired
body: <p>hi i am getting null pointer exception in my application , i want to know my web.xml is correct or wrong,also i am using jar files not MAVEN</p>
  
  <pre><code> `&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;web-app version="2.4"xmlns="http://java.sun.com/xml/ns/j2ee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/n/j2ee/web-app_2_4.xsd"&gt;&lt;context-param&gt;
      &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
      &lt;param-value&gt;WEB-INF/Helloweb-servlet.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;org.springframework.web.context.request.RequestContextListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;Jersey Spring Web Application&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.sun.jersey.spi.spring.container.servlet.SpringServlet&lt;/servlet-class&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Jersey Spring Web Application&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/webresources/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;&lt;servlet&gt;
    &lt;servlet-name&gt;HelloWeb&lt;/servlet-name&gt;
    &lt;servlet-class&gt;
       org.springframework.web.servlet.DispatcherServlet
    &lt;/servlet-class&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; &lt;/servlet&gt;  &lt;servlet-mapping&gt;&lt;servlet-name&gt;HelloWeb&lt;/servlet-name&gt;
    &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt;  &lt;/servlet-mapping&gt;&lt;/web-app&gt;
  </code></pre>