You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Kosarev A.V." <su...@webkazan.ru> on 2005/10/07 14:57:21 UTC
Page 'Home' not found in application namespace without .page file
Hi!!
I have this line in my admin.application file:
<meta key="org.apache.tapestry.page-class-packages" value="ru.myapp.tapestry.admin.pages"/>
But my pages not loaded without .page file (I'm using annotations) and i
have exception:
org.apache.tapestry.PageNotFoundException
Page 'Home' not found in application namespace.
Stack Trace:
org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(PageSpecificationResolverImpl.java:137)
$PageSpecificationResolver_106cb107a5a.resolve($PageSpecificationResolver_106cb107a5a.java)
$PageSpecificationResolver_106cb107a5b.resolve($PageSpecificationResolver_106cb107a5b.java)
...
Files structure
WEB-INF/
classes/ru/myapp/tapestry/admin/pages/Home.class
admin/Home.html
admin.application
web.xml
If I just add Home.page file all works fine.
What is wrong?
Thanks!
________________________________________________________________
Kosarev A.V.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Page 'Home' not found in application namespace without .page file
Posted by "Jason L. Buberel" <ja...@buberel.org>.
Yep- all .html and .page files need to be in a single top-level directory. I
learned this through experimentation too.
My first preference was to place the .page and .html files along with
the .java files in my src tree:
src/com/foo/bar/SomePage.java
src/com/foo/bar/SomePage.page
src/com/foo/bar/SomePage.html
because I like to keep like-things together. But that didn't work either.
-jason
On Sunday 09 October 2005 23:55, Kosarev A.V. wrote:
> > Hmm . . . perhaps to your context/ directory (assuming you have
> > context/WEB-INF/). If not, then I'm all out of ideas, unfortunately.
>
> With files structure:
> Home.html
> WEB-INF/
> classes/ru/myapp/tapestry/admin/pages/Home.class
> admin.application
> web.xml
> all working, but this inconveniently, since I can't separate files in
> folders. Variant
> admin/Home.html
> WEB-INF/
> classes/ru/myapp/tapestry/admin/pages/Home.class
> admin.application
> web.xml
> doesn't work.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
--
Jason L. Buberel -- jason@buberel.org -- www.buberel.org
+1.650.483.1989 -- jabber:jason@im.buberel.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re[4]: Page 'Home' not found in application namespace without .page file
Posted by "Kosarev A.V." <su...@webkazan.ru>.
> Hmm . . . perhaps to your context/ directory (assuming you have
> context/WEB-INF/). If not, then I'm all out of ideas, unfortunately.
With files structure:
Home.html
WEB-INF/
classes/ru/myapp/tapestry/admin/pages/Home.class
admin.application
web.xml
all working, but this inconveniently, since I can't separate files in
folders. Variant
admin/Home.html
WEB-INF/
classes/ru/myapp/tapestry/admin/pages/Home.class
admin.application
web.xml
doesn't work.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Re[2]: Page 'Home' not found in application namespace without .page file
Posted by Kevin Menard <km...@servprise.com>.
On Fri, 07 Oct 2005 09:29:06 -0400, Kosarev A.V. <su...@webkazan.ru>
wrote:
>
>> Try moving your Home.html file directly into WEB-INF/ and see if it
>> works
>> . . . I suspect it will.
>
> I move Home.html to WEB-INF/ and get the same error.
Hmm . . . perhaps to your context/ directory (assuming you have
context/WEB-INF/). If not, then I'm all out of ideas, unfortunately.
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re[2]: Page 'Home' not found in application namespace without .page file
Posted by "Kosarev A.V." <su...@webkazan.ru>.
> Try moving your Home.html file directly into WEB-INF/ and see if it works
> . . . I suspect it will.
I move Home.html to WEB-INF/ and get the same error.
__________________________________________________________________________
Kosarev A.V.
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Page 'Home' not found in application namespace without .page file
Posted by Kevin Menard <km...@servprise.com>.
On Fri, 07 Oct 2005 08:57:21 -0400, Kosarev A.V. <su...@webkazan.ru>
wrote:
> Files structure
> WEB-INF/
> classes/ru/myapp/tapestry/admin/pages/Home.class
> admin/Home.html
> admin.application
> web.xml
I think there are some residual issues with the page search path when the
.page file is not found. For me this has manifested as
http://issues.apache.org/jira/browse/TAPESTRY-645.
Try moving your Home.html file directly into WEB-INF/ and see if it works
. . . I suspect it will.
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org