Gotta love one of those days where you waste 6 hours just because you left
an old struts.jar in a commons folder

To my relieve the next seemingly unsolvable problem lined itself up ;-)

org.apache.tiles.FactoryNotFoundException: Can't get definitions factory
from context.

Seems to indicate that tiles definitions file is never loaded. I have
defined the following in my web.xml:

<context-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>

<!-- tried this as well
<context-param>
<param-name>org.apache.tiles.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
-->

And my tiles.xml:

<tiles-definitions>
    <definition name="/mainLayout"
template="/jsp/tiles/layouts/loggedLayout.jsp">
      <put name="top" value="/jsp/tiles/top.jsp"/>
        <put name="nav" value="/jsp/tiles/nav.jsp"/>
        <put name="content" value=""/>
        <put name="bottom" value="/jsp/tiles/bottom.jsp"/>
    </definition>
    <definition name="/loggedLayout" extends="/mainLayout">
        <put name="content" template="/jsp/dashboard_test.jsp"/>
    </definition> 
</tiles-definitions>

Am I missing anything?

Cheers,
Joost 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan
Sent: Thursday, February 08, 2007 1:56 PM
To: [email protected]
Subject: Re: tiles integration error

On 2/7/07, JS Portal Support <[EMAIL PROTECTED]> wrote:
>
> I cheered too soon ;-)


:-)

I have all the right jar's in place but can't figure out how to configure
> the lot. Maybe I'm missing something but I can't find any example with the
> shale 1.1.0 snapshot I just downloaded. The thread at [1] seems too old
> and
> the explanation at [2] seems to new. Where can I find a working example to
> work from?
>
> I guess most of my questions is in regard to configuring tiles, but since
> I'm relying on shale, I need to make sure I'm configuring the right
> version
> here.


There are a couple of pointers on the Shale wiki that might help[1].

Thanks,
> Joost
>
> [1] http://www.mail-archive.com/[email protected]/msg00774.html
> [2] http://tiles.apache.org/quickstart/index.html


Craig

[1] http://wiki.apache.org/shale/ShaleAndTiles


-----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
> McClanahan
> Sent: Thursday, February 08, 2007 6:19 AM
> To: [email protected]
> Subject: Re: tiles integration error
>
> On 2/7/07, Dick Starr <[EMAIL PROTECTED]> wrote:
> >
> > I use Shale/Tiles successfully with the nightly builds at
> > http://people.apache.org/builds/shale/nightly/ (I am currently using the
> > 01/29/07 version). I use the jars from
> > shale-framework-1.1.0-SNAPSHOT/lib.
>
>
> In particular, you need to use the snapshot of Tiles that is included with
> the framework builds for this to work.  Because Tiles is still a moving
> target, we sync up on snapshots (such as the  "2.0-r468346-SNAPSHOT"
> version
> that is currently specified in the shale-tiles POM).
>
> Dick
>
>
> Craig
>
>

Reply via email to