Hello, I also got this error message while trying to get the Fibo tutorial up and running: anonymous wrote : javax.servlet.ServletException: Lookup of java:comp/env/ failed and I solved it, but I'm not sure, if this is the state-of-the-art solution.
I'm using: Eclipse 3.1.2 JDK 1.5.0_06 JBOSS IDE 1.5.1.GA (JBossIDE-1.5.1.GA-ALL.zip from http://www.jboss.com/products/jbosside/downloads) JBoss Application Server 4.0.4.GA Now please don't laugh - it don't speak a single word chinese, but I got my solution from there: http://www.eclipseworld.org/bbs/simple/index.php?t490.html :-) In the ComputeServlet's init() method I changed this code Object ref = context.lookup("java:/comp/env/ejb/Fibo"); to this one: Object ref = context.lookup("ejb/Fibo"); and voilĂ , the example from the tutorial runs. It seems logical to me as the name shows up in http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss%3Aservice%3DJNDIView (click on list() !!) greetz from Germany Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944199#3944199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944199 ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
