You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Davor Hrg <hr...@gmail.com> on 2006/10/18 14:28:27 UTC

T4.1 problem

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_10e5b5b91b0.java)

   - $PageSpecificationResolver_10e5b5b91b1.resolve($PageSpecificationResolver_10e5b5b91b1.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

Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
that is it,

I moved all the pages from WEB-INF down to my
context dir,
and now it works without the .page :):):):):)

I was putting .html pages in WB-INF from the begining,
unaware that should not be there after all.

thanks everyone for the assistance :)

On 10/18/06, Denis Souza <de...@camerum.com.br> wrote:
>
> Maybe you're looking in the wrong place. Maybe the problem is not where
> you're placing the .java class but where you're placing the .html
> template.
> I never use .page files and misplacing an html template gives me exactly
> the
> same error as you're getting. Make sure your html file is just inside your
> context directory right alongside the WEB-INF directory.
> Unfortunately, in Tapestry, you can't configure the directory where you
> place your .html files (at least not in an easy way).
>
> Denis
>
> -----Original Message-----
> From: Davor Hrg [mailto:hrgdavor@gmail.com]
> Sent: quarta-feira, 18 de outubro de 2006 14:43
> To: Tapestry users
> Subject: Re: T4.1 problem
>
> sorry for spamming the list ...
>
> I used  in home .java
> @InjectMeta("org.apache.tapestry.page-class-packages")
>     public abstract String getTest();
>
> then I put in the template
>
> |<span jwcid="@Insert" value="ognl:test"/>|
>
> and got out:
>
> |hr.hrg.ponpon|
>
> On 10/18/06, Davor Hrg <hr...@gmail.com> wrote:
> >
> > I tried
> > <meta key="org.apache.tapestry.page-class-packages">hr.hrg.ponpon</meta>
> >
> > but no reluts still
> >
> > i put back the Home.page
> > <?xml version="1.0 "?>
> > <!DOCTYPE page-specification PUBLIC
> > "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> > "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > <page-specification class="hr.hrg.ponpon.Home"></page-specification>
> >
> > and it works now,
> > so classes are where supposed to be, Home.html is ok
> > annotations work in the Home.java
> >
> > but the problem persists still when I remove Home.page
> >
> > what line of code is to get
> > org.apache.tapestry.page-class-packages
> > value so I can print it to sys.out
> >
> >
> > On 10/18/06, Denis Souza <de...@camerum.com.br> 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: hrgdavor@gmail.com]
> > > 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 < dennis.sinelnikov@augustschell.com>
> > > 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: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

RE: T4.1 problem

Posted by Denis Souza <de...@camerum.com.br>.
Maybe you're looking in the wrong place. Maybe the problem is not where
you're placing the .java class but where you're placing the .html template.
I never use .page files and misplacing an html template gives me exactly the
same error as you're getting. Make sure your html file is just inside your
context directory right alongside the WEB-INF directory.
Unfortunately, in Tapestry, you can't configure the directory where you
place your .html files (at least not in an easy way).

Denis

-----Original Message-----
From: Davor Hrg [mailto:hrgdavor@gmail.com] 
Sent: quarta-feira, 18 de outubro de 2006 14:43
To: Tapestry users
Subject: Re: T4.1 problem

sorry for spamming the list ...

I used  in home .java
@InjectMeta("org.apache.tapestry.page-class-packages")
    public abstract String getTest();

then I put in the template

|<span jwcid="@Insert" value="ognl:test"/>|

and got out:

|hr.hrg.ponpon|

On 10/18/06, Davor Hrg <hr...@gmail.com> wrote:
>
> I tried
> <meta key="org.apache.tapestry.page-class-packages">hr.hrg.ponpon</meta>
>
> but no reluts still
>
> i put back the Home.page
> <?xml version="1.0 "?>
> <!DOCTYPE page-specification PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> <page-specification class="hr.hrg.ponpon.Home"></page-specification>
>
> and it works now,
> so classes are where supposed to be, Home.html is ok
> annotations work in the Home.java
>
> but the problem persists still when I remove Home.page
>
> what line of code is to get
> org.apache.tapestry.page-class-packages
> value so I can print it to sys.out
>
>
> On 10/18/06, Denis Souza <de...@camerum.com.br> 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: hrgdavor@gmail.com]
> > 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 < dennis.sinelnikov@augustschell.com>
> > 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: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
sorry for spamming the list ...

