if Home.html is in WEB-INF, tapestry doesn't connect with the class, if Home.html is in context, tapestry connects it with the class, but .html source is downloadable by entering http://localhost:8000/ponpon/Home.html
:(:(:( Davor Hrg <?xml version="1.0"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/TR/xmlschema-1/" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <display-name>ponpon</display-name> <servlet> <servlet-name>ponpon</servlet-name> <servlet-class>org.apache.tapestry.ApplicationServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>ponpon</servlet-name> <url-pattern>/app</url-pattern> </servlet-mapping> </web-app> On 10/18/06, James Carman <[EMAIL PROTECTED]> wrote:
The servlet engine won't allow the source to be downloaded via URL, because your tapestry servlet will intercept the request (assuming you've mapped it correctly). On 10/18/06, Davor Hrg <[EMAIL PROTECTED]> wrote: > > It makes all the difference in my project. > I moved Home.html into WEB-INF > and it didnt work > I moved it back into context > and it worked > I restarted tomcat each time > > finaly, my web app is not packed as .war, > it is a folder in webapps in tomcat. > > another problem is when Home.html is in context dir > the source of it can be downloaded via url > > > > Davor Hrg > > On 10/18/06, James Carman <[EMAIL PROTECTED]> wrote: > > > > I don't think that makes a difference. Here's my .application file > (with > > package names changed to protect the innocent): > > > > <!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.myco.myproject.web.page"/> > > <meta key="org.apache.tapestry.component-class-packages" value=" > > com.myco.myproject.web.component"/> > > <library id="contrib" > > specification-path="/org/apache/tapestry/contrib/Contrib.library"/> > > </application> > > > > On 10/18/06, Denis Souza <[EMAIL PROTECTED]> wrote: > > > > > > I don't know if it actually makes a difference, but I use it in my > > > .application a little bit different: > > > > > > I guess it wouldn't hurt to try: > > > > > > <application> > > > <meta key="org.apache.tapestry.page-class-packages">hr.hrg.ponpon > > </meta> > > > <meta > > > key="org.apache.tapestry.component-class-packages">hr.hrg.ponpon > </meta> > > > </application> > > > > > > Denis > > > > > > -----Original Message----- > > > From: Davor Hrg [mailto:[EMAIL PROTECTED] > > > Sent: quarta-feira, 18 de outubro de 2006 10:55 > > > To: Tapestry users > > > Subject: Re: T4.1 problem > > > > > > nope, > > > I must be doing something very wrong, > > > just tried it in T4.0 and it also doesn't work > > > > > > here is web.xml > > > <?xml version="1.0"?> > > > <web-app xmlns="http://java.sun.com/xml/ns/j2ee" > > > xmlns:xsi="http://www.w3.org/TR/xmlschema-1/" > > > xsi:schemaLocation=" > > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > > > version="2.4"> > > > > > > <display-name>ponpon</display-name> > > > <servlet> > > > <servlet-name>ponpon</servlet-name> > > > <servlet-class>org.apache.tapestry.ApplicationServlet > > > </servlet-class> > > > <load-on-startup>1</load-on-startup> > > > </servlet> > > > <servlet-mapping> > > > <servlet-name>ponpon</servlet-name> > > > <url-pattern>/app</url-pattern> > > > </servlet-mapping> > > > </web-app> > > > > > > ponpon.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=" > > hr.hrg.ponpon > > > "/> > > > <meta key="org.apache.tapestry.component-class-packages" value=" > > > hr.hrg.ponpon"/> > > > </application> > > > > > > On 10/18/06, Dennis Sinelnikov <[EMAIL PROTECTED]> > > wrote: > > > > > > > > Try '.' instead of '/' > > > > <meta key="org.apache.tapestry.page-class-packages"value=" > > hr.hrg.ponpon > > > "/> > > > > > > > > Dennis > > > > > > > > Davor Hrg wrote: > > > > > Is there an known issue with > > > > > org.apache.tapestry.page-class-packages > > > > > in T4.1 > > > > > > > > > > I don't seem to get it right, > > > > > I have a simple app and trying to get rid of > > > > > th pesky .page and use annotations > > > > > . > > > > > Just tried with Home.page > > > > > > > > > > org.apache.tapestry.PageNotFoundException > > > > > Page 'Home' not found in application namespace. > > > > > > > > > > - > > org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve > > > ( > > > > > PageSpecificationResolverImpl.java:147) > > > > > - > > > > > > > > > > > > > > > > > > $PageSpecificationResolver_10e5b5b91b0.resolve($PageSpecificationResolver_10 > > > e5b5b91b0.java) > > > > > > > > > > > > > > > - > > > > > > > > > > > > > > > > > > $PageSpecificationResolver_10e5b5b91b1.resolve($PageSpecificationResolver_10 > > > e5b5b91b1.java) > > > > > > > > > > > > > > > - org.apache.tapestry.pageload.PageSource.getPage( > PageSource.java > > > :112) > > > > > > > > > > - > $IPageSource_10e5b5b9116.getPage($IPageSource_10e5b5b9116.java) > > > > > - > $IPageSource_10e5b5b9115.getPage($IPageSource_10e5b5b9115.java) > > > > > - org.apache.tapestry.engine.RequestCycle.loadPage( > > RequestCycle.java > > > > :241) > > > > > > > > > > - ------- > > > > > > > > > > I tried both .application > > > > > <application> > > > > > <meta key="org.apache.tapestry.page-class-packages" > > > > > value="hr/hrg/ponpon"/> > > > > > <meta key="org.apache.tapestry.component-class-packages" > > > > > value="hr/hrg/ponpon"/> > > > > > </application> > > > > > > > > > > and web.xml > > > > > <init-param> > > > > > <param-name>org.apache.tapestry.page-class-packages > > > > </param-name> > > > > > <param-value>hr.hrg.ponpon</param-value> > > > > > </init-param> > > > > > > > > > > but no effect > > > > > > > > > > > > > > > Davor Hrg > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > 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] > > > > > > > > > > > >