Quantcast
Channel: Under Tomcat java.lang.NoClassDefFoundError when accessing a servlet? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by Brian Agnew for Under Tomcat java.lang.NoClassDefFoundError when accessing a servlet?

$
0
0

Don't forget that there's a difference between how you build and how you deploy. That is, you may be building against XStream, but you should also package it in the .war file for deployment.

Explode your resultant .war file (jar tvf {filename} to see the contents) and check whether it's there (a .jar file under WEB-INF/lib). I suspect it's not.


Viewing all articles
Browse latest Browse all 5

Trending Articles