For the purpose of the tutorial, we use CompleteAutoloadTilesListener, which loads all the possible features and therefore requires many dependencies. Once you get familiar with those features, you can choose the ones you need and you can build your own configuration. See the configuration reference here: http://tiles.apache.org/framework/config-reference.html.

For a minimal set of features, you can replace CompleteAutoloadTilesListener with SimpleTilesListener. See the difference here: http://tiles.apache.org/framework/config-reference.html#Simple_configuration. For many real world applications though, the minimal set may not be enough (I myself can seldom do without an expression language and multiple tiles.xml files).

Hope this helps,
Nick

On 12-08-11 10:15 AM, Andrey Botalov wrote:
I write a very simple Tiles app that doesn't use any features besides
those in http://tiles.apache.org/framework/tutorial/basic/index.html.
You can see stuff relevant to Tiles at https://gist.github.com/3324728

When I try to run it, I become overloaded with NoClassDefFoundErrors.
Many of those are in \lib\optional folder of tiles-3.0.1-bin.zip so I
don't think that I need them (e.g. spring-core, spring-web, ognl,mvel).
Do I need them in my simple Struts app?

Reply via email to