title: How do you configure jax-ws to work with Spring using jax-ws commons?
body: <p>In web.xml I have the following:</p>
  
  <pre><code>&lt;servlet&gt;
          &lt;description&gt;JAX-WS endpoint - EARM&lt;/description&gt;
          &lt;display-name&gt;jaxws-servlet&lt;/display-name&gt;
          &lt;servlet-name&gt;jaxws-servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;com.sun.xml.ws.transport.http.servlet.WSSpringServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;jaxws-servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/webServices/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>In my application context I have the following definitions:</p>
  
  <pre><code>&lt;bean id="helloService" class="com.foo.HelloServiceImpl"&gt;        
      &lt;property name="regularService" ref="regularService" /&gt;
  &lt;/bean&gt;
  
  &lt;wss:binding url="/webServices/helloService" service="#helloService" /&gt;
  </code></pre>
  
  <p>I get a <code>NullPointerException</code> when trying to access the WSDL:</p>
  
  <pre><code>java.lang.NullPointerException
  at com.sun.xml.ws.transport.http.HttpAdapter.&lt;init&gt;(HttpAdapter.java:145)
  at com.sun.xml.ws.transport.http.servlet.ServletAdapter.&lt;init&gt;(ServletAdapter.java:76)
  at com.sun.xml.ws.transport.http.servlet.ServletAdapterList.createHttpAdapter(ServletAdapterList.java:5 0)
  at com.sun.xml.ws.transport.http.servlet.ServletAdapterList.createHttpAdapter(ServletAdapterList.java:4 7)
  at com.sun.xml.ws.transport.http.HttpAdapterList.createAdapter(HttpAdapterList.java:73)
  at com.sun.xml.ws.transport.http.servlet.SpringBinding.create(SpringBinding.java:24)
  at com.sun.xml.ws.transport.http.servlet.WSSpringServlet.init(WSSpringServlet.java:46) 
  </code></pre>
  
  <p>Strange ... appears to be a configuration error but the darn thing just dies with a <code>NullPointerException</code>!!!!!!!! No logging is provided.</p>
  
  <p>Deployed in Resin.</p>