`

tomcat ClassNotFound Exception

 
阅读更多

Caught Exception while registering Interceptor class intercept.GreetingInterceptor - interceptor - file:/D:/apache-tomcat-6.0.29/webapps/leaning_struts2/WEB-INF/classes/struts.xml:9:71

 

 

 

Caused by: java.lang.ClassNotFoundException: intercept.GreetingInterceptor   

 

这种情况通常是由于struts.xml 配置文件中的 配置类 和文件中的不一样, 多为拼写错误引起的! , 很低级的错误但对我来说常干这种事》。。。

 

 

1.  拦截器名字写错...

分享到:
评论

相关推荐

    带注释的Bootstrap.java

    * class path and therefore not visible to application level classes. * * @author Craig R. McClanahan * @author Remy Maucherat */ public final class Bootstrap { private static final Log log = ...

    Eclipse WEB项目集成Struts2的过程及问题解决

    在集成过程中可能会遇到各种问题,例如:404错误、ClassNotFound异常等。这些问题通常与配置文件的错误、类路径问题、过滤器配置不当或JAR包缺失有关。当遇到这些问题时,检查web.xml和struts.xml的配置,确保所有...

    Struts2 框架搭建(基本)和几个报错问题

    2. **Class not found**:如果出现找不到Action类的错误,确认Action类的包名和路径是否正确,以及是否已编译并放入类路径。 3. **404 Not Found**:可能是URL不正确或者Web.xml配置有问题。检查Action的命名、...

    java/jsp web.xml详解

    这里配置了当出现404错误时显示`/notfound.jsp`,而任何未捕获的异常则显示`/error.jsp`。 7. **欢迎文件** 指定Web应用的默认起始页面: ```xml <welcome-file>index.jsp ``` 访问目录时,服务器将自动...

    配置struts2常见错误

    Console 错误:Could not create JarEntryRevision **问题描述**: ``` java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils ``` **解决方法**: 同样地,这也是一条关于缺少依赖库的错误提示,缺失...

    struts2开发遇到的问题

    2. **警告:No configuration found for the specified action: 'sum.action' in namespace: ''** 这个警告通常是因为Struts2找不到指定的Action。如果在JSP中使用 `”sum.action”>`,对应的源文件应为 `”/...

    struts2驱动包

    信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program ...

    NotFoundException

    public ModelAndView notFound() { ModelAndView mav = new ModelAndView("404"); mav.addObject("message", "找不到请求的资源"); return mav; } } ``` 这里,`404.html`和`404`视图代表了用户将在浏览器中...

Global site tag (gtag.js) - Google Analytics