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下面即可!