Struts 1
  1. Struts 1
  2. STR-3201

tiles:insert not working for Wepshere 6.1

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.1.0
    • Fix Version/s: None
    • Component/s: Tiles 1 Plugin
    • Labels:
      None
    • Environment:
      os: solaris 8, Application server: websphere 6.1

      Description

      The tiles:insert tag is not functional after migrating from Websphere 5 to websphere 6.1

      The interesting thing is if we duplicate the tiles:insert tag it is able to insert the jsp page and everthing works fine..

      Thanks is advance
      Regards
      Juby

        Activity

        Hide
        Juby Jose added a comment -

        Hi ,
        I tried to turn off tag pooling in websphere, but still no luck..

        Could you please guide me on different debugging techniques which i can use to chalk out the root cause.

        i found one debugging technique given for struts-tiles, let me know if this is going to be helpful.

        Note: The Tiles framework now uses the commons-logging package to output different information or debug statements. Please refer to this package documentation to enable it. The simplest way to enable logging is to create two files in WEB-INF/classes:
        commons-logging.properties
        org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
        simplelog.properties

        1. Logging detail level,
        2. Must be one of ("trace", "debug", "info", "warn", "error", or "fatal").
          org.apache.commons.logging.simplelog.defaultlog=trace

        Also i am able to download struts 1.2.9 from home. As a next step we will use this to build our enterprise application.

        Thanks
        Juby

        Show
        Juby Jose added a comment - Hi , I tried to turn off tag pooling in websphere, but still no luck.. Could you please guide me on different debugging techniques which i can use to chalk out the root cause. i found one debugging technique given for struts-tiles, let me know if this is going to be helpful. Note: The Tiles framework now uses the commons-logging package to output different information or debug statements. Please refer to this package documentation to enable it. The simplest way to enable logging is to create two files in WEB-INF/classes: commons-logging.properties org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog simplelog.properties Logging detail level, Must be one of ("trace", "debug", "info", "warn", "error", or "fatal"). org.apache.commons.logging.simplelog.defaultlog=trace Also i am able to download struts 1.2.9 from home. As a next step we will use this to build our enterprise application. Thanks Juby
        Hide
        Niall Pemberton added a comment - - edited

        The location you have for Struts 1.2.9 is correct - that is the official archive. Someone else reported the same type of problem downloading Struts 1.2.9 - but it works fine tor me - see STR-3200. Seems that some company networks cause an issue.

        I can't really suggest a workaround because I don't know really the cause of the issue. The first step is to work out what the problem is. I found the following article on Tag Pooling in Websphere:

        http://www.ibm.com/developerworks/websphere/techjournal/0403_johnson/0403_johnson.html

        ... looks like you can "turn it off for page". I would suggest trying that and see if your problem is resolved. If it is then you can either do that OR you could patch the insert tag with the latest code and use that.

        If that isn't the problem then you need to find out what is.

        Show
        Niall Pemberton added a comment - - edited The location you have for Struts 1.2.9 is correct - that is the official archive. Someone else reported the same type of problem downloading Struts 1.2.9 - but it works fine tor me - see STR-3200 . Seems that some company networks cause an issue. I can't really suggest a workaround because I don't know really the cause of the issue. The first step is to work out what the problem is. I found the following article on Tag Pooling in Websphere: http://www.ibm.com/developerworks/websphere/techjournal/0403_johnson/0403_johnson.html ... looks like you can "turn it off for page". I would suggest trying that and see if your problem is resolved. If it is then you can either do that OR you could patch the insert tag with the latest code and use that. If that isn't the problem then you need to find out what is.
        Hide
        Juby Jose added a comment -

        Hi,
        We are not able to download struts 1.2.9. we found one location(http://archive.apache.org/dist/struts/binaries/), but failed to unzip the same.

        Could you please provide us the download location as well as let us know if there is any workaround available.

        More details on the issue:

        In our "baseLayout.jsp" we have 'accueil' attribute which is not able to insert authentification.jsp .

        <td valign='middle'><tiles:insert attribute='accueil'/></td>

        The attribute 'accueil' is mapped to authetification.jsp in tiles-config.xml file.
        <!-- Authentification Page definition -->
        <definition name=".authentification" extends="baseLayout">
        <put name="document.title" value="Ocean Authentication Page"/>
        <put name="accueil" value="/common/authentification.jsp"/>
        </definition>
        The struts-config.xml has entry of tiles-config.xml
        <!-- Plugin pour l'utilisation des Tiles Struts -->
        <plug-in className="org.apache.struts.tiles.TilesPlugin" >
        <set-property property="definitions-config" value="/WEB-INF/tiles-config.xml" />
        <set-property property="definitions-debug" value="2" />
        <set-property property="definitions-parser-details" value="2" />
        <set-property property="definitions-parser-validate" value="true" />
        </plug-in>

        But what we found is, if we duplicated the <tiles:insert> command, it works fine as shown below:

        baseLayout.jsp:

        .....
        .....
        <td valign='middle'><tiles:insert attribute='accueil' /> <tiles:insert page="/common/test.jsp" flush="true" /> </td>

        </tr>
        </table>

        Cat ../common/test.jsp

        bash-3.00$ cat test.jsp
        <html>
        <head> </head>
        </html>
        bash-3.00$

        Show
        Juby Jose added a comment - Hi, We are not able to download struts 1.2.9. we found one location( http://archive.apache.org/dist/struts/binaries/ ), but failed to unzip the same. Could you please provide us the download location as well as let us know if there is any workaround available. More details on the issue: In our "baseLayout.jsp" we have 'accueil' attribute which is not able to insert authentification.jsp . <td valign='middle'><tiles:insert attribute='accueil'/></td> The attribute 'accueil' is mapped to authetification.jsp in tiles-config.xml file. <!-- Authentification Page definition --> <definition name=".authentification" extends="baseLayout"> <put name="document.title" value="Ocean Authentication Page"/> <put name="accueil" value="/common/authentification.jsp"/> </definition> The struts-config.xml has entry of tiles-config.xml <!-- Plugin pour l'utilisation des Tiles Struts --> <plug-in className="org.apache.struts.tiles.TilesPlugin" > <set-property property="definitions-config" value="/WEB-INF/tiles-config.xml" /> <set-property property="definitions-debug" value="2" /> <set-property property="definitions-parser-details" value="2" /> <set-property property="definitions-parser-validate" value="true" /> </plug-in> But what we found is, if we duplicated the <tiles:insert> command, it works fine as shown below: baseLayout.jsp: ..... ..... <td valign='middle'><tiles:insert attribute='accueil' /> <tiles:insert page="/common/test.jsp" flush="true" /> </td> </tr> </table> Cat ../common/test.jsp bash-3.00$ cat test.jsp <html> <head> </head> </html> bash-3.00$
        Hide
        Niall Pemberton added a comment -

        Struts 1.1 is pretty old even by Struts 1 standards and the problem here is that we fixed alot of bugs since that version.

        At a guess this is probably something like STR-1473 which was a "tag pooling" issue and could appear if there was a change in how Websphere pools tags from 5 to 6.1 - it might also explain why copying the tag would resolve the issue since you're new tag would be pooled separately from the Struts version. If its not that though its probably something similar and theres a good chance its fixed in a later Struts release.

        Anyway the reality is there is never going to be a fix version for Struts 1.1 so you really have two choices:

        • Patch your own version of Struts 1.1 to fix the problem
        • upgrade to a later release of Struts which (hopefully!) has the issue resolved

        I would recommend upgrading to Struts 1.2.9 to see if your issue is resolved, there are upgrade notes here:

        Show
        Niall Pemberton added a comment - Struts 1.1 is pretty old even by Struts 1 standards and the problem here is that we fixed alot of bugs since that version. At a guess this is probably something like STR-1473 which was a "tag pooling" issue and could appear if there was a change in how Websphere pools tags from 5 to 6.1 - it might also explain why copying the tag would resolve the issue since you're new tag would be pooled separately from the Struts version. If its not that though its probably something similar and theres a good chance its fixed in a later Struts release. Anyway the reality is there is never going to be a fix version for Struts 1.1 so you really have two choices: Patch your own version of Struts 1.1 to fix the problem upgrade to a later release of Struts which (hopefully!) has the issue resolved I would recommend upgrading to Struts 1.2.9 to see if your issue is resolved, there are upgrade notes here: http://wiki.apache.org/struts/StrutsUpgrade

          People

          • Assignee:
            Unassigned
            Reporter:
            Juby Jose
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development