IBM Support

PM38186: JSPG0240E: ATTEMPT TO REDEFINE THE PREFIX WHEN IT WAS ALREADY DEFINED IN CURRENT SCOPE ERROR IN WEBSPHERE APPLICATION SERVER 7

Fixes are available

7.0.0.19: WebSphere Application Server V7.0 Fix Pack 19
7.0.0.21: WebSphere Application Server V7.0 Fix Pack 21
7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server
Obtain the fix for this APAR.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Duplicate entry of the tagdir tag will cause a translation error
    in WebSphere Application Server 7.0 even when the prefix being
    redefined is in the same namespace URI. According to the JSP2.1
    Specs:
    
    If a taglib directive is encountered in a standard syntax page
    that attempts to redefine a prefix that is already defined
    in the current scope (by a JSP segment in either syntax), a
    translation error must occur unless that prefix is being
    redefined to the same namespace URI.
    
    A translation error should not be thrown in this scenario.
    

Local fix

  • To allow taglib redefinitions for an app, you can either set
    the following JSP attribute:
    
    <jsp-attribute name="allowTaglibPrefixRedefinition"
    value="true"/>
    
    Or you can set a webcontainer custom property for the server
    (note this will affect all apps on the server):
    
    Admin Console -> Application servers -> (serverName) -> Web
    container -> Custom properties :
    
    com.ibm.wsspi.jsp.allowtaglibprefixredefinition=true
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Version    *
    *                  7.0 users of JavaServer Pages (JSP).        *
    ****************************************************************
    * PROBLEM DESCRIPTION: A taglib directive that redefines a     *
    *                      prefix that is already defined with     *
    *                      the same namespace URI causes a         *
    *                      translation error.                      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The following translation error occurs when redefining a taglib
    directive:
    
    JSPG0240E: Attempt to redefine the prefix "test" to
    "urn:jsptagdir:/WEB-INF/tags/test", when it was already
    defined as
    "/WEB-INF/tags/test" in the current scope.
    
    An example of the redefinition that causes the error is:
    <%test.inc%>
    <%@taglib prefix="test" tagdir="/WEB-INF/tags/test" %>
    
    <%test.tag%>
    <%@include file="test.inc" %>
    <%@taglib prefix="test" tagdir="/WEB-INF/tags/test" %>
    
    There should be no error since the same URI is being used in
    both definitions of the "test" prefix: "/WEB-INF/tags/test".
    

Problem conclusion

  • The JSP container was updated to allow  the redefinition of a
    prefix as long as they have the same URI.
    
    APAR PM38186 is currently targeted for inclusion in
    Service Level 7.0.0.19  of WebSphere Application Server V7.0.
    
    Please refer to URL:
    //www.ibm.com/support/docview.wss?rs=404&uid=swg27006970
    for Fix Pack availability.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM38186

  • Reported component name

    WEBSPHERE FOR Z

  • Reported component ID

    5655I3500

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-02

  • Closed date

    2011-06-23

  • Last modified date

    2011-10-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

    WEBSPHERE FOR Z

  • Fixed component ID

    5655I3500

Applicable component levels

  • R700 PSY UK71297

       UP11/09/10 P F109

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

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

Document Information

Modified date:
27 October 2021