1 Reply Latest reply on Aug 13, 2004 6:04 PM by Colby Brown

    Finish the tutorial!

    jaf8252 Newbie

      Hi, i finished the Tusc tutorial. It was harder to finish, due some errors or bad interpretations, but it value the pain.
      If you need some help, tell me.

        • 1. Re: Finish the tutorial!
          Colby Brown Newbie

          I'm having some issues getting the tutorial to run. It appears to be something to do with the jndi lookup in the servlet.

          I noticed that the xdoclet code completions didn't work for the following section in the JavaDocs in the servlet.

          ...
          * @jboss.ejb-ref-jndi ref-name = "ejb/Fibo"
          * jndi-name = "ejb/tutorial/Fibo"
          ...

          I tried to type it in anyways and everything seemed to build and deploy fine. The problems show up when I try to run the servlet. I get the following error:

          javax.servlet.ServletException: Lookup of java:/comp/env/ failed
          tutorial.web.ComputeServlet.init(ComputeServlet.java:112)
          javax.servlet.GenericServlet.init(GenericServlet.java:211)
          org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
          org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
          org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
          org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
          org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
          org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
          org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
          org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
          java.lang.Thread.run(Thread.java:534)

          Any help/clues as to what I've done wrong would be much appreciated.

          Thanks.