1 Reply Latest reply on Apr 11, 2002 7:48 PM by Alfredo Matias Reed

    The Jboss, Catalina bundle & local interface

    vernon wu Newbie

      The bundle already exists for some time. It allows both JBoss and Tomcat 4 run on the same VM. Under this configuration, the web container shall be able to locate an EJB through the local interface rather than the remote one. There are quite some threads on the local interface in this forum. Since I have learnt that the local interface has been implemented in the current release (2.4.x), I tried to involve a session bean locally from a servlet. When I deploy the test application, I get the following error message:

      [INFO,Default] org.xml.sax.SAXParseException: Element "web-app" does not allow "ejb-local-ref" here.
      [ERROR,EmbeddedCatalinaServiceSX] ContextConfig[/interest] Parse error in application web.xml
      ...

      Is any way I can go around this problem since local interface is implemented?

      Thank,

      v.

        • 1. Re: The Jboss, Catalina bundle & local interface
          Alfredo Matias Reed Newbie

          first of all you need to make sure that the DTD in your web.xml is

          <!DOCTYPE web-app
          PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
          "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">


          the key here is the version: it must be "web-app_2_3", not "web-app_2_2".

          the 2.2 spec does not recognize ejb-local-ref, and thus the message you are getting.


          but alas, this is not all. even though JBoss 2.4.4 supports local interfaces, the AbstractWebContainer does not (it does not take into account <ejb-local-ref> in web.xml). looking at the CVS repository it turns out support for this is already in JBoss 2.4.5 RC 1, and in the 3.0 beta as well.

          hopefully 2.4.5 will be finally released soon.