[jira] [Commented] (WW-4422) Component inside Component - "Could not render JSP template"

2016-09-28 Thread Lukasz Lenart (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15528859#comment-15528859
 ] 

Lukasz Lenart commented on WW-4422:
---

Postponing as I don't have any solution nor idea what's wrong, workaround 
exists :)

> Component inside Component - "Could not render JSP template"
> 
>
> Key: WW-4422
> URL: https://issues.apache.org/jira/browse/WW-4422
> Project: Struts 2
>  Issue Type: Bug
>  Components: Other
>Affects Versions: 2.3.16.3
> Environment: Windows, Pluto Portlets
>Reporter: Mark Goertzen
>  Labels: component
> Fix For: 2.3.x, 2.5.4
>
>
> Trying to render a Component inside a Component will fail with logged error 
> "JspTemplateEngine.error(34) | Could not render JSP template". There is a 
> workaround, which is simply to have ANY struts tag after the inner component 
> declared in the  of the outer component. Also, the inner component 
> only causes this failure when it has struts tags inside it.
> eg. This fails:
> {code:xml}
> 
>   
> 
>   
> 
>   
> 
> {code}
> Note that param body is rendered inside someTemplate.jsp like this:
> {code:xml}
> 
> {code}
> eg. This will work exactly as expected:
> {code:xml}
> 
>   
> 
>   
> 
> 
>   
> 
> {code}
> Note that the "if" tag can be any struts tag and it will work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4422) Component inside Component - "Could not render JSP template"

2016-09-21 Thread Lukasz Lenart (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15509415#comment-15509415
 ] 

Lukasz Lenart commented on WW-4422:
---

[~Skychan] whether it ever worked for you?

> Component inside Component - "Could not render JSP template"
> 
>
> Key: WW-4422
> URL: https://issues.apache.org/jira/browse/WW-4422
> Project: Struts 2
>  Issue Type: Bug
>  Components: Other
>Affects Versions: 2.3.16.3
> Environment: Windows, Pluto Portlets
>Reporter: Mark Goertzen
>  Labels: component
> Fix For: 2.3.31, 2.5.3
>
>
> Trying to render a Component inside a Component will fail with logged error 
> "JspTemplateEngine.error(34) | Could not render JSP template". There is a 
> workaround, which is simply to have ANY struts tag after the inner component 
> declared in the  of the outer component. Also, the inner component 
> only causes this failure when it has struts tags inside it.
> eg. This fails:
> {code:xml}
> 
>   
> 
>   
> 
>   
> 
> {code}
> Note that param body is rendered inside someTemplate.jsp like this:
> {code:xml}
> 
> {code}
> eg. This will work exactly as expected:
> {code:xml}
> 
>   
> 
>   
> 
> 
>   
> 
> {code}
> Note that the "if" tag can be any struts tag and it will work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4422) Component inside Component - "Could not render JSP template"

2016-09-21 Thread Lukasz Lenart (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15509067#comment-15509067
 ] 

Lukasz Lenart commented on WW-4422:
---

hmm... another thing - when you remove Struts tags from {{template2.jsp}} 
everything works ...

> Component inside Component - "Could not render JSP template"
> 
>
> Key: WW-4422
> URL: https://issues.apache.org/jira/browse/WW-4422
> Project: Struts 2
>  Issue Type: Bug
>  Components: Other
>Affects Versions: 2.3.16.3
> Environment: Windows, Pluto Portlets
>Reporter: Mark Goertzen
>  Labels: component
> Fix For: 2.3.31, 2.5.3
>
>
> Trying to render a Component inside a Component will fail with logged error 
> "JspTemplateEngine.error(34) | Could not render JSP template". There is a 
> workaround, which is simply to have ANY struts tag after the inner component 
> declared in the  of the outer component. Also, the inner component 
> only causes this failure when it has struts tags inside it.
> eg. This fails:
> {code:xml}
> 
>   
> 
>   
> 
>   
> 
> {code}
> Note that param body is rendered inside someTemplate.jsp like this:
> {code:xml}
> 
> {code}
> eg. This will work exactly as expected:
> {code:xml}
> 
>   
> 
>   
> 
> 
>   
> 
> {code}
> Note that the "if" tag can be any struts tag and it will work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4422) Component inside Component - "Could not render JSP template"

2016-09-21 Thread Lukasz Lenart (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15509022#comment-15509022
 ] 

Lukasz Lenart commented on WW-4422:
---

hmm ... {{}} has nothing to this issue ... when I have dropped all 
the those extra tags, it still the same.

