Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in managed bean injection  RSS feed

 
Angellika desai
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m having some injection error while executing my jsf application
Its as follows:--

exception
javax.servlet.ServletException: An error occurred performing resource injection on managed bean poll


root cause
com.sun.faces.mgbean.ManagedBeanCreationException: An error occurred performing resource injection on managed bean poll

root cause
com.sun.faces.spi.InjectionProviderException: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=bean.Poll/obj,Remote 3.x interface =bean.AbstractFacade,ejb-link=null,lookup=null,mappedName=,jndi-name=bean.AbstractFacade,refType=Session into class bean.Poll

root cause
com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Remote ejb-ref name=bean.Poll/obj,Remote 3.x interface =bean.AbstractFacade,ejb-link=null,lookup=null,mappedName=,jndi-name=bean.AbstractFacade,refType=Session into class bean.Poll

root cause
javax.naming.NamingException: Lookup failed for 'java:comp/env/bean.Poll/obj' in SerialContext [Root exception is javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=bean.Poll/obj,Remote 3.x interface =bean.AbstractFacade,ejb-link=null,lookup=null,mappedName=,jndi-name=bean.AbstractFacade,refType=Session' . Actual (possibly internal) Remote JNDI name used for lookup is 'bean.AbstractFacade#bean.AbstractFacade' [Root exception is javax.naming.NamingException: Lookup failed for 'bean.AbstractFacade#bean.AbstractFacade' in SerialContext [Root exception is javax.naming.NameNotFoundException: bean.AbstractFacade#bean.AbstractFacade not found]]]

root cause
javax.naming.NamingException: Exception resolving Ejb for 'Remote ejb-ref name=bean.Poll/obj,Remote 3.x interface =bean.AbstractFacade,ejb-link=null,lookup=null,mappedName=,jndi-name=bean.AbstractFacade,refType=Session' . Actual (possibly internal) Remote JNDI name used for lookup is 'bean.AbstractFacade#bean.AbstractFacade' [Root exception is javax.naming.NamingException: Lookup failed for 'bean.AbstractFacade#bean.AbstractFacade' in SerialContext [Root exception is javax.naming.NameNotFoundException: bean.AbstractFacade#bean.AbstractFacade not found]]

root cause
javax.naming.NamingException: Lookup failed for 'bean.AbstractFacade#bean.AbstractFacade' in SerialContext [Root exception is javax.naming.NameNotFoundException: bean.AbstractFacade#bean.AbstractFacade not found]

root cause
javax.naming.NameNotFoundException: bean.AbstractFacade#bean.AbstractFacade not found
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is AbstractFacade annotated?

Is AbstractFacade with public access?

Is AbstractFacade with a public default constructor?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a problem doing the JNDI lookup for the EJB. Either the EJB didn't register properly, the URL you're providing the javax.naming JNDI lookup method call doesn't match the name that the EJB registered under, or there's some sort of blockage (such as a firewall) between the EJB client and the EJB registry server.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!