最近WebSphere Portal v6.1からv7.0にアップグレードしました。その過程で、JSF 1.2が利用可能になりました。作成ラッド8の新しいポートレット・プロジェクトには、次のエントリAPI変数リゾルバは、JSF 1.1の後に非推奨になりました。代わりにel-resolverを使用
<application>
<state-manager>com.ibm.faces.application.DevelopmentStateManager</state-manager>
<variable-resolver>com.ibm.faces.portlet.PortletVariableResolver</variable-resolver>
</application>
でのfaces-config.xmlが作成し、文句を言います。Type API変数-リゾルバは、JSF 1.1の後に廃止されました。代わりにel-resolverを使用してください。
残念ながら、私はel-resolverを使用するIBMページで回答を見つけることができませんでした。
編集:
System.out.println("Resolver: " + PortalUtil.getFacesContext().getApplication().getELResolver());
=>リゾルバ:[email protected]
追加または除去することなく顔-設定
<el-resolver>com.sun.faces.el.FacesCompositeELResolver</el-resolver>
のエントリ可変リゾルバは、次のものにつながります。
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:270)
at javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:358)
... 89 more
PMR with IBM opened ...
これは役に立たないのですか? http://download.oracle.com/docs/cd/E17802_01/products/products/jsp/2.1/docs/jsp-2_1-pfd2/javax/el/ELResolver.html – Brad
RADからの警告メッセージ:クラスjavax.el。 ELResolverは、抽象ではなく、具体的でなければなりません。 – Stefan
Springを使用し、org.springframework.web.jsf.DelegatingVariableResolverがあります。それはうまく動作します。おそらくこのリゾルバの依存関係を追加しようとしますか?のように置く org.springframework.web.jsf.DelegatingVariableResolver variable-resolver> –
JMelnik