In upgrading to 4.0.4.GA in the last day or so from 4.0.3SP1 if encountered a couple of issues in which i've had to refactor my code. I've sorted most of the problems out but now i'm left with one that baffles me.
What I am trying to do is reference an ejb3 stateless session bean from within a servlet. I'm doing this with: InitialContext ctx = new InitialContext(); | MySession mySession = (MySession) ctx.lookup(MySession.class.getName()); However I keep getting a namenotfoundexception. I have looked to see if the object is actually available within my packaging and it is. My packaging structure is below. MainPackage.war -->Ejb3Package.ejb3 ------>SessionBean.class ------>Session.class (my stateless session bean) -->TestSerlvlet.war ------>TestServlet.class (servlet that is referencing the session bean) Any ideas why this would happen? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947084#3947084 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947084 ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user