From vincenttaylor@example.com Fri Nov 05 12:43:17 2010
Return-Path: <vincenttaylor@example.com>
Delivered-To: vincenttaylor@example.com
Received: (qmail 86775 invoked from network); 5 Nov 2010 12:43:17 -0000
Received: from unknown (HELO mail.apache.org) (83.161.120.155)
  by 83.161.120.155 with SMTP; 5 Nov 2010 12:43:17 -0000
Received: (qmail 51833 invoked by uid 500); 5 Nov 2010 12:43:48 -0000
Delivered-To: vincenttaylor@example.com
Received: (qmail 51670 invoked by uid 500); 5 Nov 2010 12:43:45 -0000
Mailing-List: contact vincenttaylor@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:vincenttaylor@example.com>
List-Unsubscribe: <mailto:vincenttaylor@example.com>
List-Post: <mailto:vincenttaylor@example.com>
List-Id: <users.tiles.apache.org>
Reply-To: vincenttaylor@example.com
Delivered-To: mailing list vincenttaylor@example.com
Received: (qmail 51662 invoked by uid 99); 5 Nov 2010 12:43:44 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 12:43:44 +0000
X-ASF-Spam-Status: No, hits=0.9 required=10.0
	tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of vincenttaylor@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO lo.gmane.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 12:43:39 +0000
Received: from list by lo.gmane.org with local (Exim 4.69)
	(envelope-from <vincenttaylor@example.com>)
	id 1PELdR-0002gH-UR
	for vincenttaylor@example.com; Fri, 05 Nov 2010 13:43:13 +0100
Received: from 83.161.120.155 ([83.161.120.155])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <vincenttaylor@example.com>; Fri, 05 Nov 2010 13:43:13 +0100
Received: from mck by 83.161.120.155 with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <vincenttaylor@example.com>; Fri, 05 Nov 2010 13:43:13 +0100
X-Injected-Via-Gmane: http://gmane.org/
To: vincenttaylor@example.com
From: mck <vincenttaylor@example.com>
Subject: Pumping Tiles-2 up on steriods
Date: Fri, 05 Nov 2010 13:42:20 +0100
Lines: 36
Message-ID: <1288960940.9126.5.camel@localhost>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-exZMZEaiJ/2ygaHmU1SW"
X-Complaints-To: vincenttaylor@example.com
X-Gmane-NNTP-Posting-Host: 83.161.120.155
X-Mailer: Evolution 2.30.3 

--=-exZMZEaiJ/2ygaHmU1SW
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Finally got around to writing an article on how we, and why we are, at
FINN.no, are using Tiles-2.
http://tech.finn.no/the-ultimate-view/

~mck

ps this is a new tech webspace to FINN.no still under construction, but
the article itself is largely close to its final version.

--=20
"Anyone who has attended a computer conference in a fancy hotel can tell
you that a sentence like "You're one of those computer people, aren't
you?" is roughly equivalent to "Look, another amazingly mobile form of
slime mold!" in the mouth of a hotel cocktail waitress." Elizabeth
Zwicky | www.semb.wever.org | www.sesat.no | www.finn.no |
http://xss-http-filter.sf.net

--=-exZMZEaiJ/2ygaHmU1SW
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEABECAAYFAkzT+6wACgkQkdPrePiuutPlNwCgonL1RGP/t66P5YXpW31wADgi
H8wAoMmoIFpHQKgrT+G3bev8B6zO9+Bo
=17Qf
-----END PGP SIGNATURE-----

--=-exZMZEaiJ/2ygaHmU1SW--



From vincenttaylor@example.com Fri Nov 05 13:27:16 2010
Return-Path: <vincenttaylor@example.com>
Delivered-To: vincenttaylor@example.com
Received: (qmail 14057 invoked from network); 5 Nov 2010 13:27:16 -0000
Received: from unknown (HELO mail.apache.org) (83.161.120.155)
  by 83.161.120.155 with SMTP; 5 Nov 2010 13:27:16 -0000
Received: (qmail 19481 invoked by uid 500); 5 Nov 2010 13:27:47 -0000
Delivered-To: vincenttaylor@example.com
Received: (qmail 19332 invoked by uid 500); 5 Nov 2010 13:27:45 -0000
Mailing-List: contact vincenttaylor@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:vincenttaylor@example.com>
List-Unsubscribe: <mailto:vincenttaylor@example.com>
List-Post: <mailto:vincenttaylor@example.com>
List-Id: <users.tiles.apache.org>
Reply-To: vincenttaylor@example.com
Delivered-To: mailing list vincenttaylor@example.com
Received: (qmail 19324 invoked by uid 99); 5 Nov 2010 13:27:44 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 13:27:44 +0000
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of vincenttaylor@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-fx0-f45.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 13:27:37 +0000
Received: by fxm4 with SMTP id 4so2365223fxm.32
        for <vincenttaylor@example.com>; Fri, 05 Nov 2010 06:27:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:received:in-reply-to
         :references:date:message-id:subject:from:to:content-type;
        bh=RKPQGVqQcNAH9Cs+ghJ5uqGBj/CDcL/kypsea3irY1g=;
        b=roWuRMtwtMbp6Q9TPrDEx8YweMc/M5QrhpqXEeazEZ+9I+S9gSWNlgJnqen9WUIxT1
         F4OEgTNyL8O9ouGwM7vppfhGv7cTi0nzAlXTfxjQlfN/Ztv7exKvPm/+qhaZUrNMDpzB
         sBWj/csTyYH/xyWhl4o83DWo77HKg535V+a+c=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        b=w2h3v5Tn/u7pqDnpwBqcYbGcAA3PCdw9BccoNMruZu9+VBXPio+40wyVlhNTLdzSC4
         +7CztGdorVLOvL/nafbQVUf8zhq8Ii6TMe5NR5IAo+ytqmehDOoa2WT7RURn/RE8Bmgb
         sfCp6ex7Iv/QqeB1KhnCBQWJpwBFH/nP4ASKM=
MIME-Version: 1.0
Received: by 83.161.120.155 with SMTP id d2mr952943fao.88.1288963637663; Fri,
 05 Nov 2010 06:27:17 -0700 (PDT)
Received: by 83.161.120.155 with HTTP; Fri, 5 Nov 2010 06:27:17 -0700 (PDT)
In-Reply-To: <1288960940.9126.5.camel@localhost>
References: <1288960940.9126.5.camel@localhost>
Date: Fri, 5 Nov 2010 14:27:17 +0100
Message-ID: <vincenttaylor@example.com>
Subject: Re: Pumping Tiles-2 up on steriods
From: Antonio Petrelli <vincenttaylor@example.com>
To: vincenttaylor@example.com
Content-Type: text/plain; charset=ISO-8859-1
X-Virus-Checked: Checked by ClamAV on apache.org

2010/11/5 mck <vincenttaylor@example.com>:
> Finally got around to writing an article on how we, and why we are, at
> FINN.no, are using Tiles-2.
> http://tech.finn.no/the-ultimate-view/

Cool!
What I like of this article is the fallback pattern you used, it could
be a great addition to Tiles.

Antonio

From vincenttaylor@example.com Mon Nov 22 16:11:00 2010
Return-Path: <vincenttaylor@example.com>
Delivered-To: vincenttaylor@example.com
Received: (qmail 50443 invoked from network); 22 Nov 2010 16:10:59 -0000
Received: from unknown (HELO mail.apache.org) (83.161.120.155)
  by 83.161.120.155 with SMTP; 22 Nov 2010 16:10:59 -0000
Received: (qmail 87835 invoked by uid 500); 22 Nov 2010 16:11:31 -0000
Delivered-To: vincenttaylor@example.com
Received: (qmail 87721 invoked by uid 500); 22 Nov 2010 16:11:30 -0000
Mailing-List: contact vincenttaylor@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:vincenttaylor@example.com>
List-Unsubscribe: <mailto:vincenttaylor@example.com>
List-Post: <mailto:vincenttaylor@example.com>
List-Id: <users.tiles.apache.org>
Reply-To: vincenttaylor@example.com
Delivered-To: mailing list vincenttaylor@example.com
Received: (qmail 87713 invoked by uid 99); 22 Nov 2010 16:11:29 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 16:11:29 +0000
X-ASF-Spam-Status: No, hits=3.3 required=10.0
	tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,TRACKER_ID,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of vincenttaylor@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-fx0-f45.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 16:11:22 +0000
Received: by fxm4 with SMTP id 4so4835264fxm.32
        for <vincenttaylor@example.com>; Mon, 22 Nov 2010 08:11:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:received:date:message-id
         :subject:from:to:content-type;
        bh=4YaMeqF3cUlPfA5/YTqU5sI7iKcQ0lmdJSmJU2B82Jw=;
        b=eVoVR3jWFrKDJCcICZBshAW8lxWsCRM8QoLa8k4FtsxaTBb8U95uit5wGtbTs3bHJR
         HEq59LSTqC6OYzkIh/aY5HHiatDWL2eSOMN42F5ojMosdbtifYafcJtpaMFN5SP4WzcD
         q6gzOOCyCXDT9YLFEZmCtO427cFAkNYdsOYW8=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:date:message-id:subject:from:to:content-type;
        b=J3QIrgab+1OHWhRR4cZy0cuwZuSAHRi1gf9/YaJMvBmzkqOePJIDVwYkZ6y2EHkIbL
         GAL9CGaaZxpbfPZACmM6NMbMCd/xKdHqQEdz6djl8A6V4P5M4qTHw8VIYZlIjA8+bCtR
         r5L9g1DT8SIwuzaBz9y2rAjnfqZdlbnENXzGY=
