3 Replies Latest reply on Jun 6, 2007 3:18 PM by Jose Miguel Loor

    JSF 1.2 EJB3 injection

    Jose Miguel Loor Apprentice

      Hi

      I am tryingo to test the EJB3 session bean injection in a JSF managed Bean

      I hav modified my web.xml to include this

      <web-app version="2.5" 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/web-app_2_5.xsd">
      


      My ejb jar is correct and deployed; in the managed bean i have this:

      @Resource
      UserServiceLocal userService;

      but when i try to call any method in the userService, it gives me a null pointer exception

      What can i be missing ??