Can anybody tell me why when i declare a managed bean in some additional faces-config, EJB in this bean is not initialized, i.e. it's null without any errors, just null?
web.xml has following lines:
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config-navigation.xml, /WEB-INF/faces-config-custom.xml</param-value>
</context-param>
So, when i put my bean in faces-config-custom.xml EJB is not initialized but when i put it to main faces-config.xml everything works fine. Note that managed bean itself works properly: it's seen by the page, its methods are called without problems, but i can't use EJB in it because it's always null.
P.S. i inject EJB with @EJB annotation.