MIME-Version: 1.0
Received: by 83.161.120.155 with SMTP id l8mr4339171fak.82.1290442261157; Mon,
 22 Nov 2010 08:11:01 -0800 (PST)
Received: by 83.161.120.155 with HTTP; Mon, 22 Nov 2010 08:11:01 -0800 (PST)
Date: Mon, 22 Nov 2010 11:11:01 -0500
Message-ID: <vincenttaylor@example.com>
Subject: Tiles 2 and Struts 2
From: John Dondapati <vincenttaylor@example.com>
To: vincenttaylor@example.com
Content-Type: multipart/mixed; boundary=20cf304345169456f70495a680f3

--20cf304345169456f70495a680f3
Content-Type: multipart/alternative; boundary=20cf304345169456ed0495a680f1

--20cf304345169456ed0495a680f1
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I am very new to Apache Tiles 2 and really want to use it in a vincenttaylor@example.com. We have Struts 2, Spring 2.5.6 working peacefully together and I
wanted to add Tiles 2.2 on to the stack to experiment with it.

I have added all the dependencies in the maven and they are all available. I
am following the instructions on the Apache Tiles website and created a
Listener and everything. Here's my configuration.

*Environment* :

Tomcat 6.0.29
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)



*My web.xml **:*
*
*
<filter>
        <filter-name>struts2</filter-name>

 <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
   </filter>

    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <listener>

 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
*
*
* <listener>*
*        <listener-class>com.blablabla.MyTilesListener</listener-class>*
* </listener>*


*Here's my /WEB-INF/tiles.xml*
*
*
*   <definition name="doc.mainLayout"
template="/tiles/layout/classicLayout.jsp">*
*      <put-attribute name="title"  value="Electronic Submission of Medical
Documentation (esMD)" />*
*      <put-attribute name="header" value="/tiles/layout/tiles-header.jsp"
/>*
*      <put-attribute name="body"   value="/tiles/layout/tiles-body.jsp" />*
*      <put-attribute name="footer" value="/tiles/layout/tiles-footer.jsp"
/>*
*    </definition>*
*    *
*    <definition name="LoginPage" extends="doc.mainLayout">*
*        <put-attribute name="body" value="/tiles/LoginBody.jsp"/>*
*    </definition>*
*
*
*My struts.xml*
*
*
*
<package name="default" namespace="/" extends="struts-default"> <!--
"tiles-default" package cannot be found in tiles 2.2 so I changed it -->
      <action name="Login">
*
*
                 <result>LoginPage</result>
      </action>
</package>

*

*MyTilesListener*

public class MyTilesListener extends AbstractTilesListener {

    protected TilesInitializer createTilesInitializer() {
    return new MyCustomTilesInitializer();
}
}

*MyCustomTilesInitializer*

public class MyCustomTilesInitializer extends BasicTilesInitializer {

        /** {@inheritDoc} */
        @Override
        protected AbstractTilesContainerFactory createContainerFactory(
                TilesApplicationContext context) {
            return new MyTilesContainerFactory();
        }
}

*MyTilesContainerFactory*

public class MyTilesContainerFactory extends BasicTilesContainerFactory{
@Override
protected List<URL> getSourceURLs(TilesApplicationContext
tilesApplicationContext,
TilesRequestContextFactory tilesRequestContextFactory) {

List<URL> urls = null;

try {
urls = new ArrayList<URL>();

urls.add(tilesApplicationContext.getResource("/WEB-INF/tiles.xml"));
} catch(Exception exception) {

}

return urls;
}

}

*This is the error we get: *
*
*
*
HTTP Status 404 - /LoginPage
------------------------------

type Status report

message /LoginPage

description The requested resource (/LoginPage) is not available.
------------------------------
Apache Tomcat/6.0.29
*

*ServerLog * :

388 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
org.apache.tiles.context.AbstractTilesApplicationContextFactory -
Initializing Tiles2 application context. . .
392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot find
TilesContextFactory class
org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
org.apache.tiles.context.AbstractTilesApplicationContextFactory - Finished
initializing Tiles2 application context.
392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot find
TilesContextFactory class
org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
449 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
org.apache.tiles.access.TilesAccess - Publishing TilesContext for context:
org.apache.tiles.servlet.context.ServletTilesApplicationContext


Can someone give me a direction to fix this please. Thanks!


-- 
Cheers,
John

P.S: I also attached my pom.xml dependencies to give you a complete picture.

--20cf304345169456ed0495a680f1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,<div><br></div><div>I am very new to Apache Tiles 2 and really want to u=
se it in a vincenttaylor@example.com. We have Struts 2, Spring 2.5.6 working peaceful=
ly together and I wanted to add Tiles 2.2 on to the stack to experiment wit=
h it.=A0</div>
<div><br></div><div>I have added all the dependencies in the maven and they=
 are all available. I am following the instructions on the Apache Tiles web=
