Hi,
  I am using appache-tomcat server.
I created a tag library with a taghandler class and TLD for that.

 I deployed the tag handler class file and TLD file under WEB-INF/lib.

I specify the taglib uri as /onjava and taglib location
as /WEB-INF/lib/tagtld.tld in the web.xml.
  In the jsp file i used the <taglib> directive mentioning the uri as /onjava.
When i try to run it the jsp container tells me
that
  org.apache.jasper.compiler.CompileException: C:\jakarta-tomcat-3.2.1\jakarta-tomcat-3.2.1\webapps\onjava\welcome.jsp(0,0) Unable to open taglibrary /onjava : Parse Error in the tag library descriptor: Document root element is missing.

What is the problem?
Can anybody help me.

My TLD file is

<?xml version="1.0" encoding="ISO-8859-1" ?>
<! doctype TAGLIB
    public "-//sun Microsystems, Inc.//DTD JSP Tag
Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<1-- a tag library descriptor -->

<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>rama</shortname>
<uri>/onjava</uri>
<tag>
<name>hello</name>
<tagclass>com.onjava.HelloTag</tagclass>
<bodycontent>empty</bodycontent>
<info>just says hello</info>
</tag>
</taglib>

My web.xml is
<?xml version="1.0" encoding="ISO-8859-1"?>

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

<web-app>
    <servlet>
        <servlet-name>
            login
        </servlet-name>
        <servlet-class>
            com.onjava.login
        </servlet-class>

    </servlet>
<taglib>
<taglib-uri>/onjava</taglib-uri>
<taglib-location>/WEB-INF/lib/taglib.tld</taglib-location>
</taglib>


  
</web-app>

Thanks in advance.
Regards,
Rama.