报出java.lang.ClassNotFoundException

Servlet.service() for servlet [tomcat.com.MyTestServlet] in context with path [/MyTest] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: net.sf.json.JSONObject

哈哈哈哈,这么巧,我刚遇到!
将JSON的jar包,放在项目下WebContent->WEB-INF->lib下面即可!

没找到类,把错贴出来要不怎么帮你

Servlet.service() for servlet [tomcat.com.MyTestServlet] in context with path [/MyTest] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: net.sf.json.JSONObject

net.sf.json.JSONObject 应该是这个类没找到

类没找到,试试楼上方法。

http://bbs.csdn.net/topics/390257670