site and created a Listener and everything. Here&#39;s my configuration.=A0=
</div>
<div><br></div><div><b><u>Environment</u></b> :</div><div><br></div><div>To=
mcat=A06.0.29</div><div><div>Java(TM) SE Runtime Environment (build 1.6.0_2=
2-b04-307-10M3261)</div></div><div><br></div><div><br></div><div><br></div>
<div><u><b>My web.xml </b></u><b>:</b></div><div><div><i><br></i></div></di=
v><div><div>&lt;filter&gt;</div><div>=A0=A0 =A0 =A0 =A0&lt;filter-name&gt;s=
truts2&lt;/filter-name&gt;</div><div>=A0=A0 =A0 =A0 =A0&lt;filter-class&gt;=
org.apache.struts2.dispatcher.FilterDispatcher&lt;/filter-class&gt;</div>
<div>=A0=A0 &lt;/filter&gt;</div><div><br></div><div>=A0=A0 =A0&lt;filter-m=
apping&gt;</div><div>=A0=A0 =A0 =A0 =A0&lt;filter-name&gt;struts2&lt;/filte=
r-name&gt;</div><div>=A0=A0 =A0 =A0 =A0&lt;url-pattern&gt;/*&lt;/url-patter=
n&gt;</div><div>=A0=A0 =A0&lt;/filter-mapping&gt;</div>
<div><br></div><div>=A0=A0 =A0&lt;listener&gt;</div><meta charset=3D"utf-8"=
><div><div>=A0=A0 =A0 =A0 =A0&lt;listener-class&gt;org.springframework.web.=
context.ContextLoaderListener&lt;/listener-class&gt;</div><div>=A0=A0 =A0&l=
t;/listener&gt;</div>
</div><div><meta charset=3D"utf-8"><div><div><i><br></i></div><div><i><b>=
=A0&lt;listener&gt;</b></i></div><div><i><b>=A0=A0 =A0 =A0 =A0&lt;listener-=
class&gt;com.blablabla.MyTilesListener&lt;/listener-class&gt;</b></i></div>=
<div><i><b>=A0&lt;/listener&gt;</b></i></div>
</div></div><div>=A0</div></div><div><br></div><div><b><u>Here&#39;s my=A0/=
WEB-INF/tiles.xml</u></b></div><div><b><u><br></u></b></div><meta charset=
=3D"utf-8"><div><div><i>=A0=A0 &lt;definition name=3D&quot;doc.mainLayout&q=
uot; template=3D&quot;/tiles/layout/classicLayout.jsp&quot;&gt;</i></div>
<div><i>=A0=A0 =A0 =A0&lt;put-attribute name=3D&quot;title&quot; =A0value=
=3D&quot;Electronic Submission of Medical Documentation (esMD)&quot; /&gt;<=
/i></div><div><i>=A0=A0 =A0 =A0&lt;put-attribute name=3D&quot;header&quot; =
value=3D&quot;/tiles/layout/tiles-header.jsp&quot; /&gt;</i></div>
<div><i>=A0=A0 =A0 =A0&lt;put-attribute name=3D&quot;body&quot; =A0 value=
=3D&quot;/tiles/layout/tiles-body.jsp&quot; /&gt;</i></div><div><i>=A0=A0 =
=A0 =A0&lt;put-attribute name=3D&quot;footer&quot; value=3D&quot;/tiles/lay=
out/tiles-footer.jsp&quot; /&gt;</i></div>
<div><i>=A0=A0 =A0&lt;/definition&gt;</i></div><div><i>=A0=A0 =A0</i></div>=
<div><i>=A0=A0 =A0&lt;definition name=3D&quot;<b><u><font class=3D"Apple-st=
yle-span" color=3D"#FF0000">LoginPage</font></u></b>&quot; extends=3D&quot;=
doc.mainLayout&quot;&gt;</i></div>
<div><i>=A0=A0 =A0 =A0 =A0&lt;put-attribute name=3D&quot;body&quot; value=
=3D&quot;/tiles/LoginBody.jsp&quot;/&gt;</i></div><div><i>=A0=A0 =A0&lt;/de=
finition&gt;</i></div><div><i><br></i></div><div><i><b><u>My struts.xml</u>=
</b></i></div><div>
<i><br></i></div><div><i><div>&lt;package name=3D&quot;default&quot; namesp=
ace=3D&quot;/&quot; extends=3D&quot;struts-default&quot;&gt; &lt;!-- &quot;=
tiles-default&quot; package cannot be found in tiles 2.2 so I changed it --=
&gt;</div>
<div><span class=3D"Apple-style-span" style=3D"font-style: normal; "><i><di=
v style=3D"display: inline !important; ">=A0=A0 =A0 =A0&lt;action name=3D&q=
uot;Login&quot;&gt;</div></i></span></div></i></div><div><i><div><span clas=
s=3D"Apple-style-span" style=3D"font-style: normal; "><i><div style=3D"disp=
lay: inline !important; ">
=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 &lt;result&gt;<b><u><font class=3D"Apple=
-style-span" color=3D"#FF0000">LoginPage</font></u></b>&lt;/result&gt;</div=
></i></span></div><div><span class=3D"Apple-style-span" style=3D"font-style=
: normal; "><i><div style=3D"display: inline !important; ">
=A0=A0 =A0 =A0&lt;/action&gt;</div></i></span></div><div><div>&lt;/package&=
gt;</div></div><div><br></div></i></div><div><br></div><meta charset=3D"utf=
-8"><div><i><b><u>MyTilesListener</u></b></i>=A0</div><div><br></div><div><=
div>public class MyTilesListener extends AbstractTilesListener {</div>
<div><br></div><div>=A0=A0 =A0protected TilesInitializer createTilesInitial=
izer() {</div><div>=A0=A0 =A0return new MyCustomTilesInitializer();</div><d=
iv>}</div><div>}</div></div><div><br></div><div><meta charset=3D"utf-8"><b>=
<u>MyCustomTilesInitializer</u></b></div>
<div><br></div><div><div>public class MyCustomTilesInitializer extends Basi=
cTilesInitializer {</div><div><br></div><div>=A0=A0 =A0 =A0 =A0/** {@inheri=
tDoc} */</div><div>=A0=A0 =A0 =A0 =A0@Override</div><div>=A0=A0 =A0 =A0 =A0=
protected AbstractTilesContainerFactory createContainerFactory(</div>
<div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0TilesApplicationContext context) {</=
div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0return new MyTilesContainerFactory();</d=
iv><div>=A0=A0 =A0 =A0 =A0}</div></div><div>}</div><div><br></div><div><met=
a charset=3D"utf-8"><b><u>MyTilesContainerFactory</u></b></div>
<div><br></div><div>public class MyTilesContainerFactory extends BasicTiles=
ContainerFactory{</div><div><div>@Override</div><div><span class=3D"Apple-t=
ab-span" style=3D"white-space:pre">	</span>protected List&lt;URL&gt; getSou=
rceURLs(TilesApplicationContext</div>
<div>tilesApplicationContext,</div><div><span class=3D"Apple-tab-span" styl=
e=3D"white-space:pre">			</span>TilesRequestContextFactory tilesRequestCont=
extFactory) {</div><div><br></div><div><span class=3D"Apple-tab-span" style=
=3D"white-space:pre">		</span>List&lt;URL&gt; urls =3D null;</div>
<div><br></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
">		</span>try {</div><div><span class=3D"Apple-tab-span" style=3D"white-sp=
ace:pre">			</span>urls =3D new ArrayList&lt;URL&gt;();</div><div><br></div=
><div>
urls.add(tilesApplicationContext.getResource(&quot;/WEB-INF/tiles.xml&quot;=
));</div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre">		</=
span>} catch(Exception exception) {</div><div><br></div><div><span class=3D=
"Apple-tab-span" style=3D"white-space:pre">		</span>}</div>
<div><br></div><div><span class=3D"Apple-tab-span" style=3D"white-space:pre=
">		</span>return urls;</div><div><span class=3D"Apple-tab-span" style=3D"w=
hite-space:pre">	</span>}</div><div>=A0=A0 =A0</div><div>}</div></div><div>=
<br></div>
<div><b><u>This is the error we get:=A0</u></b></div><div><b><u><br></u></b=
></div><div><b><u><meta charset=3D"utf-8"><div style=3D"font-family: Tahoma=
, Arial, sans-serif; color: black; background-color: white; font-weight: no=
rmal; -webkit-text-decorations-in-effect: none; font-size: medium; ">
<h1 style=3D"font-family: Tahoma, Arial, sans-serif; color: white; backgrou=
nd-color: rgb(82, 93, 118); font-size: 22px; ">HTTP Status 404 - /LoginPage=
</h1><hr size=3D"1" noshade style=3D"color: rgb(82, 93, 118); "><p style=3D=
"font-family: Tahoma, Arial, sans-serif; background-image: initial; backgro=
und-attachment: initial; background-origin: initial; background-clip: initi=
al; background-color: white; color: black; font-size: 12px; background-posi=
tion: initial initial; background-repeat: initial initial; ">
<b style=3D"font-family: Tahoma, Arial, sans-serif; color: white; backgroun=
d-color: rgb(82, 93, 118); ">type</b>=A0Status report</p><p style=3D"font-f=
amily: Tahoma, Arial, sans-serif; background-image: initial; background-att=
achment: initial; background-origin: initial; background-clip: initial; bac=
kground-color: white; color: black; font-size: 12px; background-position: i=
nitial initial; background-repeat: initial initial; ">
<b style=3D"font-family: Tahoma, Arial, sans-serif; color: white; backgroun=
d-color: rgb(82, 93, 118); ">message</b>=A0<u>/LoginPage</u></p><p style=3D=
"font-family: Tahoma, Arial, sans-serif; background-image: initial; backgro=
und-attachment: initial; background-origin: initial; background-clip: initi=
al; background-color: white; color: black; font-size: 12px; background-posi=
tion: initial initial; background-repeat: initial initial; ">
<b style=3D"font-family: Tahoma, Arial, sans-serif; color: white; backgroun=
d-color: rgb(82, 93, 118); ">description</b>=A0<u>The requested resource (/=
LoginPage) is not available.</u></p><hr size=3D"1" noshade style=3D"color: =
rgb(82, 93, 118); ">
<h3 style=3D"font-family: Tahoma, Arial, sans-serif; color: white; backgrou=
nd-color: rgb(82, 93, 118); font-size: 14px; ">Apache Tomcat/6.0.29</h3></d=
iv></u></b></div><div><br></div><div><b><u>ServerLog </u></b>=A0:</div><div=
>
<br></div><div><div>388 [ContainerBackgroundProcessor[StandardEngine[Catali=
na]]] INFO org.apache.tiles.context.AbstractTilesApplicationContextFactory =
- Initializing Tiles2 application context. . .</div><div>392 [ContainerBack=
groundProcessor[StandardEngine[Catalina]]] WARN org.apache.tiles.context.Ch=
ainedTilesApplicationContextFactory - Cannot find TilesContextFactory class=
 org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory</di=
v>
<div>392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO org.=
apache.tiles.context.AbstractTilesApplicationContextFactory - Finished init=
ializing Tiles2 application context.</div><div>392 [ContainerBackgroundProc=
essor[StandardEngine[Catalina]]] WARN org.apache.tiles.context.ChainedTiles=
ApplicationContextFactory - Cannot find TilesContextFactory class org.apach=
e.tiles.portlet.context.PortletTilesApplicationContextFactory</div>
<div>449 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO org.=
apache.tiles.access.TilesAccess - Publishing TilesContext for context: org.=
apache.tiles.servlet.context.ServletTilesApplicationContext</div></div>
<div><br></div><div><br></div><div>Can someone give me a direction to fix t=
his please. Thanks!=A0</div><div><br></div><div><br></div>-- <br>Cheers,<br=
>John<br><br>
</div><div>P.S: I also attached my pom.xml dependencies to give you a compl=
ete picture.</div>

--20cf304345169456ed0495a680f1--
--20cf304345169456f70495a680f3
Content-Type: text/xml; charset=US-ASCII; name="pom-dependencies.xml"
Content-Disposition: attachment; filename="pom-dependencies.xml"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_ggtjxn160

