You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tiles.apache.org by Antonio Petrelli <an...@gmail.com> on 2007/08/01 09:09:33 UTC

Re: Tiles configuration problem, NoSuchDefinitionException

2007/7/31, Ali Ok <al...@gmail.com>:
>
> No.
>
> If mapping url-pattern is *, then throws
> java.lang.IllegalArgumentException:
> Filter mapping must specify either a <url-pattern> or a <servlet-name> is
> thrown.



As I wrote before, this is a mistake I made, and I already thanked you.
The problem is that "NoSuchDefinitionException" that you got when you used
<tiles:insertDefinition>.
Anyway, I saw that you used TilesFilter and TilesListener at the same time:
you should use one or the other, though I don't think this is the problem.

Antonio

Re: Tiles configuration problem, NoSuchDefinitionException

Posted by Antonio Petrelli <an...@gmail.com>.
2007/8/1, Ali Ok <al...@gmail.com>:
>
> Sorry for repetition.
>
> But I couldnt understand where is the problem.



What exactly don't you understand? I can't understand you :-)

Antonio

Re: Tiles configuration problem, NoSuchDefinitionException

Posted by Ali Ok <al...@gmail.com>.
I will try it, thank you very much... ^^

2007/8/1, Antonio Petrelli <an...@gmail.com>:
>
> 2007/8/1, Ali Ok <al...@gmail.com>:
> >
> > I dont have /org/apache/tiles/classpath-defs.xml .
> >
> > Is it necessary?
>
>
>
> No, so remove it...
>

Re: Tiles configuration problem, NoSuchDefinitionException

Posted by Antonio Petrelli <an...@gmail.com>.
2007/8/1, Ali Ok <al...@gmail.com>:
>
> I dont have /org/apache/tiles/classpath-defs.xml .
>
> Is it necessary?



No, so remove it...

Re: Tiles configuration problem, NoSuchDefinitionException

Posted by Ali Ok <al...@gmail.com>.
I dont have /org/apache/tiles/classpath-defs.xml .

Is it necessary?

2007/8/1, Antonio Petrelli <an...@gmail.com>:
>
> 2007/8/1, Ali Ok <al...@gmail.com>:
> >
> > Thanks for your help first of all...
> >
> > NoSuchDefinitionException is thrown when I try to insert.
> > You saw my web.xml and tiles-defs.xml.
> >
> > I cant understand why exception is thrown?
>
>
>
> Ok, what I suppose is that the Tiles definitions loading did not happen,
> or
> it happened with errors.
> One problem in your web.xml is the use of both TilesFilter and
> TilesListener, when, in fact, you need either one or the other.
> Moreover, your problem could be the presence of both:
> /WEB-INF/tiles-defs.xml
> and
> /org/apache/tiles/classpath-defs.xml
> Have you got both of these files?
>
> Antonio
>

Re: Tiles configuration problem, NoSuchDefinitionException

Posted by Antonio Petrelli <an...@gmail.com>.
2007/8/1, Ali Ok <al...@gmail.com>:
>
> Thanks for your help first of all...
>
> NoSuchDefinitionException is thrown when I try to insert.
> You saw my web.xml and tiles-defs.xml.
>
> I cant understand why exception is thrown?



Ok, what I suppose is that the Tiles definitions loading did not happen, or
it happened with errors.
One problem in your web.xml is the use of both TilesFilter and
TilesListener, when, in fact, you need either one or the other.
Moreover, your problem could be the presence of both:
/WEB-INF/tiles-defs.xml
and
/org/apache/tiles/classpath-defs.xml
Have you got both of these files?

Antonio

Re: Tiles configuration problem, NoSuchDefinitionException

Posted by Ali Ok <al...@gmail.com>.
Thanks for your help first of all...

NoSuchDefinitionException is thrown when I try to insert.
You saw my web.xml and tiles-defs.xml.

I cant understand why exception is thrown?

2007/8/1, Ali Ok <al...@gmail.com>:
>
> Sorry for repetition.
>
> But I couldnt understand where is the problem.
>
> 2007/8/1, Antonio Petrelli <an...@gmail.com>:
> >
> > 2007/7/31, Ali Ok <al...@gmail.com>:
> > >
> > > No.
> > >
> > > If mapping url-pattern is *, then throws
> > > java.lang.IllegalArgumentException:
> > > Filter mapping must specify either a <url-pattern> or a <servlet-name>
> > is
> > > thrown.
> >
> >
> >
> > As I wrote before, this is a mistake I made, and I already thanked you.
> > The problem is that "NoSuchDefinitionException" that you got when you
> > used
> > <tiles:insertDefinition>.
> > Anyway, I saw that you used TilesFilter and TilesListener at the same
> > time:
> > you should use one or the other, though I don't think this is the
> > problem.
> >
> > Antonio
> >
>
>

Re: Tiles configuration problem, NoSuchDefinitionException

Posted by Ali Ok <al...@gmail.com>.
Sorry for repetition.

But I couldnt understand where is the problem.

2007/8/1, Antonio Petrelli <an...@gmail.com>:
>
> 2007/7/31, Ali Ok <al...@gmail.com>:
> >
> > No.
> >
> > If mapping url-pattern is *, then throws
> > java.lang.IllegalArgumentException:
> > Filter mapping must specify either a <url-pattern> or a <servlet-name>
> is
> > thrown.
>
>
>
> As I wrote before, this is a mistake I made, and I already thanked you.
> The problem is that "NoSuchDefinitionException" that you got when you used
> <tiles:insertDefinition>.
> Anyway, I saw that you used TilesFilter and TilesListener at the same
> time:
> you should use one or the other, though I don't think this is the problem.
>
> Antonio
>