> Component inside Component - "Could not render JSP template"
> 
>
> Key: WW-4422
> URL: https://issues.apache.org/jira/browse/WW-4422
> Project: Struts 2
>  Issue Type: Bug
>  Components: Other
>Affects Versions: 2.3.16.3
> Environment: Windows, Pluto Portlets
>Reporter: Mark Goertzen
>  Labels: component
> Fix For: 2.3.31, 2.5.3
>
>
> Trying to render a Component inside a Component will fail with logged error 
> "JspTemplateEngine.error(34) | Could not render JSP template". There is a 
> workaround, which is simply to have ANY struts tag after the inner component 
> declared in the  of the outer component. Also, the inner component 
> only causes this failure when it has struts tags inside it.
> eg. This fails:
> {code:xml}
> 
>   
> 
>   
> 
>   
> 
> {code}
> Note that param body is rendered inside someTemplate.jsp like this:
> {code:xml}
> 
> {code}
> eg. This will work exactly as expected:
> {code:xml}
> 
>   
> 
>   
> 
> 
>   
> 
> {code}
> Note that the "if" tag can be any struts tag and it will work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4422) Component inside Component - "Could not render JSP template"

2016-09-20 Thread Lukasz Lenart (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15508935#comment-15508935
 ] 

Lukasz Lenart commented on WW-4422:
---

Thanks [~sdutry]! I have tested with prior versions and the result is the same 
- it never worked. I think the problem lays in behaviour of {{}} tag 
which doesn't generate {{body}}, it just passes value to an ancestor and 
returns {{false}} which means for JSPs to stop rendering. You can observe this 
behaviour by moving {{}} tag above {{}} - the page will fail the same.

> Component inside Component - "Could not render JSP template"
> 
>
> Key: WW-4422
> URL: https://issues.apache.org/jira/browse/WW-4422
> Project: Struts 2
>  Issue Type: Bug
>  Components: Other
>Affects Versions: 2.3.16.3
> Environment: Windows, Pluto Portlets
>Reporter: Mark Goertzen
>  Labels: component
> Fix For: 2.3.31, 2.5.3
>
>
> Trying to render a Component inside a Component will fail with logged error 
> "JspTemplateEngine.error(34) | Could not render JSP template". There is a 
> workaround, which is simply to have ANY struts tag after the inner component 
> declared in the  of the outer component. Also, the inner component 
> only causes this failure when it has struts tags inside it.
> eg. This fails:
> {code:xml}
> 
>   
> 
>   
> 
>   
> 
> {code}
> Note that param body is rendered inside someTemplate.jsp like this:
> {code:xml}
> 
> {code}
> eg. This will work exactly as expected:
> {code:xml}
> 
>   
> 
>   
> 
> 
>   
> 
> {code}
> Note that the "if" tag can be any struts tag and it will work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4422) Component inside Component - "Could not render JSP template"

2016-09-20 Thread Stefaan Dutry (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15507646#comment-15507646
 ] 

Stefaan Dutry commented on WW-4422:
---

I don't seem to be able to find the cause or a solution for the issue.