PGRlcGVuZGVuY2llcz4KICAgPGRlcGVuZGVuY3k+CiAgICAgPGdyb3VwSWQ+anVuaXQ8L2dyb3Vw
SWQ+CiAgICAgPGFydGlmYWN0SWQ+anVuaXQ8L2FydGlmYWN0SWQ+CiAgICAgPHZlcnNpb24+My44
LjE8L3ZlcnNpb24+CiAgICAgPHNjb3BlPnRlc3Q8L3Njb3BlPgogICA8L2RlcGVuZGVuY3k+CiAg
IDxkZXBlbmRlbmN5PgogICAgICAgPGdyb3VwSWQ+bG9nNGo8L2dyb3VwSWQ+CiAgICAgICA8YXJ0
aWZhY3RJZD5sb2c0ajwvYXJ0a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k+CiAgICAgIDxkZXBlbmRlbmN5PgogICAgICAgICAgICAgICAg
ICAgICA8Z3JvdXBJZD5vcmcuYXBhY2hlLnRpbGVzPC9ncm91cElkPgogICAgICAgICAgICAgICAg
ICAgICA8YXJ0aWZhY3RJZD50aWxlcy1zZXJ2bGV0PC9hcnRpZmFjdElkPgogICAgICAgICAgICAg
ICAgICAgICA8IS0tPHZlcnNpb24+Mi4xLjguMTwvdmVyc2lvbj4tLT4KICAgICAgICAgICAgICAg
ICAgICAgPHZlcnNpb24+JHt0aWxlcy52ZXJzaW9ufTwvdmVyc2lvbj4KICAgICAgICAgICA8L2Rl
cGVuZGVuY3k+ICAgICAgICAgICAgCiAgICAgICA8ZGVwZW5kZW5jeT4KICAgICAgICAgICAgICAg
ICAgICAgPGdyb3VwSWQ+b3JnLmFwYWNoZS50aWxlczwvZ3JvdXBJZD4KICAgICAgICAgICAgICAg
ICAgICAgPGFydGlmYWN0SWQ+dGlsZXMtdGVtcGxhdGU8L2FydGlmYWN0SWQ+CiAgICAgICAgICAg
ICAgICAgICAgIDwhLS08dmVyc2lvbj4yLjEuOC4xPC92ZXJzaW9uPi0tPgogICAgICAgICAgICAg
ICAgICAgICA8dmVyc2lvbj4ke3RpbGVzLnZlcnNpb259PC92ZXJzaW9uPgogICAgICAgICAgIDwv
ZGVwZW5kZW5jeT4KICAgICA8ZGVwZW5kZW5jeT4KICAgICAgICAgICAgICAgICAgICAgPGdyb3Vw
SWQ+Y29tbW9ucy1iZWFudXRpbHM8L2dyb3VwSWQ+CiAgICAgICAgICAgICAgICAgICAgIDxhcnRp
ZmFjdElkPmNvbW1vbnMtYmVhbnV0aWxzPC9hcnRpZmFjdElkPgogICAgICAgICAgICAgICAgICAg
ICA8IS0tPHZlcnNpb24+Mi4xLjguMTwvdmVyc2lvbj4tLT4KICAgICAgICAgICAgICAgICAgICAg
PHZlcnNpb24+JHtiZWFudXRpbHMudmVyc2lvbn08L3ZlcnNpb24+CiAgICAgICAgICAgPC9kZXB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XJzaW9uPi0tPgogICAgICAgICAgIDwh
LS08L2RlcGVuZGVuY3k+LS0+CiAgICAgIDxkZXBlbmRlbmN5PgogICAgICAgICAgICAgICAgICAg
ICA8Z3JvdXBJZD5vcmcuc2xmNGo8L2dyb3VwSWQ+CiAgICAgICAgICAgICAgICAgICAgIDxhcnRp
ZmFjdElkPnNsZjRqLXNpbXBsZTwvYXJ0aWZhY3RJZD4KICAgICAgICAgICAgICAgICAgICAgPCEt
LTx2ZXJzaW9uPjIuMS44LjE8L3ZlcnNpb24+LS0+CiAgICAgICAgICAgICAgICAgICAgIDx2ZXJz
aW9uPiR7c2xmNGoudmVyc2lvbn08L3ZlcnNpb24+CiAgICAgICAgICAgPC9kZXBlbmRlbmN5Pgog
ICAgICA8ZGVwZW5kZW5jeT4KICAgICAgICAgICAgICAgICAgICAgPGdyb3VwSWQ+b3JnLnNsZjRq
PC9ncm91cElkPgogICAgICAgICAgICAgICAgICAgICA8YXJ0aWZhY3RJZD5sb2c0ai1vdmVyLXNs
ZjRqPC9hcnRpZmFjdElkPgogICAgICAgICAgICAgICAgICAgICA8IS0tPHZlcnNpb24+Mi4xLjgu
MTwvdmVyc2lvbj4tLT4KICAgICAgICAgICAgICAgICAgICAgPHZlcnNpb24+JHtzbGY0ai52ZXJz
aW9ufTwvdmVyc2lvbj4KICAgICAgICAgICA8L2RlcGVuZGVuY3k+CiAgICAgPGRlcGVuZGVuY3k+
CiAgICAgICAgICAgICAgICAgICAgICAgIDxncm91cElkPmphdmF4LnNlcnZsZXQ8L2dyb3VwSWQ+
CiAgICAgICAgICAgICAgICAgICAgICAgIDxhcnRpZmFjdElkPnNlcnZsZXQtYXBpPC9hcnRpZmFj
dElkPgogICAgICAgICAgICAgICAgICAgICAgICA8dmVyc2lvbj4yLjQ8L3ZlcnNpb24+CiAgICAg
ICAgICAgICAgICAgICAgICAgIDxzY29wZT5wcm92aWRlZDwvc2NvcGU+CiAgICAgICAgICAgICAg
ICAgICAgPC9kZXBlbmRlbmN5PgogICAgIAogPC9kZXBlbmRlbmNpZXM+
--20cf304345169456f70495a680f3--

From vincenttaylor@example.com Mon Nov 22 16:32:16 2010
Return-Path: <vincenttaylor@example.com>
Delivered-To: vincenttaylor@example.com
Received: (qmail 56755 invoked from network); 22 Nov 2010 16:32:15 -0000
Received: from unknown (HELO mail.apache.org) (83.161.120.155)
  by 83.161.120.155 with SMTP; 22 Nov 2010 16:32:15 -0000
Received: (qmail 15407 invoked by uid 500); 22 Nov 2010 16:32:47 -0000
Delivered-To: vincenttaylor@example.com
Received: (qmail 14831 invoked by uid 500); 22 Nov 2010 16:32:46 -0000
Mailing-List: contact vincenttaylor@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:vincenttaylor@example.com>
List-Unsubscribe: <mailto:vincenttaylor@example.com>
List-Post: <mailto:vincenttaylor@example.com>
List-Id: <users.tiles.apache.org>
Reply-To: vincenttaylor@example.com
Delivered-To: mailing list vincenttaylor@example.com
Received: (qmail 14594 invoked by uid 99); 22 Nov 2010 16:32:46 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 16:32:46 +0000
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of vincenttaylor@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-pw0-f45.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 16:32:40 +0000
Received: by pwj6 with SMTP id 6so1606779pwj.32
        for <vincenttaylor@example.com>; Mon, 22 Nov 2010 08:32:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:received:in-reply-to
         :references:date:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        bh=J9gO+tHhTaPy0BBDnfIHYl2sUJW+ctJTLuAR9snPhKM=;
        b=ZTo7bG2ScVkvUSJTZmO0RQxoNBF9xYKtcE5N6AS58CGVsbNH/7+N8TCqDbOc4doCjn
         R3OYetWJYMgO4XUpWbJDyMSwsdaoM19HEdkrdyThajcMcEKEdPcxuPc/zR8q9riVBMVs
         EDHoHcQjeARkd+efxM4ay784BVd3C4+0gGHx0=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        b=e2Urt06QlRV4TxIgCd9aGb9UZNT5vNHhsjXv/W/YQfVgRcS3RYPSLTTsGy/f+RN9KQ
         55xIP40Kv3bI9O7vcp7f+dp2pBzC44yLxCUL7DSoVfKPLGDSI9LWfyxCdDrcac+hWqkF
         dun74g/Xm/wMJQrEhOOWmHkIobCvPWLFTvwAA=
MIME-Version: 1.0
Received: by 83.161.120.155 with SMTP id g4mr4367956fal.63.1290443531477; Mon,
 22 Nov 2010 08:32:11 -0800 (PST)
Received: by 83.161.120.155 with HTTP; Mon, 22 Nov 2010 08:32:11 -0800 (PST)
In-Reply-To: <vincenttaylor@example.com>
References: <vincenttaylor@example.com>
Date: Mon, 22 Nov 2010 17:32:11 +0100
Message-ID: <vincenttaylor@example.com>
Subject: Re: Tiles 2 and Struts 2
From: Antonio Petrelli <vincenttaylor@example.com>
To: vincenttaylor@example.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Probably you are missing the Tiles result type for Struts 2. For this,
you have to ask the Struts users mailing list:
http://struts.apache.org/mail.html

Antonio

