Today the project was started with Jetty, it started normally under Tomcat, and it was started in the Jetty container, and a ClassNotFoundException was reported inexplicably : net.sf.json.JSONObject The details are as follows:
When the Jetty container is combined with Maven, the json-lib related class libraries are not loaded when jetty is released, so when the project starts, if the json-lib package is used, ClassNotFound will also appear.< /p>
Solution:
Right-click the project Run As / Debug As ——> Enter the Configurations interface, select the Jetty container, and then configure the Dependencies of the project, Check the json-lib package and restart jetty, as follows
ClassNotFoundException: net.sf.json.JSONObject is as follows:
< p>
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 474 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC