2 Replies Latest reply on Jun 29, 2004 6:17 AM by tomacland

    Error installing JSTL 1.1

    atomas

      I'm trying to use JSTL 1.1 but I'm getting an error when I try to deploy the app:

      Document root element "taglib", must match DOCTYPE root "null".
      org.xml.sax.SAXParseException: Document root element "taglib", must match DOCTYPE root "null".
      ...

      Maybe I did something wrong (for sure!):

      1st: I put standard.jar / jstl.jar within WEB-INF/lib
      2nd: I added a TAGLIB element to the web.xml descriptor.

      After that, I've been told that step 2 was not necessary. Even changing back step-2, same error ocurrs.

      Where is the mistake?

      Thanks a lot.

        • 1. Re: Error installing JSTL 1.1
          oacis

          You should check your web.xml file to ensure that the xml elements are in order. (this also goes for all of the deployment xml files).

          For example:

          If you get an error such as the following in deployment:

          ...The content of element type "<insert_element>" must match
          "(<insert_sub_element>?,<insert_sub_element>,<insert_sub_element>*,<insert_sub_element>)" ..

          Then the sub-elements should be put in the same order as the error message.

          Should deploy now.
          +++OAC+++

          • 2. Re: Error installing JSTL 1.1
            tomacland

            I had the same problem. I was running JBoss 3.2.3 (Tomcat 4.x). Upgrading to a later JBoss release (3.2.5) that included Tomcat 5 fixed the problem. See the note on the Jakarta taglibs site (http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html) for the reason why this is so.