WAS 6.1上的EAR部署错误

时间:2011-10-18 08:32:16

标签: spring websphere web-applications

我在WAS 6.1上运行的RAD 7.5上有一个web应用程序,可以很好地构建。但是,在部署到服务器上时,它会引发以下错误:

    Error 404: SRVE0203E: Servlet [MyApplication]: com.mypackage.requestprocessing.servlet.impl.ServletFrontController was found, but is missing another required class. 

    SRVE0206E: This error typically implies that the servlet was originally compiled with classes which cannot be located by the server. 
    SRVE0187E: Check your classpath to ensure that all classes required by the servlet are present.
    SRVE0210I: This problem can be debugged by recompiling the servlet using only the classes in the application's runtime classpath

在SRVE0234I之后:应用程序类路径列出了许多文件。

肯定是类路径问题。但我没有找到一个单一的地方,给出了如何解决这个问题的确切解决方案。

欢迎任何投入!!

1 个答案:

答案 0 :(得分:0)

只有一种可能的解释:com.mypackage.requestprocessing.servlet.impl.ServletFrontController引用了一个在编译期间可用但在运行时不可用的类。

如果您的Web项目的Java构建路径(右键单击项目 - >属性 - > Java构建路径,查看“项目”和“库”选项卡)引用项目/ JAR,这不会感到惊讶你编译项目;但是,“Java Build Path”对话框仅列出用于编译的工件,而不是运行时。如果您有编译运行时所需的项目/ JAR,则应将它们从“Java Build Path”中删除,并将它们添加到“JavaEE Module Dependencies”面板(RAD 7.5)或“Deployment Assembly”中“(RAD 8.0),所以项目/ JAR将打包到您的WEB-INF/lib

相关问题