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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> wrote:
> >
> > I don't know if it actually makes a difference, but I use it in my
> > .application a little bit different:
> >
> > I guess it wouldn't hurt to try:
> >
> > <application>
> >   <meta key="org.apache.tapestry.page-class-packages ">hr.hrg.ponpon
> > </meta>
> >   <meta
> > key="org.apache.tapestry.component-class-packages">hr.hrg.ponpon
</meta>
> > </application>
> >
> > Denis
> >
> > -----Original Message-----
> > From: Davor Hrg [mailto: [EMAIL PROTECTED]
> > Sent: quarta-feira, 18 de outubro de 2006 10:55
> > To: Tapestry users
> > Subject: Re: T4.1 problem
> >
> > nope,
> > I must be doing something very wrong,
> > just tried it in T4.0 and it also doesn't work
> >
> > here is web.xml
> > <?xml version="1.0"?>
> > <web-app xmlns="http://java.sun.com/xml/ns/j2ee";
> >         xmlns:xsi=" http://www.w3.org/TR/xmlschema-1/";
> >
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
> > "
> > version="2.4">
> >
> >     <display-name>ponpon</display-name>
> >     <servlet>
> >         <servlet-name>ponpon</servlet-name>
> >         <servlet-class>org.apache.tapestry.ApplicationServlet
> > </servlet-class>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> >     <servlet-mapping>
> >         <servlet-name>ponpon</servlet-name>
> >         <url-pattern>/app</url-pattern>
> >     </servlet-mapping>
> > </web-app>
> >
> > ponpon.application
> > <?xml version="1.0"?>
> > <!DOCTYPE application PUBLIC
> >   "-//Apache Software Foundation//Tapestry Specification 4.0 //EN"
> >   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
> >
> > <application>
> >   <meta key="org.apache.tapestry.page-class-packages " value="
> > hr.hrg.ponpon
> > "/>
> >   <meta key="org.apache.tapestry.component-class-packages" value="
> > hr.hrg.ponpon"/>
> > </application>
> >
> > On 10/18/06, Dennis Sinelnikov < [EMAIL PROTECTED]>
> > wrote:
> > >
> > > Try '.' instead of '/'
> > > <meta key="org.apache.tapestry.page-class-packages"value="
> > hr.hrg.ponpon"/>
> > >
> > > Dennis
> > >
> > > Davor Hrg wrote:
> > > > Is there an known issue with
> > > > org.apache.tapestry.page-class-packages
> > > > in T4.1
> > > >
> > > > I don't seem to get it right,
> > > > I have a simple app and trying to get rid of
> > > > th pesky .page and use annotations
> > > > .
> > > > Just tried with Home.page
> > > >
> > > > org.apache.tapestry.PageNotFoundException
> > > > Page 'Home' not found in application namespace.
> > > >
> > > >   -
> > org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(
> > > >   PageSpecificationResolverImpl.java:147)
> > > >   -
> > > >
> > >
> >
> >

$PageSpecificationResolver_10e5b5b91b0.resolve($PageSpecificationResolver_10
> > e5b5b91b0.java)
> > > >
> > > >
> > > >   -
> > > >
> > >
> >

$PageSpecificationResolver_10e5b5b91b1.resolve($PageSpecificationResolver_10
> >
> > e5b5b91b1.java)
> > > >
> > > >
> > > >   - org.apache.tapestry.pageload.PageSource.getPage(
PageSource.java
> > :112)
> > > >
> > > >   -
$IPageSource_10e5b5b9116.getPage($IPageSource_10e5b5b9116.java)
> > > >   -
$IPageSource_10e5b5b9115.getPage($IPageSource_10e5b5b9115.java)
> > > >   - org.apache.tapestry.engine.RequestCycle.loadPage(
> > RequestCycle.java
> > > :241)
> > > >
> > > >   - -------
> > > >
> > > > I tried both .application
> > > > <application>
> > > >  <meta key="org.apache.tapestry.page-class-packages"
> > > > value="hr/hrg/ponpon"/>
> > > >  <meta key=" org.apache.tapestry.component-class-packages"
> > > > value="hr/hrg/ponpon"/>
> > > > </application>
> > > >
> > > > and web.xml
> > > >        <init-param>
> > > >            <param-name> org.apache.tapestry.page-class-packages
> > > </param-name>
> > > >            <param-value>hr.hrg.ponpon</param-value>
> > > >        </init-param>
> > > >
> > > > but no effect
> > > >
> > > >
> > > > Davor Hrg
> > > >
> > >
> > >
> > >
---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to