2010/11/22 John Dondapati <vincenttaylor@example.com>:
> Hi,
> I am very new to Apache Tiles 2 and really want to use it in a project at
> work. We have Struts 2, Spring 2.5.6 working peacefully together and I
> wanted to add Tiles 2.2 on to the stack to experiment with it.
> I have added all the dependencies in the maven and they are all available=
. I
> am following the instructions on the Apache Tiles website and created a
> Listener and everything. Here's my configuration.
> Environment :
> Tomcat=A06.0.29
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
>
>
> My web.xml :
> <filter>
> =A0=A0 =A0 =A0 =A0<filter-name>struts2</filter-name>
>
> =A0<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-c=
lass>
> =A0=A0 </filter>
> =A0=A0 =A0<filter-mapping>
> =A0=A0 =A0 =A0 =A0<filter-name>struts2</filter-name>
> =A0=A0 =A0 =A0 =A0<url-pattern>/*</url-pattern>
> =A0=A0 =A0</filter-mapping>
> =A0=A0 =A0<listener>
>
> =A0<listener-class>org.springframework.web.context.ContextLoaderListener<=
/listener-class>
> =A0=A0 =A0</listener>
> =A0<listener>
> =A0=A0 =A0 =A0 =A0<listener-class>com.blablabla.MyTilesListener</listener=
-class>
> =A0</listener>
>
> Here's my=A0/WEB-INF/tiles.xml
> =A0=A0 <definition name=3D"doc.mainLayout"
> template=3D"/tiles/layout/classicLayout.jsp">
> =A0=A0 =A0 =A0<put-attribute name=3D"title" =A0value=3D"Electronic Submis=
sion of Medical
> Documentation (esMD)" />
> =A0=A0 =A0 =A0<put-attribute name=3D"header" value=3D"/tiles/layout/tiles=
-header.jsp" />
> =A0=A0 =A0 =A0<put-attribute name=3D"body" =A0 value=3D"/tiles/layout/til=
es-body.jsp" />
> =A0=A0 =A0 =A0<put-attribute name=3D"footer" value=3D"/tiles/layout/tiles=
-footer.jsp" />
> =A0=A0 =A0</definition>
>
> =A0=A0 =A0<definition name=3D"LoginPage" extends=3D"doc.mainLayout">
> =A0=A0 =A0 =A0 =A0<put-attribute name=3D"body" value=3D"/tiles/LoginBody.=
jsp"/>
> =A0=A0 =A0</definition>
> My struts.xml
> <package name=3D"default" namespace=3D"/" extends=3D"struts-default"> <!-=
-
> "tiles-default" package cannot be found in tiles 2.2 so I changed it -->
> =A0=A0 =A0 =A0<action name=3D"Login">
> =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 <result>LoginPage</result>
> =A0=A0 =A0 =A0</action>
> </package>
>
> MyTilesListener
> public class MyTilesListener extends AbstractTilesListener {
> =A0=A0 =A0protected TilesInitializer createTilesInitializer() {
> =A0=A0 =A0return new MyCustomTilesInitializer();
> }
> }
> MyCustomTilesInitializer
> public class MyCustomTilesInitializer extends BasicTilesInitializer {
> =A0=A0 =A0 =A0 =A0/** {@inheritDoc} */
> =A0=A0 =A0 =A0 =A0@Override
> =A0=A0 =A0 =A0 =A0protected AbstractTilesContainerFactory createContainer=
Factory(
> =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0TilesApplicationContext context) {
> =A0=A0 =A0 =A0 =A0 =A0 =A0return new MyTilesContainerFactory();
> =A0=A0 =A0 =A0 =A0}
> }
> MyTilesContainerFactory
> public class MyTilesContainerFactory extends BasicTilesContainerFactory{
> @Override
> protected List<URL> getSourceURLs(TilesApplicationContext
> tilesApplicationContext,
> TilesRequestContextFactory tilesRequestContextFactory) {
> List<URL> urls =3D null;
> try {
> urls =3D new ArrayList<URL>();
> urls.add(tilesApplicationContext.getResource("/WEB-INF/tiles.xml"));
> } catch(Exception exception) {
> }
> return urls;
> }
>
> }
> This is the error we get:
>
> HTTP Status 404 - /LoginPage
>
> ________________________________
>
> type=A0Status report
>
> message=A0/LoginPage
>
> description=A0The requested resource (/LoginPage) is not available.
>
> ________________________________
>
> Apache Tomcat/6.0.29
>
> ServerLog =A0:
> 388 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
> org.apache.tiles.context.AbstractTilesApplicationContextFactory -
> Initializing Tiles2 application context. . .
> 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
> org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot f=
ind
> TilesContextFactory class
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
> 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
> org.apache.tiles.context.AbstractTilesApplicationContextFactory - Finishe=
d
> initializing Tiles2 application context.
> 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
> org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot f=
ind
> TilesContextFactory class
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
> 449 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
> org.apache.tiles.access.TilesAccess - Publishing TilesContext for context=
:
> org.apache.tiles.servlet.context.ServletTilesApplicationContext
>
> Can someone give me a direction to fix this please. Thanks!
>
> --
> Cheers,
> John
>
> P.S: I also attached my pom.xml dependencies to give you a complete pictu=
re.

From vincenttaylor@example.com Mon Nov 22 16:41:36 2010
Return-Path: <vincenttaylor@example.com>
Delivered-To: vincenttaylor@example.com
Received: (qmail 61037 invoked from network); 22 Nov 2010 16:41:36 -0000
Received: from unknown (HELO mail.apache.org) (83.161.120.155)
  by 83.161.120.155 with SMTP; 22 Nov 2010 16:41:36 -0000
Received: (qmail 23983 invoked by uid 500); 22 Nov 2010 16:42:08 -0000
Delivered-To: vincenttaylor@example.com
Received: (qmail 23930 invoked by uid 500); 22 Nov 2010 16:42:07 -0000
Mailing-List: contact vincenttaylor@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:vincenttaylor@example.com>
List-Unsubscribe: <mailto:vincenttaylor@example.com>
List-Post: <mailto:vincenttaylor@example.com>
List-Id: <users.tiles.apache.org>
Reply-To: vincenttaylor@example.com
Delivered-To: mailing list vincenttaylor@example.com
Received: (qmail 23922 invoked by uid 99); 22 Nov 2010 16:42:07 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 16:42:07 +0000
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
	tests=SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: local policy)
Received: from [83.161.120.155] (HELO oldperseverance.encs.concordia.ca) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 16:41:59 +0000
Received: from cacao.encs.concordia.ca (vincenttaylor@example.com [83.161.120.155])
	by oldperseverance.encs.concordia.ca (envelope-from vincenttaylor@example.com) (8.13.7/8.13.7) with ESMTP id oAMGfAn6009652;
	Mon, 22 Nov 2010 11:41:11 -0500
Message-ID: <vincenttaylor@example.com>
Date: Mon, 22 Nov 2010 11:41:10 -0500
From: Emi Lu <vincenttaylor@example.com>
Reply-To: vincenttaylor@example.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:83.161.120.155) Gecko/20101027 Lightning/1.0b1 Thunderbird/3.0.10
MIME-Version: 1.0
To: vincenttaylor@example.com, vincenttaylor@example.com
Subject: Re: Tiles 2 and Struts 2
References: <vincenttaylor@example.com>
In-Reply-To: <vincenttaylor@example.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.58 on oldperseverance.encs.concordia.ca at 2010/11/22 11:41:11 EST

> We have Struts 2, Spring 2.5.6 working peacefully together and


> I wanted to add Tiles 2.2 on to the stack to experiment with it.

If I remember correctly, "tiles2.2.x & tiles2.1.x" does not support struts2!

You will have to use tiles2.0.7 instead. Otherwise, 
UnresolvingLocalDefinitionFactory Exception will arise.

--
Lu Ying


> added dependencies in  maven and they are all
> available. I am following the instructions on the Apache Tiles website
> and created a Listener and everything. Here's my configuration.
>
> *_Environment_* :
>
> Tomcat 6.0.29
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
>



