<taglib>
...
<tag>
<name>myTag</name>
<tag-class>MyTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
...
</taglib>
i know the above code is OK.was your code on a mock exam?
is there a valid tag <type> inside <attribute> tag?