I used  in home .java
@InjectMeta("org.apache.tapestry.page-class-packages")
    public abstract String getTest();

then I put in the template

|<span jwcid="@Insert" value="ognl:test"/>|

and got out:

|hr.hrg.ponpon|

On 10/18/06, Davor Hrg <hr...@gmail.com> wrote:
>
> I tried
> <meta key="org.apache.tapestry.page-class-packages">hr.hrg.ponpon</meta>
>
> but no reluts still
>
> i put back the Home.page
> <?xml version="1.0 "?>
> <!DOCTYPE page-specification PUBLIC
> "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> <page-specification class="hr.hrg.ponpon.Home"></page-specification>
>
> and it works now,
> so classes are where supposed to be, Home.html is ok
> annotations work in the Home.java
>
> but the problem persists still when I remove Home.page
>
> what line of code is to get
> org.apache.tapestry.page-class-packages
> value so I can print it to sys.out
>
>
> On 10/18/06, Denis Souza <de...@camerum.com.br> 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: hrgdavor@gmail.com]
> > 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 < dennis.sinelnikov@augustschell.com>
> > 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: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
I tried
<meta key="org.apache.tapestry.page-class-packages">hr.hrg.ponpon</meta>

but no reluts still

i put back the Home.page
<?xml version="1.0"?>
<!DOCTYPE page-specification PUBLIC
"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
<page-specification class="hr.hrg.ponpon.Home"></page-specification>

and it works now,
so classes are where supposed to be, Home.html is ok
annotations work in the Home.java

but the problem persists still when I remove Home.page

what line of code is to get
org.apache.tapestry.page-class-packages
value so I can print it to sys.out


On 10/18/06, Denis Souza <de...@camerum.com.br> 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:hrgdavor@gmail.com]
> 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 <de...@augustschell.com> 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
in that case my css files were not available.
they are located  in css folder, and because those requests were
passed to the webapp default page was returned instead the desired css
content.
But there is no need for tapestry to handle it because servlet
container can deliver this static content.


I come from php background when speaking of webapps (low price of web
hosting for php/mysql)
so there are definitely collisions with my patterns from the past exp ...


On 10/19/06, James Carman <ja...@carmanconsulting.com> wrote:
>
> Why didn't a URL mapping of "/*" hide everything?
>
> On 10/18/06, Davor Hrg <hr...@gmail.com> wrote:
> >
> > thnx,
> > actualy it is possible hide the html without implementing pretty url
> >
> > I moidifed my web.xml
> >    <servlet-mapping>
> >        <servlet-name>ponpon</servlet-name>
> >        <url-pattern>/app</url-pattern>
> >    </servlet-mapping>
> >    <servlet-mapping>
> >        <servlet-name>ponpon</servlet-name>
> >        <url-pattern>*.html</url-pattern>
> >    </servlet-mapping>
> >
> > and reapeated mapping for *.html (since the pattern allows only simple
> > defs)
> > now all .html pages are handled by default page
> >
> > I will definitely implement pretty url, but this was enough to protect
> the
> > html source
> >
> >
> >
> > On 10/18/06, Denis Souza <de...@camerum.com.br> wrote:
> > >
> > > Try configuring friendly URLs:
> > >
> > > http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html
> > >
> > > If you follow the example on the link it should intercept anything
> with
> > an
> > > html extension.
> > >
> > > Denis
> > >
> > > -----Original Message-----
> > > From: Davor Hrg [mailto:hrgdavor@gmail.com]
> > > Sent: quarta-feira, 18 de outubro de 2006 16:02
> > > To: Tapestry users
> > > Subject: Re: T4.1 problem
> > >
> > > 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 <ja...@carmanconsulting.com> 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 <hr...@gmail.com> 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 <ja...@carmanconsulting.com> 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 <de...@camerum.com.br> 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:hrgdavor@gmail.com]
> > > > > > > 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 <
> > dennis.sinelnikov@augustschell.com
> > > >
> > > > > > 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:
> users-unsubscribe@tapestry.apache.org
> > > > > > > > For additional commands, e-mail:
> > users-help@tapestry.apache.org
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > >
> ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > > > For additional commands, e-mail:
> users-help@tapestry.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
>
>

Re: T4.1 problem

Posted by James Carman <ja...@carmanconsulting.com>.
Why didn't a URL mapping of "/*" hide everything?

