You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Roberto Nunnari <ro...@supsi.ch> on 2007/06/26 00:51:50 UTC

Tiles exeption after upgrading from Struts 2.0.6 to 2.0.8

Hello everybody.

I'm trying to upgrade my webapp from Struts 2.0.6 to 2.0.8

I'm using the Tiles-plugin and with the new version
when I request a page it throws exeptions.
The stacktrace is too long to be
posted here but the exeptions start like this:

26-giu-2007 00:36:00 org.apache.tiles.jsp.context.JspTilesRequestContext 
include
GRAVE: JSPException while including path '/WEB-INF/tiles/content/home.jsp'.
javax.servlet.jsp.JspException: ServletException while including page.
         at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)

....

26-giu-2007 00:36:02 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport 
doEndTag
GRAVE: IO Error executing tag: JSPException while including path 
'/WEB-INF/tiles/content/home.jsp'. ServletException while including page.
java.io.IOException: JSPException while including path 
'/WEB-INF/tiles/content/home.jsp'. ServletException while including page.
         at 
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91)

....

26-giu-2007 00:36:02 org.apache.tiles.jsp.taglib.RenderTagSupport doCatch
GRAVE: Error during rendering
javax.servlet.jsp.JspException: IO Error executing tag: JSPException 
while including path '/WEB-INF/tiles/content/home.jsp'. ServletException 
while including page.
         at 
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:85)


Also, I had to change my tiles.xml put tags to put-attribute, like
this:

before:
     <definition name="userList" extends="mainLayout">
         <put name="title" value="UsersList" />
         <put name="body" value="/WEB-INF/tiles/content/userList.jsp" />
     </definition>

after:
     <definition name="userList" extends="mainLayout">
         <put-attribute name="title" value="UsersList" />
         <put-attribute name="body" 
value="/WEB-INF/tiles/content/userList.jsp" />
     </definition>


Any idea?
Thank you.

--
Robi

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Tiles exeption after upgrading from Struts 2.0.6 to 2.0.8

Posted by Roberto Nunnari <ro...@supsi.ch>.
Solved.

The problem was with the new commons-beanutils shipped with
S2 that doesn't include org.apache.commons.beanutils.NestedNullException

Best regards.

--
Robi


Roberto Nunnari wrote:
> Hello everybody.
> 
> I'm trying to upgrade my webapp from Struts 2.0.6 to 2.0.8
> 
> I'm using the Tiles-plugin and with the new version
> when I request a page it throws exeptions.
> The stacktrace is too long to be
> posted here but the exeptions start like this:
> 
> 26-giu-2007 00:36:00 org.apache.tiles.jsp.context.JspTilesRequestContext 
> include
> GRAVE: JSPException while including path '/WEB-INF/tiles/content/home.jsp'.
> javax.servlet.jsp.JspException: ServletException while including page.
>         at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)
> 
> ....
> 
> 26-giu-2007 00:36:02 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport 
> doEndTag
> GRAVE: IO Error executing tag: JSPException while including path 
> '/WEB-INF/tiles/content/home.jsp'. ServletException while including page.
> java.io.IOException: JSPException while including path 
> '/WEB-INF/tiles/content/home.jsp'. ServletException while including page.
>         at 
> org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91) 
> 
> 
> ....
> 
> 26-giu-2007 00:36:02 org.apache.tiles.jsp.taglib.RenderTagSupport doCatch
> GRAVE: Error during rendering
> javax.servlet.jsp.JspException: IO Error executing tag: JSPException 
> while including path '/WEB-INF/tiles/content/home.jsp'. ServletException 
> while including page.
>         at 
> org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:85) 
> 
> 
> 
> Also, I had to change my tiles.xml put tags to put-attribute, like
> this:
> 
> before:
>     <definition name="userList" extends="mainLayout">
>         <put name="title" value="UsersList" />
>         <put name="body" value="/WEB-INF/tiles/content/userList.jsp" />
>     </definition>
> 
> after:
>     <definition name="userList" extends="mainLayout">
>         <put-attribute name="title" value="UsersList" />
>         <put-attribute name="body" 
> value="/WEB-INF/tiles/content/userList.jsp" />
>     </definition>
> 
> 
> Any idea?
> Thank you.
> 
> -- 
> Robi
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org