You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Celia Mou <cm...@ocean7.com> on 2007/03/20 18:25:04 UTC

compilation problem with Tapestry 5 tutorial files

Hi all,

On attempting to build the hilo project in the Tapestry 5 tutorial, i 
got a compilation error from Maven with these lines:
---------
D:\projects\hilo\src\main\java\org\example\hilo\services\AppModule.java:[8,43] 
cannot find symbol symbol  : class Contribute
location: package org.apache.tapestry.ioc.annotations
---------

And indeed the class org.apache.tapestry.ioc.annotations.Contribute is 
not there in the local repository. i guess the files have just run out 
of synce.

It's also true with another class in the same package: Id

Any ideas?

Thanks a lot!

celia

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


Re: compilation problem with Tapestry 5 tutorial files

Posted by Peter Beshai <pe...@gmail.com>.
In the current snapshot of Tapestry 5, Contribute and Id annotations have
been removed in favour of convention. You can read about the way things work
now on the following sites:

http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html -- read up
until "Cacheing Services" for what to do about Id

http://tapestry.apache.org/tapestry5/tapestry-ioc/configuration.html

Basically replace the @Contribute("serviceName") with a conventional method
name: contributeServiceName( ...)

Hope this helps

On 3/20/07, Celia Mou <cm...@ocean7.com> wrote:
>
> Hi all,
>
> On attempting to build the hilo project in the Tapestry 5 tutorial, i
> got a compilation error from Maven with these lines:
> ---------
>
> D:\projects\hilo\src\main\java\org\example\hilo\services\AppModule.java:[8,43]
> cannot find symbol symbol  : class Contribute
> location: package org.apache.tapestry.ioc.annotations
> ---------
>
> And indeed the class org.apache.tapestry.ioc.annotations.Contribute is
> not there in the local repository. i guess the files have just run out
> of synce.
>
> It's also true with another class in the same package: Id
>
> Any ideas?
>
> Thanks a lot!
>
> celia
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Peter Beshai

Computer Science Student
University of Waterloo