Cannot load excludes configuration file "/WEB-INF/decorators.xml" as specified in "sitemesh.xml" or "sitemesh-default.xml"(已解决)

 错误内容如下:

 

严重: Servlet.service() for servlet jsp threw exception
com.opensymphony.module.sitemesh.factory.FactoryException: Cannot construct Factory : com.opensymphony.module.sitemesh.factory.DefaultFactory: java.lang.IllegalStateException: Cannot load excludes configuration file "/WEB-INF/decorators.xml" as specified in "sitemesh.xml" or "sitemesh-default.xml"
 at com.opensymphony.module.sitemesh.Factory.getInstance(Factory.java:50)
 at com.opensymphony.sitemesh.webapp.SiteMeshFilter.initContentProcessor(SiteMeshFilter.java:107)
 at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:54)

 

 

错误原因:我把dccorators.xml文件放错了位置. 

 

 

解决方法:

请检查decorators.xml的位置!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
"No valid entries or contents found, this is not a valid OOXML (Office Open XML) file" 这个错误是由于文档加密导致的。解决方法有两种。第一种是和领导要密码,以解密文档。第二种是通过在百度搜索word在线解密工具来解决。选择其中一种方法进行操作,就可以解决这个问题。 关于poi-tl,当把Excel文件放到resources目录下时,需要配置打包资源时不过滤。否则,在打包时会将Excel中配置的${变量名}进行转义。具体的pom配置如下: ``` <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <includes> <include>**/*.xlsx</include> </includes> </resource> <resource> <directory>src/main/resources</directory> <filtering>false</filtering> <excludes> <exclude>**/*.xlsx</exclude> </excludes> </resource> </resources> </build> ``` 通过以上的配置,可以确保在打包时不对Excel文件进行过滤,避免了${变量名}的转义问题。<span class="em">1</span><span class="em">2</span> #### 引用[.reference_title] - *1* [No valid entries or contents found, this is not a valid OOXML (Office Open XML) file](https://blog.csdn.net/weixin_45818332/article/details/128410847)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [easypoi 模板导出错误:No valid entries or contents found, this is not a valid OOXML (Office Open XML) ...](https://blog.csdn.net/dubhe_zhao/article/details/122410134)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值