0

Application starts with path

http://localhost:8080/Shop24/catalog.jsf

and results in error

javax.el.PropertyNotFoundException: /catalog.xhtml @110,63 binding="#{catalog.dataTable}": Target Unreachable, identifier 'catalog' resolved to null

a bean:

@Named
@RequestScoped
public class Catalog implements Serializable {

a configuration

<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
</servlet-mapping>

and server is Jboss7.

What is the reason for that error?

Tiny
  • 27,221
  • 105
  • 339
  • 599
andy007
  • 907
  • 1
  • 15
  • 41

1 Answers1

2

After creating an empty file beans.xml in web-inf folder project starts succesfully.

andy007
  • 907
  • 1
  • 15
  • 41