[jboss-user] [EJB 3.0] - JSF 1.2 EJB3 injection
jmiguel77
do-not-reply at jboss.com
Wed Jun 6 13:24:09 EDT 2007
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 ??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051839#4051839
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051839
More information about the jboss-user
mailing list