我使用 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)