tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ali Ok" <aliok...@gmail.com>
Subject Tiles configuration problem, NoSuchDefinitionException
Date Tue, 31 Jul 2007 16:14:00 GMT
I tried the example from tutorials. But it didnt work.

Here is my web.xml


        <filter-name>Tiles Filter</filter-name>

        <filter-name>Tiles Filter</filter-name>
   <!-- <url-pattern>/*</url-pattern>
------------------------------------line 1------------  -->
        <!-- <servlet-name>tiles</servlet-name>
------------------------------------line 2------------  -->



I created tiles-defs.xml exactly same with tutorial.

<definition name="myapp.homepage" template="/layouts/classic.jsp">

And my jsp file,

<tiles:insertDefinition name="myapp.homepage" flush="false"/>
<!--<tiles:insertDefinition name="myapp.homepage"/>
-----------------------------line 3--------------  -->

This configuration and code throws java.lang.IllegalArgumentException:
Filter mapping must specify either a <url-pattern> or a <servlet-name>

I think configuration given in the tutorial is wrong, filter mapping's
url-pattern cannot be *, it can be /* (line 1).
When I change it to /* , this time
org.apache.tiles.definition.NoSuchDefinitionException: myapp.homepage is

I also tried writing <servlet-name> attribute of filtermapping(line 2),
again the same exception is thrown.

line 3 is also tried, same exception again...

So, what do you think the problem is?
I use JSF 1.2, MyFaces Tomahawk 1.1.6, RichFaces 3.0.1, Tiles 2.0.4 on
Tomcat 6.0 server. But the problem is not caused by these, everything was
working fine before Tiles.

Any suggestions???

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message