Java NoClassDefFoundError:org/directwebremoting/extend/ConvertUtil

Java NoClassDefFoundError:org/directwebremoting/extend/ConvertUtil,java,tomcat,dwr,Java,Tomcat,Dwr,将Tomcat应用程序从一台服务器移动到另一台服务器后,我们会出现以下错误: SEVERE: Servlet.service() for servlet dwr-invoker threw exception java.lang.NoClassDefFoundError: org/directwebremoting/extend/ConvertUtil at org.directwebremoting.dwrp.CallBatch.parseParameters(CallBatc

将Tomcat应用程序从一台服务器移动到另一台服务器后,我们会出现以下错误:

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)
更新这是如何在pom.xml中定义DWR依赖项的

    <dependency>
        <groupId>org.directwebremoting</groupId>
        <artifactId>dwr</artifactId>
        <version>3.rc1</version>
        <scope>system</scope>
        <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/dwr.jar</systemPath>
    </dependency>

org.directwebremoting
dwr
3.rc1
系统
${basedir}/src/main/webapp/WEB-INF/lib/dwr.jar

打开dwr.jar,检查org/directwebremoting/extend/ConvertUtil是否在那里。我打开了dwr.jar,org/directwebremoting/extend/ConvertUtil在那里。可能是文件权限?需要一些奇怪的设置才能得到类路径错误…尝试使用编译范围来构建它,以便在应用程序中拥有正确的pom。@LinuxSubmission,文件权限看起来正常。
    <dependency>
        <groupId>org.directwebremoting</groupId>
        <artifactId>dwr</artifactId>
        <version>3.rc1</version>
        <scope>system</scope>
        <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/dwr.jar</systemPath>
    </dependency>