Thank you for your inputs
I made following changes

  | package com.mustafa.ejb30;
  | 
  | import javax.ejb.Local;
  | import javax.ejb.Remote;
  | import javax.ejb.Stateless;
  | import org.jboss.annotation.ejb.LocalBinding;
  | import org.jboss.annotation.ejb.RemoteBinding;
  | 
  | @Stateless
  | 
  | @Local ({HelloWorldLocal.class})
  | @LocalBinding (jndiBinding="MyEjb3/HelloWorldLocal")
  | @Remote ({HelloWorldRemote.class})
  | @RemoteBinding (jndiBinding="MyEjb3/HelloWorldRemote")
  | 
  | public class HelloWorldBean implements HelloWorldLocal , HelloWorldRemote
  | {
  |     //public static final String RemoteJNDIName = 
HelloWorldBean.class.getSimpleName() +"/remote";
  |     //public static final String LocalJNDIName = 
HelloWorldBean.class.getSimpleName() +"/local";
  | 
  |     public String sayHello(String name)
  |     {
  |             return("Hello "+name +" from your first EJB 3.0 component ...");
  |     }
  | }
  | 


and in client JSP I am calling by

  | hw = (HelloWorldLocal) ctx.lookup("MyEjb3/HelloWorldLocal");
  | 

I get a 

  | javax.naming.NameNotFoundException: MyEjb3 not bound
  |     org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
  |     org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
  |     org.jnp.server.NamingServer.getObject(NamingServer.java:543)
  |     org.jnp.server.NamingServer.lookup(NamingServer.java:267)
  |     org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
  |     org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  |     javax.naming.InitialContext.lookup(InitialContext.java:351)
  |     org.apache.jsp.index_jsp._jspService(index_jsp.java:57)
  |     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  |     javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |     
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
  |     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  |     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  |     javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |     
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 


or maybe way I package is wrong....
or maybe my server just got corrupted !

can somebody email me a simple bare minimum HelloWorld working example....with 
that I can cross check if my server is still sane :)

Thanks
Mustafa

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

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

Reply via email to