0 Replies Latest reply on May 1, 2006 1:57 PM by Don Seiler

    Yet another tutorial flunkie

    Don Seiler Newbie

      Trying to run through the FiboApp tutorial, getting an exception when I try to compute.

      here are the relevant versions:
      jboss-4.0.3sp1
      jdk-1.5.0_06
      eclipse-sdk-3.1.2
      jboss-ide-1.5.1GA

      As the tutorial and other forum posts said, I didn't build the -client into the WAR or EJB JAR.

      Any hints would be very helpful. I'm totally new to Eclipse and only slightly less new to JBoss (I've successfully made an EJB in NetBeans).

      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: Lookup of java:/comp/env/ failed
       tutorial.web.ComputeServlet.init(ComputeServlet.java:53)
       org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
       org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
       org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
       org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       java.lang.Thread.run(Unknown Source)
      
      root cause
      
      javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: ejb not bound]
       org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1052)
       org.jnp.interfaces.NamingContext.lookup(NamingContext.java:685)
       org.jnp.interfaces.NamingContext.lookup(NamingContext.java:701)
       org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
       javax.naming.InitialContext.lookup(Unknown Source)
       tutorial.web.ComputeServlet.init(ComputeServlet.java:50)
       org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
       org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
       org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
       org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       java.lang.Thread.run(Unknown Source)
      
      root cause
      
      javax.naming.NameNotFoundException: ejb not bound
       org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
       org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
       org.jnp.server.NamingServer.getObject(NamingServer.java:528)
       org.jnp.server.NamingServer.lookup(NamingServer.java:252)
       org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
       org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
       javax.naming.InitialContext.lookup(Unknown Source)
       org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1046)
       org.jnp.interfaces.NamingContext.lookup(NamingContext.java:685)
       org.jnp.interfaces.NamingContext.lookup(NamingContext.java:701)
       org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
       javax.naming.InitialContext.lookup(Unknown Source)
       tutorial.web.ComputeServlet.init(ComputeServlet.java:50)
       org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
       org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
       org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
       org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
       org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
       org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       java.lang.Thread.run(Unknown Source)
      
      note The full stack trace of the root cause is available in the Apache Tomcat/5.5 logs.