6 Replies Latest reply on Feb 23, 2003 12:12 PM by Peter Doornbosch

    org.xml.sax.SAXParseException: Element "web-app" does not a

    Vandenbroucke Johan Newbie

      Hello,

      I have problem to get running the servlet session activate and passivate listener running.
      I'm using jbos3.0.4-jetty with following web-xml included
      in the war.
      //========== part of web.xml ===============//
      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
      <web-app>
      <listener-class>com.myclass.servlet.Listener</listener-class>

      //=========================================

      When i start the server its generates following exception

      //==============================================
      org.xml.sax.SAXParseException: Element "web-app" does not allow "listener" here.
      //============================================
      Can sombody tell me how this comes and what the solutions is?

      Greetings

      Johan
      @rrowUp nv
      Belgium