>
> _*My web.xml *_*:*
> /
> /
> <filter>
> <filter-name>struts2</filter-name>
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> </filter>
>
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>/*</url-pattern>
> </filter-mapping>
>
> <listener>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> </listener>
> /
> /
> /* <listener>*/
> /* <listener-class>com.blablabla.MyTilesListener</listener-class>*/
> /* </listener>*/
>
> *_Here's my /WEB-INF/tiles.xml_*
> *_
> _*
> / <definition name="doc.mainLayout"
> template="/tiles/layout/classicLayout.jsp">/
> / <put-attribute name="title"  value="Electronic Submission of Medical
> Documentation (esMD)" />/
> / <put-attribute name="header" value="/tiles/layout/tiles-header.jsp" />/
> / <put-attribute name="body"   value="/tiles/layout/tiles-body.jsp" />/
> / <put-attribute name="footer" value="/tiles/layout/tiles-footer.jsp" />/
> / </definition>/
> / /
> / <definition name="*_LoginPage_*" extends="doc.mainLayout">/
> / <put-attribute name="body" value="/tiles/LoginBody.jsp"/>/
> / </definition>/
> /
> /
> /*_My struts.xml_*/
> /
> /
> /
> <package name="default" namespace="/" extends="struts-default"> <!--
> "tiles-default" package cannot be found in tiles 2.2 so I changed it -->
> /
> <action name="Login">
> /
> /
> /
> /
> <result>*_LoginPage_*</result>
> /
> /
> </action>
> /
> </package>
>
> /
>
> /*_MyTilesListener_*/
>
> public class MyTilesListener extends AbstractTilesListener {
>
>      protected TilesInitializer createTilesInitializer() {
>      return new MyCustomTilesInitializer();
> }
> }
>
> *_MyCustomTilesInitializer_*
>
> public class MyCustomTilesInitializer extends BasicTilesInitializer {
>
>          /** {@inheritDoc} */
>          @Override
>          protected AbstractTilesContainerFactory createContainerFactory(
>                  TilesApplicationContext context) {
>              return new MyTilesContainerFactory();
>          }
> }
>
> *_MyTilesContainerFactory_*
>
> public class MyTilesContainerFactory extends BasicTilesContainerFactory{
> @Override
> protected List<URL> getSourceURLs(TilesApplicationContext
> tilesApplicationContext,
> TilesRequestContextFactory tilesRequestContextFactory) {
>
> List<URL> urls = null;
>
> try {
> urls = new ArrayList<URL>();
>
> urls.add(tilesApplicationContext.getResource("/WEB-INF/tiles.xml"));
> } catch(Exception exception) {
>
> }
>
> return urls;
> }
> }
>
> *_This is the error we get: _*
> *_
> _*
> *_
>
>
>   HTTP Status 404 - /LoginPage
>
> ------------------------------------------------------------------------
>
> *type* Status report
>
> *message* _/LoginPage_
>
> *description* _The requested resource (/LoginPage) is not available._
>
> ------------------------------------------------------------------------
>
>
>       Apache Tomcat/6.0.29
>
> _*
>
> *_ServerLog _* :
>
> 388 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
> org.apache.tiles.context.AbstractTilesApplicationContextFactory -
> Initializing Tiles2 application context. . .
> 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
> org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot
> find TilesContextFactory class
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
> 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
> org.apache.tiles.context.AbstractTilesApplicationContextFactory -
> Finished initializing Tiles2 application context.
> 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
> org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot
> find TilesContextFactory class
> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
> 449 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
> org.apache.tiles.access.TilesAccess - Publishing TilesContext for
> context: org.apache.tiles.servlet.context.ServletTilesApplicationContext
>
>
> Can someone give me a direction to fix this please. Thanks!
>
>
> --
> Cheers,
> John
>
> P.S: I also attached my pom.xml dependencies to give you a complete picture.


From vincenttaylor@example.com Mon Nov 22 17:00:20 2010
Return-Path: <vincenttaylor@example.com>
Delivered-To: vincenttaylor@example.com
Received: (qmail 46823 invoked from network); 22 Nov 2010 17:00:20 -0000
Received: from unknown (HELO mail.apache.org) (83.161.120.155)
  by 83.161.120.155 with SMTP; 22 Nov 2010 17:00:20 -0000
Received: (qmail 54827 invoked by uid 500); 22 Nov 2010 17:00:52 -0000
Delivered-To: vincenttaylor@example.com
Received: (qmail 54751 invoked by uid 500); 22 Nov 2010 17:00:52 -0000
Mailing-List: contact vincenttaylor@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:vincenttaylor@example.com>
List-Unsubscribe: <mailto:vincenttaylor@example.com>
List-Post: <mailto:vincenttaylor@example.com>
List-Id: <users.tiles.apache.org>
Reply-To: vincenttaylor@example.com
Delivered-To: mailing list vincenttaylor@example.com
Received: (qmail 54743 invoked by uid 99); 22 Nov 2010 17:00:52 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 17:00:52 +0000
X-ASF-Spam-Status: No, hits=2.2 required=10.0
	tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of vincenttaylor@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-fx0-f45.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 17:00:43 +0000
Received: by fxm4 with SMTP id 4so4882692fxm.32
        for <vincenttaylor@example.com>; Mon, 22 Nov 2010 09:00:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:received:in-reply-to
         :references:date:message-id:subject:from:to:content-type;
        bh=tj/oK9Et01D+4bsncwAlQsS88E1MJeihcWaruKXJ4Wg=;
        b=Zokk/WdbpTJKuMjSe+wYkWdxtzIiOy4t+NsGAAqx7fq9BDNGAs31oJhkAuE8XxD1l5
         dq+TvDpbzGgJPQhJtKoaoKYuBVknlQRHdTHgD4F2o0Dszjc4FRw+cYUmjkSoyUint/x7
         68IIKIOa0x14pQ8+T467zMDHltf8kY9eDNJtM=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        b=Al41uTg+M5kEcfwzkmaa9aIGIZh/IOt+uX0gRCGMZyYUCj0m6srEhgZ7T4QBFLSN+w
         q/GOS6VDdLDJr4EFFf3zW4BCDXTYc6TpDoE7AZjZnCvn2hRAJB6RpVMJp67qqy3npEmc
         OPJMGH6/6SEt4aYVOX50soMTC8+8jcr/DUXCE=
MIME-Version: 1.0
Received: by 83.161.120.155 with SMTP id q9mr314725fal.25.1290445223237; Mon, 22
 Nov 2010 09:00:23 -0800 (PST)
Received: by 83.161.120.155 with HTTP; Mon, 22 Nov 2010 09:00:23 -0800 (PST)
In-Reply-To: <vincenttaylor@example.com>
References: <vincenttaylor@example.com>
	<vincenttaylor@example.com>
Date: Mon, 22 Nov 2010 12:00:23 -0500
Message-ID: <vincenttaylor@example.com>
Subject: Re: Tiles 2 and Struts 2
From: John Dondapati <vincenttaylor@example.com>
To: vincenttaylor@example.com
Content-Type: multipart/alternative; boundary=20cf3054a70b221ae30495a731f6
X-Virus-Checked: Checked by ClamAV on apache.org

--20cf3054a70b221ae30495a731f6
Content-Type: text/plain; charset=ISO-8859-1

@ Antonio - Yes, you are right I thought it was provided in the tiles jar
along with the "tiles-default" package. But looks like it's been changed in
2.2. I posted it on struts user list, let's see what they have to say.
Thanks!


On Mon, Nov 22, 2010 at 11:32 AM, Antonio Petrelli <
vincenttaylor@example.com> wrote:

> Probably you are missing the Tiles result type for Struts 2. For this,
> you have to ask the Struts users mailing list:
> http://struts.apache.org/mail.html
>
> Antonio
>
> 2010/11/22 John Dondapati <vincenttaylor@example.com>:
> > Hi,
> > I am very new to Apache Tiles 2 and really want to use it in a project at
> > work. We have Struts 2, Spring 2.5.6 working peacefully together and I
> > wanted to add Tiles 2.2 on to the stack to experiment with it.
> > I have added all the dependencies in the maven and they are all
> available. I
> > am following the instructions on the Apache Tiles website and created a
> > Listener and everything. Here's my configuration.
> > Environment :
> > Tomcat 6.0.29
> > Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
> >
> >
> > My web.xml :
> > <filter>
> >         <filter-name>struts2</filter-name>
> >
> >
>  <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
> >    </filter>
> >     <filter-mapping>
> >         <filter-name>struts2</filter-name>
> >         <url-pattern>/*</url-pattern>
> >     </filter-mapping>
> >     <listener>
> >
> >
>  <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> >     </listener>
> >  <listener>
> >         <listener-class>com.blablabla.MyTilesListener</listener-class>
> >  </listener>
> >
> > Here's my /WEB-INF/tiles.xml
> >    <definition name="doc.mainLayout"
> > template="/tiles/layout/classicLayout.jsp">
> >       <put-attribute name="title"  value="Electronic Submission of
> Medical
> > Documentation (esMD)" />
> >       <put-attribute name="header" value="/tiles/layout/tiles-header.jsp"
> />
> >       <put-attribute name="body"   value="/tiles/layout/tiles-body.jsp"
> />
> >       <put-attribute name="footer" value="/tiles/layout/tiles-footer.jsp"
> />
> >     </definition>
> >
> >     <definition name="LoginPage" extends="doc.mainLayout">
> >         <put-attribute name="body" value="/tiles/LoginBody.jsp"/>
> >     </definition>
> > My struts.xml
> > <package name="default" namespace="/" extends="struts-default"> <!--
> > "tiles-default" package cannot be found in tiles 2.2 so I changed it -->
> >       <action name="Login">
> >                  <result>LoginPage</result>
> >       </action>
> > </package>
> >
> > MyTilesListener
> > public class MyTilesListener extends AbstractTilesListener {
> >     protected TilesInitializer createTilesInitializer() {
> >     return new MyCustomTilesInitializer();
> > }
> > }
> > MyCustomTilesInitializer
> > public class MyCustomTilesInitializer extends BasicTilesInitializer {
> >         /** {@inheritDoc} */
> >         @Override
> >         protected AbstractTilesContainerFactory createContainerFactory(
> >                 TilesApplicationContext context) {
> >             return new MyTilesContainerFactory();
> >         }
> > }
> > MyTilesContainerFactory
> > public class MyTilesContainerFactory extends BasicTilesContainerFactory{
> > @Override
> > protected List<URL> getSourceURLs(TilesApplicationContext
> > tilesApplicationContext,
> > TilesRequestContextFactory tilesRequestContextFactory) {
> > List<URL> urls = null;
> > try {
> > urls = new ArrayList<URL>();
> > urls.add(tilesApplicationContext.getResource("/WEB-INF/tiles.xml"));
> > } catch(Exception exception) {
> > }
> > return urls;
> > }
> >
> > }
> > This is the error we get:
> >
> > HTTP Status 404 - /LoginPage
> >
> > ________________________________
> >
> > type Status report
> >
> > message /LoginPage
> >
> > description The requested resource (/LoginPage) is not available.
> >
> > ________________________________
> >
> > Apache Tomcat/6.0.29
> >
> > ServerLog  :
> > 388 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
> > org.apache.tiles.context.AbstractTilesApplicationContextFactory -
> > Initializing Tiles2 application context. . .
> > 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
> > org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot
> find
> > TilesContextFactory class
> > org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
> > 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
> > org.apache.tiles.context.AbstractTilesApplicationContextFactory -
> Finished
> > initializing Tiles2 application context.
> > 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
> > org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot
> find
> > TilesContextFactory class
> > org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
> > 449 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
> > org.apache.tiles.access.TilesAccess - Publishing TilesContext for
> context:
> > org.apache.tiles.servlet.context.ServletTilesApplicationContext
> >
> > Can someone give me a direction to fix this please. Thanks!
> >
> > --
> > Cheers,
> > John
> >
> > P.S: I also attached my pom.xml dependencies to give you a complete
> picture.
>



