将Tomcat应用程序从一台服务器移动到另一台服务器后,我们收到此错误:
print("<tr class='pointer' onclick=\"location.href='inventory.php?setID=$setid&catID=$catID'>\"");
我们在WEB-INF / lib目录中有dwr.jar(我打开并检查,org / directwebremoting / extend / ConvertUtil就在那里)
SEVERE: Servlet.service() for servlet dwr-invoker threw exception
java.lang.NoClassDefFoundError: org/directwebremoting/extend/ConvertUtil
at org.directwebremoting.dwrp.CallBatch.parseParameters(CallBatch.java:135)
at org.directwebremoting.dwrp.CallBatch.<init>(CallBatch.java:47)
at org.directwebremoting.dwrp.BaseCallHandler.handle(BaseCallHandler.java:72)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:120)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:141)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
UPDATE 这就是pom.xml中定义DWR依赖的方式
/srv/tomcat6/webapps/APPNAME/WEB-INF/lib/dwr.jar