从 Glassfish 迁移到 Wildfly 后警告“JSF1064:无法找到或提供资源”

mor*_*cai 1 resources jsf wildfly

每个人。

我有一个使用 Glassfish 作为服务器的应用程序。然后,我决定将整个应用程序迁移到Wildfly。

迁移应用程序后,我在运行它时收到以下日志:

 18:14:07,769 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-30) JSF1064: Unable to find or serve resource, bootstrap.min.css, from library, bootstrap/css.
18:14:07,787 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-32) JSF1064: Unable to find or serve resource, metisMenu.css, from library, metisMenu/dist.
18:14:07,796 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-33) JSF1064: Unable to find or serve resource, font-awesome.css, from library, font-awesome-4.4.0/css.
18:14:07,875 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-40) JSF1064: Unable to find or serve resource, kendo.common.min.css, from library, css/kendo.
18:14:07,881 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-41) JSF1064: Unable to find or serve resource, kendo.rtl.min.css, from library, css/kendo.
18:14:07,918 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-42) JSF1064: Unable to find or serve resource, bootstrap-lightbox.css, from library, bootstrap/bootstrap-lightbox.
18:14:07,918 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-47) JSF1064: Unable to find or serve resource, datepicker.css, from library, datepicker/css.
18:14:07,923 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-44) JSF1064: Unable to find or serve resource, bootstrap-table.css, from library, bootstrap/bootstrap-table/src.
18:14:07,937 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-43) JSF1064: Unable to find or serve resource, kendo.default.min.css, from library, css/kendo.
18:14:07,961 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-52) JSF1064: Unable to find or serve resource, bootstrap.min.js, from library, bootstrap/js.
18:14:07,971 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-54) JSF1064: Unable to find or serve resource, bootstrap-table-filter-control.js, from library, bootstrap/bootstrap-table/src/extensions/filter-control.
18:14:07,977 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-56) JSF1064: Unable to find or serve resource, metisMenu.min.js, from library, metisMenu/dist.
18:14:07,977 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-53) JSF1064: Unable to find or serve resource, bootstrap-table-export.js, from library, bootstrap/bootstrap-table/src/extensions/export.
18:14:07,978 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-57) JSF1064: Unable to find or serve resource, bootstrap-lightbox.js, from library, bootstrap/bootstrap-lightbox.
18:14:07,991 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-60) JSF1064: Unable to find or serve resource, addhtml.js, from library, js/jsPDF/plugins.
18:14:07,990 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-59) JSF1064: Unable to find or serve resource, jspdf.js, from library, js/jsPDF.
18:14:07,982 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-55) JSF1064: Unable to find or serve resource, ga.js, from library, bootstrap/bootstrap-table.
18:14:08,010 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-62) JSF1064: Unable to find or serve resource, cell.js, from library, js/jsPDF/plugins.
18:14:08,010 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-64) JSF1064: Unable to find or serve resource, split_text_to_size.js, from library, js/jsPDF/plugins.
18:14:08,009 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-61) JSF1064: Unable to find or serve resource, from_html.js, from library, js/jsPDF/plugins.
18:14:08,016 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-5) JSF1064: Unable to find or serve resource, bootstrap-datepicker.js, from library, datepicker/js.
18:14:08,018 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-3) JSF1064: Unable to find or serve resource, jquery.mask.min.js, from library, jquery-mp/dist.
18:14:08,024 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-6) JSF1064: Unable to find or serve resource, standard_fonts_metrics.js, from library, js/jsPDF/plugins.
18:14:08,023 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-8) JSF1064: Unable to find or serve resource, bootstrap-table.js, from library, bootstrap/bootstrap-table/src.
18:14:08,017 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-63) JSF1064: Unable to find or serve resource, addimage.js, from library, js/jsPDF/plugins.
18:14:08,240 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-9) JSF1064: Unable to find or serve resource, bootstrap.min.js, from library, bootstrap/js.
18:14:08,251 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-2) JSF1064: Unable to find or serve resource, bootstrap-table.js, from library, bootstrap/bootstrap-table/src.
18:14:08,259 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-10) JSF1064: Unable to find or serve resource, bootstrap-table-export.js, from library, bootstrap/bootstrap-table/src/extensions/export.
18:14:08,271 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-11) JSF1064: Unable to find or serve resource, bootstrap-table-filter-control.js, from library, bootstrap/bootstrap-table/src/extensions/filter-control.
18:14:08,275 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-13) JSF1064: Unable to find or serve resource, ga.js, from library, bootstrap/bootstrap-table.
18:14:08,280 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-16) JSF1064: Unable to find or serve resource, metisMenu.min.js, from library, metisMenu/dist.
18:14:08,284 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-15) JSF1064: Unable to find or serve resource, bootstrap-lightbox.js, from library, bootstrap/bootstrap-lightbox.
18:14:08,853 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-14) JSF1064: Unable to find or serve resource, jspdf.js, from library, js/jsPDF.
18:14:08,857 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-12) JSF1064: Unable to find or serve resource, addhtml.js, from library, js/jsPDF/plugins.
18:14:08,861 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-17) JSF1064: Unable to find or serve resource, from_html.js, from library, js/jsPDF/plugins.
18:14:08,865 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-21) JSF1064: Unable to find or serve resource, cell.js, from library, js/jsPDF/plugins.
18:14:08,869 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-20) JSF1064: Unable to find or serve resource, addimage.js, from library, js/jsPDF/plugins.
18:14:08,874 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-19) JSF1064: Unable to find or serve resource, split_text_to_size.js, from library, js/jsPDF/plugins.
18:14:08,878 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-22) JSF1064: Unable to find or serve resource, standard_fonts_metrics.js, from library, js/jsPDF/plugins.
18:14:08,931 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-23) JSF1064: Unable to find or serve resource, bootstrap-datepicker.js, from library, datepicker/js.
18:14:08,935 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-24) JSF1064: Unable to find or serve resource, jquery.mask.min.js, from library, jquery-mp/dist.
Run Code Online (Sandbox Code Playgroud)

我想这是与我的资源文件夹的路径相关的问题,该文件夹包括服务器日志中提到的所有库。在 Glassfish 上运行的版本中,我的 web.xml 文件包含上下文参数集,以指示我的资源文件夹所在的位置:

<context-param>
   <param-name>
     javax.faces.WEBAPP_RESOURCES_DIRECTORY
   </param-name>
   <param-value>/resources</param-value>
</context-param> 
Run Code Online (Sandbox Code Playgroud)

我也将其复制到 Wildfly 版本中的 web.xml 文件中。在迁移之前它运行良好。除了指向我的资源文件夹的链接之外,其他所有内容似乎都工作正常(bean、实体类等)。我已经搜索过解决方案但还没有找到。

我很感激任何帮助。提前致谢!

小智 5

我也有同样的警告,但仅限于 Firefox。Daniel.lichtenberger 的帖子很好地解释了这个问题以及如何解决它。

总而言之,Firefox 的RCWN同时发出两个请求并取消最慢的请求,从而导致管道损坏警告。要禁用 RCWN,请about:config在 Firefox 中输入并禁用network.http.rcwn.enable