You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Mike B <fo...@opensymphony.com> on 2007/04/25 06:23:37 UTC

Tiles & XWork are broken in the 2.0.6 GA Release

Hello,

I am trying to migrate our app from 2.0.1 to 2.0.6, but I have had nothing but problems...

It turns out that the xwork-2.0.1 has problems with packages that extend a base package and tiles is unable to handle definitions that extend a base definition.  Or so it seems.... 

I was able to resolve the xwork problems by downloading xwork 2.0.2, but tiles has not fared as well....  I have tried numerous tiles snapshot builds, but the snapshot builds all lead to 'other' issues.

The current tiles distribution that was bundled with Struts 2.0.6 is not resolving / picking up the template / definition path.  Here is part of the stack trace.

2007-04-24 21:39:38,203 DEBUG [http-8080-Processor24] BasicTilesContainer:render(392) | Dispatching to definition path 'null '
2007-04-24 21:39:38,203 ERROR [http-8080-Processor24] BasicTilesContainer:render(401) | Error rendering tile
java.lang.NullPointerException
	at org.apache.struts2.tiles.StrutsTilesRequestContext.include(StrutsTilesRequestContext.java:94)
	at org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:83)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:395)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:345)
	at org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
	at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
	at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
	at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
	
ETC.,

2007-04-24 21:39:38,203 ERROR [http-8080-Processor24] [default]:invoke(253) | Servlet.service() for servlet default threw exception
org.apache.tiles.TilesException
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:403)
	at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:345)
	at org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
	at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
	at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
	at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
	
ETC.

Our tiles configuration has not changed.  It worked with WW2 and Struts 2.0.1.  Any ideas or suggestions?...  

Additional Questions:
When will 2.0.8 be released? 
Will it be released as a binary distribution?

Thanks,
 - Mike
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=79653&messageID=144729#144729


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


Re: Tiles & XWork are broken in the 2.0.6 GA Release

Posted by Rainer Hermanns <he...@aixcept.de>.
Mike,

the XWork problems you describe have been resolved in XWork 2.0.2.
This will be the foundation for the upcoming S2 2.0.8 release.
You can already try it out with S2 2.0.6, it's binary compatible.

hth,
Rainer

PS: One note: The validator configuration in "validators.xml" needs a DTD
header.

> Hello,
>
> I am trying to migrate our app from 2.0.1 to 2.0.6, but I have had nothing
> but problems...
>
> It turns out that the xwork-2.0.1 has problems with packages that extend a
> base package and tiles is unable to handle definitions that extend a base
> definition.  Or so it seems....
>
> I was able to resolve the xwork problems by downloading xwork 2.0.2, but
> tiles has not fared as well....  I have tried numerous tiles snapshot
> builds, but the snapshot builds all lead to 'other' issues.
>
> The current tiles distribution that was bundled with Struts 2.0.6 is not
> resolving / picking up the template / definition path.  Here is part of
> the stack trace.
>
> 2007-04-24 21:39:38,203 DEBUG [http-8080-Processor24]
> BasicTilesContainer:render(392) | Dispatching to definition path 'null '
> 2007-04-24 21:39:38,203 ERROR [http-8080-Processor24]
> BasicTilesContainer:render(401) | Error rendering tile
> java.lang.NullPointerException
> 	at
> org.apache.struts2.tiles.StrutsTilesRequestContext.include(StrutsTilesRequestContext.java:94)
> 	at
> org.apache.struts2.tiles.StrutsTilesRequestContext.dispatch(StrutsTilesRequestContext.java:83)
> 	at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:395)
> 	at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:345)
> 	at
> org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
> 	at
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
> 	at
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
>
> ETC.,
>
> 2007-04-24 21:39:38,203 ERROR [http-8080-Processor24]
> [default]:invoke(253) | Servlet.service() for servlet default threw
> exception
> org.apache.tiles.TilesException
> 	at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:403)
> 	at
> org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:345)
> 	at
> org.apache.struts2.views.tiles.TilesResult.doExecute(TilesResult.java:104)
> 	at
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:178)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:348)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
> 	at
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
>
> ETC.
>
> Our tiles configuration has not changed.  It worked with WW2 and Struts
> 2.0.1.  Any ideas or suggestions?...
>
> Additional Questions:
> When will 2.0.8 be released?
> Will it be released as a binary distribution?
>
> Thanks,
>  - Mike
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.opensymphony.com/thread.jspa?threadID=79653&messageID=144729#144729
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>


-- 
Rainer Hermanns
aixcept
Neupforte 16
52062 Aachen - Germany
w: http://aixcept.de/
t:    +49-241-4012247
m:  +49-170-3432912

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


Re: Tiles & XWork are broken in the 2.0.6 GA Release

Posted by Mike B <fo...@opensymphony.com>.
Antonio, I will keep checking the site for new releases.

Thanks for your reply.

 - Mike
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=79653&messageID=145251#145251


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


Re: Tiles & XWork are broken in the 2.0.6 GA Release

Posted by Antonio Petrelli <an...@gmail.com>.
2007/4/25, Mike B <fo...@opensymphony.com>:
> The current tiles distribution that was bundled with Struts 2.0.6 is not resolving / picking up the template / definition path.

I think this is due to the fact that Struts 2.0.6 depends on a buggy
version of Tiles.
Tiles 2.0.3 is going to be released officially very soon (I hope
tomorrow), so the new version of Struts 2 will depend on a enough
stable version of Tiles.

Antonio

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