4

私は 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)
4

1 に答える 1

0

アプリケーションを weblogic にデプロイする前に、最初に apache tomcat の下にデプロイし、警告の解決を試みます。「 ベース名 resources.application, locale en のバンドルが見つかりません」。アプリケーションが maven を使用している場合は、i18n.properties ファイルを src\main\resources に置きます

完全に構成された JSF2.2 プロジェクト tamplate を github JSF フロントエンドにアップロードしました

于 2014-11-25T10:44:35.410 に答える