-- 
Cheers,
John

--20cf3054a70b221ae30495a731f6--

From vincenttaylor@example.com Mon Nov 22 17:02:59 2010
Return-Path: <vincenttaylor@example.com>
Delivered-To: vincenttaylor@example.com
Received: (qmail 49628 invoked from network); 22 Nov 2010 17:02:58 -0000
Received: from unknown (HELO mail.apache.org) (83.161.120.155)
  by 83.161.120.155 with SMTP; 22 Nov 2010 17:02:58 -0000
Received: (qmail 56158 invoked by uid 500); 22 Nov 2010 17:03:30 -0000
Delivered-To: vincenttaylor@example.com
Received: (qmail 56009 invoked by uid 500); 22 Nov 2010 17:03:30 -0000
Mailing-List: contact vincenttaylor@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:vincenttaylor@example.com>
List-Unsubscribe: <mailto:vincenttaylor@example.com>
List-Post: <mailto:vincenttaylor@example.com>
List-Id: <users.tiles.apache.org>
Reply-To: vincenttaylor@example.com
Delivered-To: mailing list vincenttaylor@example.com
Received: (qmail 56000 invoked by uid 99); 22 Nov 2010 17:03:30 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 17:03:30 +0000
X-ASF-Spam-Status: No, hits=2.2 required=10.0
	tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of vincenttaylor@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-pw0-f45.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 17:03:23 +0000
Received: by pwj6 with SMTP id 6so1635559pwj.32
        for <vincenttaylor@example.com>; Mon, 22 Nov 2010 09:03:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:received:in-reply-to
         :references:date:message-id:subject:from:to:cc:content-type;
        bh=jS86PNZtxm4EDwCS2uzSOTRn8JbxVNJQxB7wdUQb/CM=;
        b=mkHAPfsb/bCegniQ/5U1ghTDchePbnjiIdPttcig1Iy5GDLRp6M5wpHPNyDsE3HvIs
         Tvrpg77skB34t4vW773sx+mugikR7eIs335WwMqmv+41PNrWkEkcWw1ZbzBWS3WfUtG4
         1lktgdy2lmC2z2O513ghqxdCcdR/5Ai8HFkQ0=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        b=aSnhQ2jr7vxHQzs+pIS99WmK+/YoMz1z0g5uSGrRKWgxIzvW84/wg5fqh2OG5VeT08
         aHtKVzdj1ZwW+RGugueCPRFFNcmbxDpMtjHmLFYsubBKDejr6OvP0ZN65hOAuDTxZuYE
         AJeiLjjqAt9YTpmuGA4LstBbUms+O48ps9cZE=
MIME-Version: 1.0
Received: by 83.161.120.155 with SMTP id e16mr2438590faj.6.1290445380830; Mon,
 22 Nov 2010 09:03:00 -0800 (PST)
Received: by 83.161.120.155 with HTTP; Mon, 22 Nov 2010 09:03:00 -0800 (PST)
In-Reply-To: <vincenttaylor@example.com>
References: <vincenttaylor@example.com>
	<vincenttaylor@example.com>
Date: Mon, 22 Nov 2010 12:03:00 -0500
Message-ID: <vincenttaylor@example.com>
Subject: Re: Tiles 2 and Struts 2
From: John Dondapati <vincenttaylor@example.com>
To: vincenttaylor@example.com
Cc: vincenttaylor@example.com
Content-Type: multipart/alternative; boundary=00248c11e89186d5770495a73a6b
X-Virus-Checked: Checked by ClamAV on apache.org

--00248c11e89186d5770495a73a6b
Content-Type: text/plain; charset=ISO-8859-1

@Emi Lu, are you sure? I will try tiles 2.0.7 if I don't get any fix from
the struts users list. May be someone there has a fix for it. But thanks for
the prompt reply. I appreciate it.

On Mon, Nov 22, 2010 at 11:41 AM, Emi Lu <vincenttaylor@example.com> wrote:

> We have Struts 2, Spring 2.5.6 working peacefully together and
>>
>
>
>  I wanted to add Tiles 2.2 on to the stack to experiment with it.
>>
>
> If I remember correctly, "tiles2.2.x & tiles2.1.x" does not support
> struts2!
>
> You will have to use tiles2.0.7 instead. Otherwise,
> UnresolvingLocalDefinitionFactory Exception will arise.
>
> --
> Lu Ying
>
>
>  added dependencies in  maven and they are all
>>
>> available. I am following the instructions on the Apache Tiles website
>> and created a Listener and everything. Here's my configuration.
>>
>> *_Environment_* :
>>
>> Tomcat 6.0.29
>> Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
>>
>>
>
>
>
>> _*My web.xml *_*:*
>> /
>> /
>> <filter>
>> <filter-name>struts2</filter-name>
>>
>> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>> </filter>
>>
>> <filter-mapping>
>> <filter-name>struts2</filter-name>
>> <url-pattern>/*</url-pattern>
>> </filter-mapping>
>>
>> <listener>
>>
>> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>> </listener>
>> /
>> /
>> /* <listener>*/
>> /* <listener-class>com.blablabla.MyTilesListener</listener-class>*/
>> /* </listener>*/
>>
>> *_Here's my /WEB-INF/tiles.xml_*
>> *_
>> _*
>> / <definition name="doc.mainLayout"
>> template="/tiles/layout/classicLayout.jsp">/
>> / <put-attribute name="title"  value="Electronic Submission of Medical
>> Documentation (esMD)" />/
>> / <put-attribute name="header" value="/tiles/layout/tiles-header.jsp" />/
>> / <put-attribute name="body"   value="/tiles/layout/tiles-body.jsp" />/
>> / <put-attribute name="footer" value="/tiles/layout/tiles-footer.jsp" />/
>> / </definition>/
>> / /
>> / <definition name="*_LoginPage_*" extends="doc.mainLayout">/
>> / <put-attribute name="body" value="/tiles/LoginBody.jsp"/>/
>> / </definition>/
>> /
>> /
>> /*_My struts.xml_*/
>> /
>> /
>> /
>> <package name="default" namespace="/" extends="struts-default"> <!--
>> "tiles-default" package cannot be found in tiles 2.2 so I changed it -->
>> /
>> <action name="Login">
>> /
>> /
>> /
>> /
>> <result>*_LoginPage_*</result>
>> /
>> /
>> </action>
>> /
>> </package>
>>
>> /
>>
>> /*_MyTilesListener_*/
>>
>> public class MyTilesListener extends AbstractTilesListener {
>>
>>     protected TilesInitializer createTilesInitializer() {
>>     return new MyCustomTilesInitializer();
>> }
>> }
>>
>> *_MyCustomTilesInitializer_*
>>
>> public class MyCustomTilesInitializer extends BasicTilesInitializer {
>>
>>         /** {@inheritDoc} */
>>         @Override
>>         protected AbstractTilesContainerFactory createContainerFactory(
>>                 TilesApplicationContext context) {
>>             return new MyTilesContainerFactory();
>>         }
>> }
>>
>> *_MyTilesContainerFactory_*
>>
>> public class MyTilesContainerFactory extends BasicTilesContainerFactory{
>> @Override
>> protected List<URL> getSourceURLs(TilesApplicationContext
>> tilesApplicationContext,
>> TilesRequestContextFactory tilesRequestContextFactory) {
>>
>> List<URL> urls = null;
>>
>> try {
>> urls = new ArrayList<URL>();
>>
>> urls.add(tilesApplicationContext.getResource("/WEB-INF/tiles.xml"));
>> } catch(Exception exception) {
>>
>> }
>>
>> return urls;
>> }
>> }
>>
>> *_This is the error we get: _*
>> *_
>> _*
>> *_
>>
>>
>>  HTTP Status 404 - /LoginPage
>>
>> ------------------------------------------------------------------------
>>
>> *type* Status report
>>
>> *message* _/LoginPage_
>>
>> *description* _The requested resource (/LoginPage) is not available._
>>
>> ------------------------------------------------------------------------
>>
>>
>>      Apache Tomcat/6.0.29
>>
>> _*
>>
>> *_ServerLog _* :
>>
>> 388 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
>> org.apache.tiles.context.AbstractTilesApplicationContextFactory -
>> Initializing Tiles2 application context. . .
>> 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
>> org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot
>> find TilesContextFactory class
>> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
>> 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
>> org.apache.tiles.context.AbstractTilesApplicationContextFactory -
>> Finished initializing Tiles2 application context.
>> 392 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] WARN
>> org.apache.tiles.context.ChainedTilesApplicationContextFactory - Cannot
>> find TilesContextFactory class
>> org.apache.tiles.portlet.context.PortletTilesApplicationContextFactory
>> 449 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] INFO
>> org.apache.tiles.access.TilesAccess - Publishing TilesContext for
>> context: org.apache.tiles.servlet.context.ServletTilesApplicationContext
>>
>>
>> Can someone give me a direction to fix this please. Thanks!
>>
>>
>> --
>> Cheers,
>> John
>>
>> P.S: I also attached my pom.xml dependencies to give you a complete
>> picture.
>>
>
>


