JSF Java Enterprise アプリケーションがバッキング Bean に到達できません。エラーメッセージは -
/master/currency/addCurrency.xhtml @19,94 value="#{addCurrencyController.code}": Target Unreachable, identifier 'addCurrencyController' resolved to null
ここで以前の質問をスキャンしました。解決策 (質問 #7663818) は、jar ファイルの META-INF フォルダーに空白の faces-config.xml を配置することです。その場合、jar ファイルは war ファイルの一部でした。xhtml が戦争中で、AddCurrencyController リクエスト スコープのマネージド Bean が jar にあり、両方が耳にパッケージ化されているため、機能させることができません。
私のapplication.xmlはMavenで生成されたもので、以下に示します。
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
<display-name>ruwi-app</display-name>
<module>
<web>
<web-uri>ruwi-web-1.0.war</web-uri>
<context-root>/ruwi</context-root>
</web>
</module>
<module>
<ejb>ruwi-ejb-1.0.jar</ejb>
</module>
<library-directory>lib</library-directory>
</application>
私は Netbeans 7.3 Beta 2 IDE を使用しています。サーバーはバンドルされている GlassFish です。
ありがとう
-- MH