Urgent: Unable to locate tag library error in WAS 6.0

Hi All,

I have just shifted to WAS 6.0 in RSA 6 and I am getting the below error:

SRVE0026E: [Servlet Error]-[JSPG0047E: Unable to locate tag libraryfor uri /WEB-INF/tld/XyzTag.tld ]: com.ibm.ws.jsp.JspCoreException: JSPG0047E: Unable to locate tag libraryfor uri /WEB-INF/tld/XyzTag.tld

at com.ibm.ws.jsp.translator.visitor.tagfiledep.TagFileDependencyVisitor.visitCustomTagStart(TagFileDependencyVisitor.java:70)

at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:253)

at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:286)

at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:125)

at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:110)

at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:121)

at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:168)

I have found out that this is a known issue with RSA6 and WAS 6, but not able to find any solution for this.

I am using JSP 2.0 specification.

Web.xml looks like this:

<taglib>

<taglib-uri>/WEB-INF/Xyz.tld</taglib-uri>

<taglib-location>/WEB-INF/tld/XyzTag.tld</taglib-location>

</taglib>

And my jsp looks like this:

<%@ taglib uri="/WEB-INF/XyzTag.tld" prefix="xyz" %>

This was working fine on WAS 5.1. After moving to WAS 6.0 and JSP 2.0 , do I need to make any changes to this. Please help.

Any response is appreciated. Thanks.

[1745 byte] By [meeramVa] at [2007-10-3 11:22:34]
# 1

I had the same issue with WAS 6.1.0.2. I do not have a solution, but a workaround. I hope the workaround I have works for you too.

In my case, I have the TLD files deployed in a jar. So, the JSP 2.0 container is supposed to read those TLD files from the jar file. Since that was not happening, I extracted the TLD file from the jar file and placed it under my web project's WEB-INF folder.

I restarted my server and after that it worked.

Look at the IBM site to see if they have come up with a patch for WAS 6.0.

Hope this helps.

-Javier

jfggdla at 2007-7-15 13:47:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...