title: NoClassDeFoundError WSServletContextListener and XMLStreamBuffer
body: <p>I'm getting the following error while trying to deploy a JAX-WS Maven-project to JBOSS6.0.0.</p>
  
  <pre><code>17:45:03,451 ERROR [[/isp]] Error configuring application listener of class com
  sun.xml.ws.transport.http.servlet.WSServletContextListener: java.lang.NoClassDe
  FoundError: javax/servlet/ServletContextAttributeListener
      at java.lang.ClassLoader.findBootstrapClass(Native Method) [:1.6.0_24]
      at java.lang.ClassLoader.findBootstrapClassOrNull(ClassLoader.java:927)
  [:1.6.0_24]
  ...
  </code></pre>
  
  <p>My Pom-file has the following as dependency:  </p>
  
  <pre><code>&lt;dependency&gt;  
      &lt;groupId&gt;com.sun.xml.ws&lt;/groupId&gt;
      &lt;artifactId&gt;jaxws-rt&lt;/artifactId&gt;
      &lt;version&gt;2.1.4&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I tried putting the jar-file in common/lib, /lib, or /lib/endorsed but still get the same.<br>
  A lot of people had this problems and there's quite some answer but nothing I found and tried worked.</p>
  
  <p><em><strong>Update</em></strong><br>
  So, I tried putting the lib in WEB-INF/lib instead. And that takes away the previous error. However, a new error is now showing up. Here's the stack trace:</p>
  
  <pre><code>09:00:46,353 ALLVARLIG [http] WSSERVLET11: failed to parse runtime descriptor: j
  ava.lang.NoClassDefFoundError: com/sun/xml/stream/buffer/XMLStreamBuffer: java.l
  ang.NoClassDefFoundError: com/sun/xml/stream/buffer/XMLStreamBuffer
      at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.ja
  va:424) [:2.1.4]
      at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.
  java:196) [:2.1.4]
      at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467) [:2.
  </code></pre>