You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Juby Jose (JIRA)" <ji...@apache.org> on 2010/03/07 18:33:27 UTC

[jira] Created: (STR-3201) tiles:insert not working for Wepshere 6.1

tiles:insert not working for Wepshere 6.1
-----------------------------------------

                 Key: STR-3201
                 URL: https://issues.apache.org/jira/browse/STR-3201
             Project: Struts 1
          Issue Type: Bug
          Components: Tiles 1 Plugin
    Affects Versions: 1.1.0
         Environment: os: solaris 8, Application server: websphere 6.1
            Reporter: Juby Jose
            Priority: Critical


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STR-3201) tiles:insert not working for Wepshere 6.1

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STR-3201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842501#action_12842501 ] 

Niall Pemberton commented on STR-3201:
--------------------------------------

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



> tiles:insert not working for Wepshere 6.1
> -----------------------------------------
>
>                 Key: STR-3201
>                 URL: https://issues.apache.org/jira/browse/STR-3201
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Tiles 1 Plugin
>    Affects Versions: 1.1.0
>         Environment: os: solaris 8, Application server: websphere 6.1
>            Reporter: Juby Jose
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (STR-3201) tiles:insert not working for Wepshere 6.1

Posted by "Juby Jose (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STR-3201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juby Jose updated STR-3201:
---------------------------


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$


> tiles:insert not working for Wepshere 6.1
> -----------------------------------------
>
>                 Key: STR-3201
>                 URL: https://issues.apache.org/jira/browse/STR-3201
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Tiles 1 Plugin
>    Affects Versions: 1.1.0
>         Environment: os: solaris 8, Application server: websphere 6.1
>            Reporter: Juby Jose
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STR-3201) tiles:insert not working for Wepshere 6.1

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STR-3201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842731#action_12842731 ] 

Niall Pemberton commented on STR-3201:
--------------------------------------

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:

... 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.

> tiles:insert not working for Wepshere 6.1
> -----------------------------------------
>
>                 Key: STR-3201
>                 URL: https://issues.apache.org/jira/browse/STR-3201
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Tiles 1 Plugin
>    Affects Versions: 1.1.0
>         Environment: os: solaris 8, Application server: websphere 6.1
>            Reporter: Juby Jose
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (STR-3201) tiles:insert not working for Wepshere 6.1

Posted by "Juby Jose (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STR-3201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842773#action_12842773 ] 

Juby Jose commented on STR-3201:
--------------------------------

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

> tiles:insert not working for Wepshere 6.1
> -----------------------------------------
>
>                 Key: STR-3201
>                 URL: https://issues.apache.org/jira/browse/STR-3201
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Tiles 1 Plugin
>    Affects Versions: 1.1.0
>         Environment: os: solaris 8, Application server: websphere 6.1
>            Reporter: Juby Jose
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (STR-3201) tiles:insert not working for Wepshere 6.1

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STR-3201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842731#action_12842731 ] 

Niall Pemberton edited comment on STR-3201 at 3/8/10 4:57 PM:
--------------------------------------------------------------

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.

      was (Author: niallp):
    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:

... 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.
  
> tiles:insert not working for Wepshere 6.1
> -----------------------------------------
>
>                 Key: STR-3201
>                 URL: https://issues.apache.org/jira/browse/STR-3201
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Tiles 1 Plugin
>    Affects Versions: 1.1.0
>         Environment: os: solaris 8, Application server: websphere 6.1
>            Reporter: Juby Jose
>            Priority: Critical
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.