我使用 JSF 2.1.21 和 Tomahawk 1.1.14。当我尝试在服务器(可以是 Tomcat 或 Weblogic)上部署我的项目时,我看到警告:
WARNING: JSF1029: Application is versioned at 2.0 (either explicitly by the version
of /WEB-INF/faces-config.xml or the lack of a /WEB-INF/faces-confg.xml), however class
'org.apache.myfaces.custom.aliasbean.AliasBeanTagHandler' depends on legacy facelet class.
The facelet artifact represented by this class will not be registered.
还有许多有关不同处理程序的其他警告(例如 AliasBeansScopeTagHandler、HtmlInputCalendarTagHandler 等)。我怎样才能避免这个警告? 我尝试在 tomahawk21 或 tomahawk20 上更改 tomahawk 的artifactId,但它没有帮助+它抛出了这个:
java.util.MissingResourceException: Can't find bundle for base name resources.application, locale en
更新: 我考虑添加堆栈跟踪,它在我尝试使用 tomahawk20 的情况下显示:
java.util.MissingResourceException: Can't find bundle for base name resources.application, locale en
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:1028)
at org.apache.myfaces.tomahawk.resource.UncompressedResourceHandlerWrapper.getLocalePrefixForLocateResource(UncompressedResourceHandlerWrapper.java:242)
at org.apache.myfaces.tomahawk.resource.UncompressedResourceHandlerWrapper.createResource(UncompressedResourceHandlerWrapper.java:78)
at org.apache.myfaces.tomahawk.resource.UncompressedResourceHandlerWrapper.createResource(UncompressedResourceHandlerWrapper.java:61)
at com.sun.faces.facelets.tag.jsf.CompositeComponentTagLibrary.getCompositeComponentResource(CompositeComponentTagLibrary.java:155)
最佳答案
在weblogic上部署应用程序之前,首先部署在apache tomcat下,并尝试解决警告。 “无法找到基名称资源的 bundle 。应用程序,区域设置 en ”,如果您的应用程序具有 Maven,请将 i18n.properties 文件到 src\main\resources
我已将完全配置的 JSF2.2 项目模板上传到 github JSF frontend
关于在服务器上部署期间出现 JSF1029 警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16358666/