【问题标题】:JSF1029 warning during deploying on a server在服务器上部署期间出现 JSF1029 警告
【发布时间】:2013-04-27 20:13:24
【问题描述】:

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

更新: 我考虑添加stacktrace,在我尝试使用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)

【问题讨论】:

    标签: jsf


    【解决方案1】:

    在weblogic上部署你的应用之前,首先部署在apache tomcat下,并尝试解决warnings。 “找不到基本名称资源的捆绑包。应用程序,语言环境”,如果您的应用程序使用 maven,请将 i18n.properties 文件到 src\main\resources

    我将完全配置好的 JSF2.2 项目模板上传到 github JSF frontend

    【讨论】:

      猜你喜欢
      • 2022-10-20
      • 1970-01-01
      • 2012-06-20
      • 2013-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-09
      • 2014-05-28
      相关资源
      最近更新 更多