3 Replies Latest reply on Jun 16, 2003 4:33 PM by juhalindfors

    .tld error preventing simple .war deployment

    buckman1

      Alrighty, I changed my .tld file to use the jsp 1.2 syntax. Every time I try to display a simple page after deploying the .war file, it keeps giving me this error:

      HTTP ERROR: 500 XML parsing error on file /WEB-INF/tlds/bm.tld: (line 45, col 8): The content of element type "tag" must match "(name,tag-class,tei-class?,body-content?,display-name?,small-icon?,large-icon?,description?,variable*,attribute*,example?)".

      Now, mind you, I have looked over my .tld file and there doesn't seem to be any error I can see. Here it is:

      <?xml version="1.0" encoding="ISO-8859-1" ?>
      <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">


      <tlib-version>1.0</tlib-version>
      <jsp-version>1.2</jsp-version>
      <short-name>bm</short-name>
      A tag library


      daterange
      <tag-class>com.x.platform.presentation.tags.DateRangeTag</tag-class>
      Displays 6 selection boxes: start month/day/year and end month/day/year
      <body-content>EMPTY</body-content>

      beginDate
      true
      true


      endDate
      true
      true


      elementName
      true
      true


      hideMonth
      false
      true


      hideDay
      false
      true


      hideYear
      false
      true




      As far as I can tell, it is perfectly fine. I see no reason why I am getting this error, unless it is a bug in Jetty? I would think not. I am running the 3.2.1 JBoss/Jetty from the download page. I simply unzipped it, put my www.war in the /server/default/deploy dir, and started JBoss with the run.bat (windows machine). When I take out the inclusion of the .tld file from the index.jsp page, my page shows up fine. It is only while trying to parse my tld file that the problem occurs.

      Any help would be appreciated.