NoClassDeFoundError WSServletContextListener and XMLStreamBuffer

I'm getting the following error while trying to deploy a JAX-WS Maven-project to JBOSS6.0.0.

17:45:03,451 ERROR [[/isp]] Error configuring application listener of class com java.lang.NoClassDe
FoundError: javax/servlet/ServletContextAttributeListener
    at java.lang.ClassLoader.findBootstrapClass(Native Method) [:1.6.0_24]
    at java.lang.ClassLoader.findBootstrapClassOrNull(

My Pom-file has the following as dependency:


I tried putting the jar-file in common/lib, /lib, or /lib/endorsed but still get the same. A lot of people had this problems and there's quite some answer but nothing I found and tried worked.

Update 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:

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
va:424) [:2.1.4]
java:196) [:2.1.4]
    at [:2.


Well this was ridiculous.

I added all jar-files from the JAXWS-rt download ( and copied all of the jar-files in the /lib catalog into JBOSS_HOME/servers/default/lib.

Worked good after that. Still can't believe I dry humped this for so long.

Well, all good now.

Need Your Help

ajax call returns 500 internal error

php ajax json internal

i have some $.getJSON() calls which work locally just fine but when i upload the script on live server it just throws 500 internal error , i also have some other ajax calls(not json) where some wor...

Entity Framework - ridiculous Query, casting smallint to int for comparison

entity-framework entity-framework-6

Out of ideas here. I have a simple table that is model first mapped with Entity Framework and I get the following SQL generated:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.