4 Replies Latest reply on Jan 25, 2002 7:14 AM by adrian.brock

    JBOSS 3 - local interface - servlet - ejb not bound

    miguel2

      Hi jbosses,

      I'm trying out XDOCLET with JBOSS 3. It is like a dream how XDOCLET generates the whole "redundant" stuff.

      However, I experienced some turbulence running my servlet trying

      ...

      Context initial = new InitialContext();
      Object objref = iniitial.lookup("java:comp/env/ejb/RecordManagement");
      RecordManagementLocalHome recordManagementLocalHome = (RecordManagementLocalHome) objref;

      ...

      in my servlet's init method. I always get an "ejb not bound" naming exception.


      web.xml entries look like this

      ...

      <ejb-local-ref>
      <ejb-ref-name>ejb/RecordManagement</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <local-home>es.foo.control.RecordManagementLocalHome</local-home>
      es.foo.control.RecordManagementLocal
      <ejb-link>RecordManagement</ejb-link>
      </ejb-local-ref>

      ...

      jboss-web.xml is empty (as mentioned in tutorial "Internal EJB reference"
      http://www.jboss.org/online-manual/HTML/ch07s22.html)

      Could it be that the bundled jetty version does not support local interfaces ?

      The version of jboss3 I use is from cvs, 01/07/02.

      cheers,

      Mige