-- 
Cheers,
John

--00248c11e89186d5770495a73a6b--

From vincenttaylor@example.com Mon Nov 22 18:45:20 2010
Return-Path: <vincenttaylor@example.com>
Delivered-To: vincenttaylor@example.com
Received: (qmail 2619 invoked from network); 22 Nov 2010 18:45:20 -0000
Received: from unknown (HELO mail.apache.org) (83.161.120.155)
  by 83.161.120.155 with SMTP; 22 Nov 2010 18:45:20 -0000
Received: (qmail 36243 invoked by uid 500); 22 Nov 2010 18:45:52 -0000
Delivered-To: vincenttaylor@example.com
Received: (qmail 36199 invoked by uid 500); 22 Nov 2010 18:45:52 -0000
Mailing-List: contact vincenttaylor@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:vincenttaylor@example.com>
List-Unsubscribe: <mailto:vincenttaylor@example.com>
List-Post: <mailto:vincenttaylor@example.com>
List-Id: <users.tiles.apache.org>
Reply-To: vincenttaylor@example.com
Delivered-To: mailing list vincenttaylor@example.com
Received: (qmail 36190 invoked by uid 99); 22 Nov 2010 18:45:52 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 18:45:52 +0000
X-ASF-Spam-Status: No, hits=0.0 required=10.0
	tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of vincenttaylor@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-fx0-f45.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 18:45:45 +0000
Received: by fxm4 with SMTP id 4so4991288fxm.32
        for <vincenttaylor@example.com>; Mon, 22 Nov 2010 10:45:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:received:in-reply-to
         :references:date:message-id:subject:from:to:content-type;
        bh=05koZ3oIanT+NXwrT5APz0BXKpVLJkg5JjmhfKdZj9M=;
        b=jz8cMIOnMamKzn+M8Vx8AG1upZx8PhciB/pZVUozsNX8Nf2fTUnovb/gi/IZhe6fLA
         nqCz/GqwPg3+WQNUxy19R6sZXpJv0Lm8w/+Eewoci/mcKp2dWrTSDonuUThBVrM9008i
         pwiiAK9xv8d9FPqJQNrocVibwhPJ9+tdWYFPI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        b=uUtTFHFtjB2KmHHtkizyt87QVTXNQkKhiyeuawkAuPaGTRF/A20trjoKT3oa7Drjyj
         V/L6dVTaM6PAuovtrTFZvZF6qv0mqKr/oRzVm90i1qd1h9UeSGm54C9Vaq9pBKPhk++n
         K0VzxQ8okXPqOkxMtqdVurDlfpdXZQlUiwU+Y=
MIME-Version: 1.0
Received: by 83.161.120.155 with SMTP id n13mr5508446fak.139.1290451475786; Mon,
 22 Nov 2010 10:44:35 -0800 (PST)
Received: by 83.161.120.155 with HTTP; Mon, 22 Nov 2010 10:44:35 -0800 (PST)
In-Reply-To: <vincenttaylor@example.com>
References: <vincenttaylor@example.com>
	<vincenttaylor@example.com>
	<vincenttaylor@example.com>
Date: Mon, 22 Nov 2010 19:44:35 +0100
Message-ID: <vincenttaylor@example.com>
Subject: Re: Tiles 2 and Struts 2
From: Antonio Petrelli <vincenttaylor@example.com>
To: vincenttaylor@example.com
Content-Type: text/plain; charset=ISO-8859-1

2010/11/22 John Dondapati <vincenttaylor@example.com>:
> @ Antonio - Yes, you are right I thought it was provided in the tiles jar
> along with the "tiles-default" package. But looks like it's been changed in
> 2.2. I posted it on struts user list, let's see what they have to say.
> Thanks!

Absolutely not, Tiles never shipped a Struts result type. And there is
no "tiles-default" package.

Antonio

From vincenttaylor@example.com Mon Nov 22 18:59:50 2010
Return-Path: <vincenttaylor@example.com>
Delivered-To: vincenttaylor@example.com
Received: (qmail 9892 invoked from network); 22 Nov 2010 18:59:50 -0000
Received: from unknown (HELO mail.apache.org) (83.161.120.155)
  by 83.161.120.155 with SMTP; 22 Nov 2010 18:59:50 -0000
Received: (qmail 58961 invoked by uid 500); 22 Nov 2010 19:00:21 -0000
Delivered-To: vincenttaylor@example.com
Received: (qmail 58936 invoked by uid 500); 22 Nov 2010 19:00:21 -0000
Mailing-List: contact vincenttaylor@example.com; run by ezmlm
Precedence: bulk
List-Help: <mailto:vincenttaylor@example.com>
List-Unsubscribe: <mailto:vincenttaylor@example.com>
List-Post: <mailto:vincenttaylor@example.com>
List-Id: <users.tiles.apache.org>
Reply-To: vincenttaylor@example.com
Delivered-To: mailing list vincenttaylor@example.com
Received: (qmail 58926 invoked by uid 99); 22 Nov 2010 19:00:21 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 19:00:21 +0000
X-ASF-Spam-Status: No, hits=2.2 required=10.0
	tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of vincenttaylor@example.com designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-fx0-f45.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 19:00:15 +0000
Received: by fxm4 with SMTP id 4so5005464fxm.32
        for <vincenttaylor@example.com>; Mon, 22 Nov 2010 10:59:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:received:in-reply-to
         :references:date:message-id:subject:from:to:content-type;
        bh=SRUHGCBj0Rt91ubIvqH+2B6HYIkb4km2JdC5wwPHxTY=;
        b=OtXrXl3+5oxmnSy4MYxEaoIvUYX/rf4QbrKSlJ9cL0wTL/cCBaoCUhRqWGc+lmhmdA
         d8NQ6tos3L77jqx3+E6g+2Q4e4pxM+I/zzFW3zutaQSVSl35pdV2l+I2d0sP2tDRQ6TO
         +CcLomXCBUqwNzSUm3LTrc5rVDE/gpTsaaJAE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        b=l6Tyun4s5F8EV7/fPFDidow26ae0P8VbNIG6KncZxxD+cc26+zdzU26jvDfyXy6vZI
         O9WI2hnbjFG3ImYi1pvGwndz9x0bUg57rXRrR/SzgqA0qwnnAvGJZBRnH50S1bfbmH2m
         HcWWY4QdwmGBy8Uahd1M74dbEhpZduDLLdpkU=
MIME-Version: 1.0
Received: by 83.161.120.155 with SMTP id e16mr2581056faj.6.1290452393324; Mon,
 22 Nov 2010 10:59:53 -0800 (PST)
Received: by 83.161.120.155 with HTTP; Mon, 22 Nov 2010 10:59:53 -0800 (PST)
In-Reply-To: <vincenttaylor@example.com>
References: <vincenttaylor@example.com>
	<vincenttaylor@example.com>
	<vincenttaylor@example.com>
	<vincenttaylor@example.com>
Date: Mon, 22 Nov 2010 13:59:53 -0500
Message-ID: <vincenttaylor@example.com>
Subject: Re: Tiles 2 and Struts 2
From: John Dondapati <vincenttaylor@example.com>
To: vincenttaylor@example.com
Content-Type: multipart/alternative; boundary=00248c11e89180f1ed0495a8dc40

--00248c11e89180f1ed0495a8dc40
Content-Type: text/plain; charset=ISO-8859-1

Sorry I must have confused it with struts2-tiles-plugin.

I was missing struts2-tiles-plugin. When I put that in, everything works.
Thanks!

On Mon, Nov 22, 2010 at 1:44 PM, Antonio Petrelli <
vincenttaylor@example.com> wrote:

> 2010/11/22 John Dondapati <vincenttaylor@example.com>:
> > @ Antonio - Yes, you are right I thought it was provided in the tiles jar
> > along with the "tiles-default" package. But looks like it's been changed
> in
> > 2.2. I posted it on struts user list, let's see what they have to say.
> > Thanks!
>
> Absolutely not, Tiles never shipped a Struts result type. And there is
> no "tiles-default" package.
>
> Antonio
>



-- 
Cheers,
John

--00248c11e89180f1ed0495a8dc40--


{'source': 'Apache Software Foundation Public Mail Archives'}