开发者社区> 问答> 正文

关于 服务启动后报错,不能找到某些类!

一个SSH 架构的系统,用注解配置相关信息。

tomcat 启动后报如下错误。但是项目运行没有什么问题。很是郁闷

DEBUG [main] FileResourceStore.debug(61) | Unable to read file [org/apache/struts2/dispatcher/DefaultActionSupport.class]
 
java.io.FileNotFoundException: ..\WEB-INF\classes\org\apache\struts2\dispatcher\DefaultActionSupport.class (系统找不到指定的路径。)
 
...Unable to read file [java/lang/Throwable.class]
 
... Unable to read file [java/lang/Throwable.class]
 
... Unable to read file [java/io/IOException.class]
 
... Unable to read file [java/lang/Integer.class]
... Unable to read file [java/lang/String.class]
... Unable to read file [org/springframework/stereotype/Controller.class]
... Unable to read file [org/springframework/context/annotation/Scope.class] 
... Unable to read file [org/apache/struts2/convention/annotation/Namespace.c

展开
收起
爵霸 2016-03-04 15:48:14 2225 0
1 条回答
写回答
取消 提交回答
  • 是因为手动在struts2的添加了一个配置参数

    配置Convention插件自动重加载映射,无需重启【发布时候关闭】

    `
    struts.convention.classes.reload=true
    `

    `
    struts.properties 改为 false 或者 直接删除该配置参数即可。
    `

    开发期间设置为true,启动虽然报错,不影响项目运行。

    2019-07-17 18:52:24
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载