IBM Support

PI18025: JSPG0046E: UNABLE TO LOCATE TAGFILE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • JSPG0046E: Unable to locate tagfile <custom tag name> when
    using a custom tag with String[] as attribute type
    
    All these JSPs are using  custom tags  (files .tag located in
    WEB-INF/tags without TLD). These custom tags cannot be
    processed by WebSphere due to the error "JSPG0046E: Unable to
    locate tagfile".
    

Local fix

  • After changing the attribute type to "java.lang.Object", the
    problem does not occur anymore (but this workaround will
    require to rewrite all these tags in order to type cast the
    attributes !).
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Full and   *
    *                  Liberty Profile version 8.5.5 users of      *
    *                  JavaServer Pages (JSP).                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: A custom tag file which has an array    *
    *                      as an attribute type will fail to       *
    *                      compile.                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If the expected type of a custom tag attribute is an array the
    following exception will occur:
    com.ibm.ws.jsp.JspCoreException: JSPG0047E: Unable to locate
    tag library for uri /WEB-INF/tags
    at
    com.ibm.ws.jsp.translator.visitor.tagfiledep.TagFileDependencyVi
    sitor.visitCustomTagStart(TagFileDependencyVisitor.java:76)
    at
    com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(J
    spVisitor.java:366)
    at
    com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(Jsp
    Visitor.java:419)
    An example of an attribute directive in a tag file which would
    cause the exception:
    <%@ attribute name="test" required="true"
    type="java.lang.String[]" %>
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI18025

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-05-15

  • Closed date

    2014-07-31

  • Last modified date

    2014-12-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022