hi guys,

I've tried to reference an ejb (@EJB) within a managed bean, like 
ashishkulkarni did. In jboss 4.2.2, i had success, but in jboss5.0.0.beta4 the 
following error occurred:


  | 20:09:14,359 ERROR [JBossInjectionProvider] Injection failed on managed 
bean.
  | javax.naming.NameNotFoundException: ejb not bound
  |     at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
  |     ...
  | 20:09:14,406 WARN  [lifecycle] executePhase(RENDER_RESPONSE 6,[EMAIL 
PROTECTED]) threw exception
  | javax.faces.FacesException: org.apache.jasper.el.JspELException: 
/index.jsp(13,2) '#{Alo.alo}' Error reading 'alo' on type aloee.Alo
  |     at javax.faces.component.UIOutput.getValue(UIOutput.java:176)
  |         ...
  | 

Meanwhile, I did the same test with a servlet project and in the jboss5.0.0 it 
worked but in jboss4.2.2 did not.

JBoss Versions: 4.2.2.GA and 5.0.0.beta4
JDK Version - 1.6.0_05
Windows XP

remote interface


  | @Remote
  | public interface AloRemote {
  |     String alo();
  | }
  | 

bean code


  | @Stateless
  | @RemoteBinding(jndiBinding="ejb/AloMundo")
  | public class AloBean implements AloRemote {
  | 
  |     public String alo() {
  |             return "Alo, Java EE";
  |     }
  | 
  | }
  | 

managed bean


  | public class Alo {
  |     
  |     @EJB(name="ejb/AloMundo")
  |     private AloRemote aloRemote;
  |     
  |     public String getAlo() {
  |                     return aloRemote.alo();
  |     }
  |     
  | }
  | 

will the jboss5GA fix this issue? how can I manage to overcome this situation?

regards,

marcus

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139958#4139958

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139958
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to