On 10/18/06, Davor Hrg <hr...@gmail.com> wrote:
>
> thnx,
> actualy it is possible hide the html without implementing pretty url
>
> I moidifed my web.xml
>    <servlet-mapping>
>        <servlet-name>ponpon</servlet-name>
>        <url-pattern>/app</url-pattern>
>    </servlet-mapping>
>    <servlet-mapping>
>        <servlet-name>ponpon</servlet-name>
>        <url-pattern>*.html</url-pattern>
>    </servlet-mapping>
>
> and reapeated mapping for *.html (since the pattern allows only simple
> defs)
> now all .html pages are handled by default page
>
> I will definitely implement pretty url, but this was enough to protect the
> html source
>
>
>
> On 10/18/06, Denis Souza <de...@camerum.com.br> wrote:
> >
> > Try configuring friendly URLs:
> >
> > http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html
> >
> > If you follow the example on the link it should intercept anything with
> an
> > html extension.
> >
> > Denis
> >
> > -----Original Message-----
> > From: Davor Hrg [mailto:hrgdavor@gmail.com]
> > Sent: quarta-feira, 18 de outubro de 2006 16:02
> > To: Tapestry users
> > Subject: Re: T4.1 problem
> >
> > 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 <ja...@carmanconsulting.com> 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 <hr...@gmail.com> 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 <ja...@carmanconsulting.com> 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 <de...@camerum.com.br> 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:hrgdavor@gmail.com]
> > > > > > 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 <
> dennis.sinelnikov@augustschell.com
> > >
> > > > > 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: users-unsubscribe@tapestry.apache.org
> > > > > > > For additional commands, e-mail:
> users-help@tapestry.apache.org
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>

Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
thnx,
actualy it is possible hide the html without implementing pretty url

I moidifed my web.xml
    <servlet-mapping>
        <servlet-name>ponpon</servlet-name>
        <url-pattern>/app</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>ponpon</servlet-name>
        <url-pattern>*.html</url-pattern>
    </servlet-mapping>

and reapeated mapping for *.html (since the pattern allows only simple defs)
now all .html pages are handled by default page

I will definitely implement pretty url, but this was enough to protect the
html source



On 10/18/06, Denis Souza <de...@camerum.com.br> wrote:
>
> Try configuring friendly URLs:
>
> http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html
>
> If you follow the example on the link it should intercept anything with an
> html extension.
>
> Denis
>
> -----Original Message-----
> From: Davor Hrg [mailto:hrgdavor@gmail.com]
> Sent: quarta-feira, 18 de outubro de 2006 16:02
> To: Tapestry users
> Subject: Re: T4.1 problem
>
> 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 <ja...@carmanconsulting.com> 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 <hr...@gmail.com> 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 <ja...@carmanconsulting.com> 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 <de...@camerum.com.br> 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:hrgdavor@gmail.com]
> > > > > 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 <dennis.sinelnikov@augustschell.com
> >
> > > > 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: users-unsubscribe@tapestry.apache.org
> > > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

RE: T4.1 problem

Posted by Denis Souza <de...@camerum.com.br>.
Try configuring friendly URLs:

http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html

If you follow the example on the link it should intercept anything with an
html extension.

Denis

-----Original Message-----
From: Davor Hrg [mailto:hrgdavor@gmail.com] 
Sent: quarta-feira, 18 de outubro de 2006 16:02
To: Tapestry users
Subject: Re: T4.1 problem

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 <ja...@carmanconsulting.com> 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 <hr...@gmail.com> 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 <ja...@carmanconsulting.com> 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 <de...@camerum.com.br> 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:hrgdavor@gmail.com]
> > > > 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 <de...@augustschell.com>
> > > 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: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> >
> >
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
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 <ja...@carmanconsulting.com> 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 <hr...@gmail.com> 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 <ja...@carmanconsulting.com> 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 <de...@camerum.com.br> 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:hrgdavor@gmail.com]
> > > > 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 <de...@augustschell.com>
> > > 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: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> >
> >
>
>

Re: T4.1 problem

Posted by James Carman <ja...@carmanconsulting.com>.
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 <hr...@gmail.com> 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 <ja...@carmanconsulting.com> 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 <de...@camerum.com.br> 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:hrgdavor@gmail.com]
> > > 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 <de...@augustschell.com>
> > 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: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
>
>

Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
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 <ja...@carmanconsulting.com> 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 <de...@camerum.com.br> 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:hrgdavor@gmail.com]
> > 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 <de...@augustschell.com>
> 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: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>