I did make a mini project that duplicates the problem:
* git repo: [https://github.com/sdutry/test-components-issue]
* {{mvn install}} current snapshot version of struts
* run project with {{mvn jetty:run}}
** url working page: [http://localhost:8080/working]
** url failing page: [http://localhost:8080/failing]

What i have been able to deduce:
* Same OgnlValueStack object for both components
* different value for PageContext on the valueStack
** request is null on new PageContext
** response is null on new PageContext
* on the UIBean (Component)
** reference to request object present
** reference to response object present
** writer for response object has been closed

> Component inside Component - "Could not render JSP template"
> 
>
> Key: WW-4422
> URL: https://issues.apache.org/jira/browse/WW-4422
> Project: Struts 2
>  Issue Type: Bug
>  Components: Other
>Affects Versions: 2.3.16.3
> Environment: Windows, Pluto Portlets
>Reporter: Mark Goertzen
>  Labels: component
> Fix For: 2.3.31, 2.5.3
>
>
> Trying to render a Component inside a Component will fail with logged error 
> "JspTemplateEngine.error(34) | Could not render JSP template". There is a 
> workaround, which is simply to have ANY struts tag after the inner component 
> declared in the  of the outer component. Also, the inner component 
> only causes this failure when it has struts tags inside it.
> eg. This fails:
> {code:xml}
> 
>   
> 
>   
> 
>   
> 
> {code}
> Note that param body is rendered inside someTemplate.jsp like this:
> {code:xml}
> 
> {code}
> eg. This will work exactly as expected:
> {code:xml}
> 
>   
> 
>   
> 
> 
>   
> 
> {code}
> Note that the "if" tag can be any struts tag and it will work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4422) Component inside Component - "Could not render JSP template"

2016-09-18 Thread Stefaan Dutry (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15501161#comment-15501161
 ] 

Stefaan Dutry commented on WW-4422:
---

Problem seems to be a different instance of the PageContextImpl.

{code:none|title=debugging when error occurs (inside JspTemplateEngine)}
org.apache.struts2.components.template.TemplateRenderingContext@6b911886
com.opensymphony.xwork2.ognl.OgnlValueStack@53a1b9bd
org.apache.jasper.runtime.PageContextImpl@7ec4b210

org.apache.struts2.components.template.TemplateRenderingContext@155b953e
com.opensymphony.xwork2.ognl.OgnlValueStack@53a1b9bd
org.apache.jasper.runtime.PageContextImpl@3641544e
{code}

{code:none|title=debugging when error doesn't occur (inside JspTemplateEngine)}
org.apache.struts2.components.template.TemplateRenderingContext@504bd225
com.opensymphony.xwork2.ognl.OgnlValueStack@73183b04
org.apache.jasper.runtime.PageContextImpl@747ebde6

org.apache.struts2.components.template.TemplateRenderingContext@35e53a71
com.opensymphony.xwork2.ognl.OgnlValueStack@73183b04
org.apache.jasper.runtime.PageContextImpl@747ebde6
{code}

> Component inside Component - "Could not render JSP template"
> 
>
> Key: WW-4422
> URL: https://issues.apache.org/jira/browse/WW-4422
> Project: Struts 2
>  Issue Type: Bug
>  Components: Other
>Affects Versions: 2.3.16.3
> Environment: Windows, Pluto Portlets
>Reporter: Mark Goertzen
>  Labels: component
> Fix For: 2.3.31, 2.5.3
>
>
> Trying to render a Component inside a Component will fail with logged error 
> "JspTemplateEngine.error(34) | Could not render JSP template". There is a 
> workaround, which is simply to have ANY struts tag after the inner component 
> declared in the  of the outer component. Also, the inner component 
> only causes this failure when it has struts tags inside it.
> eg. This fails:
> {code:xml}
> 
>   
> 
>   
> 
>   
> 
> {code}
> Note that param body is rendered inside someTemplate.jsp like this:
> {code:xml}
> 
> {code}
> eg. This will work exactly as expected:
> {code:xml}
> 
>   
> 
>   
> 
> 
>   
> 
> {code}
> Note that the "if" tag can be any struts tag and it will work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4422) Component inside Component - "Could not render JSP template"

2016-09-18 Thread Stefaan Dutry (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15501121#comment-15501121
 ] 

Stefaan Dutry commented on WW-4422:
---

The problem is a {{NullPointerException}} occurring.

* class: {{org.apache.struts2.components.Include}}
* method: {{include}}
* line: {{247}}
* Problem: {{request}} argument is null during second evaluation (meaning the 
outer component)

I'll try to debug further to see what causes the {{request}} argument to become 
{{null}} .

> Component inside Component - "Could not render JSP template"
> 
>
> Key: WW-4422
> URL: https://issues.apache.org/jira/browse/WW-4422
> Project: Struts 2
>  Issue Type: Bug
>  Components: Other
>Affects Versions: 2.3.16.3
> Environment: Windows, Pluto Portlets
>Reporter: Mark Goertzen
>  Labels: component
> Fix For: 2.3.31, 2.5.3
>
>
> Trying to render a Component inside a Component will fail with logged error 
> "JspTemplateEngine.error(34) | Could not render JSP template". There is a 
> workaround, which is simply to have ANY struts tag after the inner component 
> declared in the  of the outer component. Also, the inner component 
> only causes this failure when it has struts tags inside it.
> eg. This fails:
> {code:xml}
> 
>   
> 
>   
> 
>   
> 
> {code}
> Note that param body is rendered inside someTemplate.jsp like this:
> {code:xml}
> 
> {code}
> eg. This will work exactly as expected:
> {code:xml}
> 
>   
> 
>   
> 
> 
>   
> 
> {code}
> Note that the "if" tag can be any struts tag and it will work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (WW-4422) Component inside Component - "Could not render JSP template"

2016-09-05 Thread Lukasz Lenart (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15466550#comment-15466550
 ] 

Lukasz Lenart commented on WW-4422:
---

Can you post content of the both JSP files?

> Component inside Component - "Could not render JSP template"
> 
>
> Key: WW-4422
> URL: https://issues.apache.org/jira/browse/WW-4422
> Project: Struts 2
>  Issue Type: Bug
>  Components: Other
>Affects Versions: 2.3.16.3
> Environment: Windows, Pluto Portlets
>Reporter: Mark Goertzen
>  Labels: component
> Fix For: 2.3.31, 2.5.3
>
>
> Trying to render a Component inside a Component will fail with logged error 
> "JspTemplateEngine.error(34) | Could not render JSP template". There is a 
> workaround, which is simply to have ANY struts tag after the inner component 
> declared in the  of the outer component. Also, the inner component 
> only causes this failure when it has struts tags inside it.
> eg. This fails:
> {code:xml}
> 
>   
> 
>   
> 
>   
> 
> {code}
> Note that param body is rendered inside someTemplate.jsp like this:
> {code:xml}
> 
> {code}
> eg. This will work exactly as expected:
> {code:xml}
> 
>   
> 
>   
> 
> 
>   
> 
> {code}
> Note that the "if" tag can be any struts tag and it will work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)