Without a page file, Tapestry will search relative to the application spec for the template. Is it possible that your template is under WEB-INF or something like that? If so, move it to the same directory as your .application file.
jeff -----Original Message----- From: Gregg Bolinger [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 11:57 AM To: Tapestry users Subject: Re: Annotations - No .page file? Yep, here is what I have. reverse.application <?xml version="1.0"?> <!DOCTYPE application PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> <application> <meta key="org.apache.tapestry.page-class-packages" value=" com.gthought.pages"/> </application> And my Home.class is package com.gthought.pages.Home; web.xml is <servlet> <description>Application Servlet for Tapestry</description> <servlet-name>reverse</servlet-name> <servlet-class>org.apache.tapestry.ApplicationServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>reverse</servlet-name> <url-pattern>/app</url-pattern> </servlet-mapping> On 1/13/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > Can Tapestry locate your Home class; did you configure it with the > corrent package(s) to search? org.apache.tapestry.page-class-packages > > On 1/13/06, Gregg Bolinger <[EMAIL PROTECTED]> wrote: > > I am trying to get a good feel for replacing as much in the .page file > using > > annotations. I have a very simple page and I have used annotations for > the > > Form and the TextField. I tried removing the .page file completely, > > assuming it was no longer needed, but I got an exception: > > > > Page 'Home' not found in application namespace. > > > > My question is what can I do, if anything, to lose the .page file > > completely? Or do I have to have one no matter what, just empty. > > > > Thanks. > > > > Gregg > > > > > > > -- > Howard M. Lewis Ship > Independent J2EE / Open-Source Java Consultant > Creator, Jakarta Tapestry > Creator, Jakarta HiveMind > > Professional Tapestry training, mentoring, support > and project work. http://howardlewisship.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