Re: T4.1 problem

Posted by James Carman <ja...@carmanconsulting.com>.
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 <de...@camerum.com.br> 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:hrgdavor@gmail.com]
> 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 <de...@augustschell.com> 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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

RE: T4.1 problem

Posted by James Carman <ja...@carmanconsulting.com>.
Make sure you have a WEB-INF/classes/hr/hrg/ponpon/Home.class file in your
webapp.  Also, do you have Home.html in your webapp root?



-----Original Message-----
From: Davor Hrg [mailto:hrgdavor@gmail.com] 
Sent: Wednesday, October 18, 2006 10:07 AM
To: Tapestry users
Subject: Re: T4.1 problem

tomcat\webapps\ponpon\WEB-INF

si it's in WEB-INF if looked relatively



On 10/18/06, James Carman <ja...@carmanconsulting.com> wrote:
>
> Well, I know that it works in 4.0, since I'm using that setting.  Where is
> your ponon.application file located within your webapp?
>
> -----Original Message-----
> From: Davor Hrg [mailto:hrgdavor@gmail.com]
> Sent: Wednesday, October 18, 2006 9:57 AM
> To: Tapestry users
> Subject: Re: T4.1 problem
>
> no, :( there is no space :(
>
> key="org.apache.tapestry.page-class-packages"
> value="hr.hrg.ponpon"
>
>
>
> On 10/18/06, James Carman <ja...@carmanconsulting.com> wrote:
> >
> > Is there really a space at the end of your page-class-packages setting
> in
> > your .application file?  I don't know if that matters (Tapestry may be
> > trimming the string first), but that might be your problem.
> >
> > -----Original Message-----
> > From: Davor Hrg [mailto:hrgdavor@gmail.com]
> > Sent: Wednesday, October 18, 2006 8:55 AM
> > 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">
> >
> > <DEFANGED_application>
> >   <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> > value="hr.hrg.ponpon
> > "/>
> >   <DEFANGED_meta key="org.apache.tapestry.component-class-packages"
> > value="
> > hr.hrg.ponpon"/>
> > </application>
> >
> > On 10/18/06, Dennis Sinelnikov <de...@augustschell.com>
> wrote:
> > >
> > > Try '.' instead of '/'
> > > <DEFANGED_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
> > > > <DEFANGED_application>
> > > >  <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> > > > value="hr/hrg/ponpon"/>
> > > >  <DEFANGED_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: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
tomcat\webapps\ponpon\WEB-INF

si it's in WEB-INF if looked relatively



On 10/18/06, James Carman <ja...@carmanconsulting.com> wrote:
>
> Well, I know that it works in 4.0, since I'm using that setting.  Where is
> your ponon.application file located within your webapp?
>
> -----Original Message-----
> From: Davor Hrg [mailto:hrgdavor@gmail.com]
> Sent: Wednesday, October 18, 2006 9:57 AM
> To: Tapestry users
> Subject: Re: T4.1 problem
>
> no, :( there is no space :(
>
> key="org.apache.tapestry.page-class-packages"
> value="hr.hrg.ponpon"
>
>
>
> On 10/18/06, James Carman <ja...@carmanconsulting.com> wrote:
> >
> > Is there really a space at the end of your page-class-packages setting
> in
> > your .application file?  I don't know if that matters (Tapestry may be
> > trimming the string first), but that might be your problem.
> >
> > -----Original Message-----
> > From: Davor Hrg [mailto:hrgdavor@gmail.com]
> > Sent: Wednesday, October 18, 2006 8:55 AM
> > 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">
> >
> > <DEFANGED_application>
> >   <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> > value="hr.hrg.ponpon
> > "/>
> >   <DEFANGED_meta key="org.apache.tapestry.component-class-packages"
> > value="
> > hr.hrg.ponpon"/>
> > </application>
> >
> > On 10/18/06, Dennis Sinelnikov <de...@augustschell.com>
> wrote:
> > >
> > > Try '.' instead of '/'
> > > <DEFANGED_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
> > > > <DEFANGED_application>
> > > >  <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> > > > value="hr/hrg/ponpon"/>
> > > >  <DEFANGED_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: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

RE: T4.1 problem

Posted by James Carman <ja...@carmanconsulting.com>.
Well, I know that it works in 4.0, since I'm using that setting.  Where is
your ponon.application file located within your webapp?

-----Original Message-----
From: Davor Hrg [mailto:hrgdavor@gmail.com] 
Sent: Wednesday, October 18, 2006 9:57 AM
To: Tapestry users
Subject: Re: T4.1 problem

no, :( there is no space :(

key="org.apache.tapestry.page-class-packages"
value="hr.hrg.ponpon"



On 10/18/06, James Carman <ja...@carmanconsulting.com> wrote:
>
> Is there really a space at the end of your page-class-packages setting in
> your .application file?  I don't know if that matters (Tapestry may be
> trimming the string first), but that might be your problem.
>
> -----Original Message-----
> From: Davor Hrg [mailto:hrgdavor@gmail.com]
> Sent: Wednesday, October 18, 2006 8:55 AM
> 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">
>
> <DEFANGED_application>
>   <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> value="hr.hrg.ponpon
> "/>
>   <DEFANGED_meta key="org.apache.tapestry.component-class-packages"
> value="
> hr.hrg.ponpon"/>
> </application>
>
> On 10/18/06, Dennis Sinelnikov <de...@augustschell.com> wrote:
> >
> > Try '.' instead of '/'
> > <DEFANGED_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
> > > <DEFANGED_application>
> > >  <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> > > value="hr/hrg/ponpon"/>
> > >  <DEFANGED_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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
no, :( there is no space :(

key="org.apache.tapestry.page-class-packages"
value="hr.hrg.ponpon"



On 10/18/06, James Carman <ja...@carmanconsulting.com> wrote:
>
> Is there really a space at the end of your page-class-packages setting in
> your .application file?  I don't know if that matters (Tapestry may be
> trimming the string first), but that might be your problem.
>
> -----Original Message-----
> From: Davor Hrg [mailto:hrgdavor@gmail.com]
> Sent: Wednesday, October 18, 2006 8:55 AM
> 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">
>
> <DEFANGED_application>
>   <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> value="hr.hrg.ponpon
> "/>
>   <DEFANGED_meta key="org.apache.tapestry.component-class-packages"
> value="
> hr.hrg.ponpon"/>
> </application>
>
> On 10/18/06, Dennis Sinelnikov <de...@augustschell.com> wrote:
> >
> > Try '.' instead of '/'
> > <DEFANGED_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
> > > <DEFANGED_application>
> > >  <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> > > value="hr/hrg/ponpon"/>
> > >  <DEFANGED_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: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

RE: T4.1 problem

Posted by James Carman <ja...@carmanconsulting.com>.
Is there really a space at the end of your page-class-packages setting in
your .application file?  I don't know if that matters (Tapestry may be
trimming the string first), but that might be your problem.

-----Original Message-----
From: Davor Hrg [mailto:hrgdavor@gmail.com] 
Sent: Wednesday, October 18, 2006 8:55 AM
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">

<DEFANGED_application>
  <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
value="hr.hrg.ponpon
"/>
  <DEFANGED_meta key="org.apache.tapestry.component-class-packages" value="
hr.hrg.ponpon"/>
</application>

On 10/18/06, Dennis Sinelnikov <de...@augustschell.com> wrote:
>
> Try '.' instead of '/'
> <DEFANGED_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
> > <DEFANGED_application>
> >  <DEFANGED_meta key="org.apache.tapestry.page-class-packages"
> > value="hr/hrg/ponpon"/>
> >  <DEFANGED_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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: T4.1 problem

Posted by Denis Souza <de...@camerum.com.br>.
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:hrgdavor@gmail.com] 
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 <de...@augustschell.com> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T4.1 problem

Posted by Davor Hrg <hr...@gmail.com>.
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 <de...@augustschell.com> 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_10e5b5b91b0.java)
> >
> >
> >   -
> >
> $PageSpecificationResolver_10e5b5b91b1.resolve($PageSpecificationResolver_10e5b5b91b1.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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: T4.1 problem

Posted by Dennis Sinelnikov <de...@augustschell.com>.
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_10e5b5b91b0.java) 
> 
> 
>   - 
> $PageSpecificationResolver_10e5b5b91b1.resolve($PageSpecificationResolver_10e5b5b91b1.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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org