[Building Sakai] presenceService...how to use it ?

David Wafula davidwaf at gmail.com
Wed Feb 29 05:20:59 PST 2012


Thanks Aron. I was inadvertently including the API jar in the app.
Removed it, and the error is gone. And yes, injection it is :)
regards,

On Wed, Feb 29, 2012 at 2:15 PM, Aaron Zeckoski <azeckoski at unicon.net> wrote:
> This typically means you have a jar file in the wrong place somewhere.
> Check that you don't have an API jar which is in shared in your webapp
> as well.
>
> Also, technically, this is not referred to as "initializing" but
> rather as "injecting". The service was already initialized earlier by
> Spring using the bean definition.
> -AZ
>
>
> On Wed, Feb 29, 2012 at 4:38 AM, David Wafula <davidwaf at gmail.com> wrote:
>> Hi all,
>> Using spring, am initializing presence service in my spring_sevlet.xml
>> as follows:
>>
>> <bean id="siteAdminService"
>>                        class="org.wits.sakai.siteadmin.service.SiteAdminServiceImpl"
>>                        init-method="init">
>> ....
>> <property name="presenceService"
>> ref="org.sakaiproject.presence.api.PresenceService"/>
>> ...
>> </bean>
>>
>> and so i have the necessary  getPresenceService() and
>> setPresenceService() defined in SiteAdminServiceImpl, custom class.
>> Other services get auto-wired just fine, but not this. I get:
>>
>>
>> Failed to convert property value of type
>> [org.sakaiproject.presence.impl.ClusterPresenceService] to required
>> type [org.sakaiproject.presence.api.PresenceService] for property
>> 'presenceService'; nested exception is
>> java.lang.IllegalArgumentException: Cannot convert value of type
>> [org.sakaiproject.presence.impl.ClusterPresenceService] to required
>> type [org.sakaiproject.presence.api.PresenceService] for property
>> 'presenceService': no matching editors or conversion strategy found
>>
>>
>> regards.
>> --
>> David Wafula
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>
>
>
> --
> Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile



-- 
David Wafula


More information about the sakai-dev mailing list