My JSF Java Enterprise application is not able to reach the backing bean; the error message being -
/master/currency/addCurrency.xhtml @19,94 value="#{addCurrencyController.code}": Target Unreachable, identifier 'addCurrencyController' resolved to null
I have scanned previous question here, and the solution (question #7663818) is to have a blank faces-config.xml in META-INF folder of the jar file. In that case, the jar file was part of the war file. I am not able to make it work as my xhtml is in war, the AddCurrencyController request-scoped managed bean is in jar and both are packaged in an ear.
My application.xml is Maven generated and is given below.
<?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>
I'm using Netbeans 7.3 Beta 2 IDE, server is the bundled GlassFish.
Thanks
-- MH