You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "P.Sandeep" <ri...@gmail.com> on 2010/03/23 12:30:11 UTC
Automatic dependency resolution requires that exactly one service
implement the interface
Hi
My application is using different implementations for an interface.
And when I try to open a tapestry page injecting the service I am getting
the following exception
"*Automatic* *dependency* *resolution*
*requires* *that* *exactly* *one* *service* *implement* *the* *interface"*
*
*I have tried adding the interface and its implementation
in contributeServiceOverride() method of AppModule.
I was able to get away with the above exception , but Dao's and services
injected by spring are null.
Since we use spring IoC , the service is not injected.
Anyone faced a similar kind of issue ?
--
Regards
Sandeep
Re: Automatic dependency resolution requires that exactly one service
implement the interface
Posted by "P.Sandeep" <ri...@gmail.com>.
Thanks Thiago
That worked !!
On Tue, Mar 23, 2010 at 5:01 PM, Thiago H. de Paula Figueiredo <
thiagohp@gmail.com> wrote:
> On Tue, 23 Mar 2010 08:30:11 -0300, P.Sandeep <ri...@gmail.com>
> wrote:
>
> Hi
>>
>
> Hi!
>
> My application is using different implementations for an interface.
>> And when I try to open a tapestry page injecting the service I am getting
>> the following exception
>>
>
> Have you tried @InjectService("serviceName") instead of @Inject?
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, software architect and developer, Ars Machina Tecnologia da
> Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Regards
Sandeep
Re: Automatic dependency resolution requires that exactly one service
implement the interface
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 23 Mar 2010 08:30:11 -0300, P.Sandeep <ri...@gmail.com>
wrote:
> Hi
Hi!
> My application is using different implementations for an interface.
> And when I try to open a tapestry page injecting the service I am getting
> the following exception
Have you tried @InjectService("serviceName") instead of @Inject?
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org