[Building Sakai] Spring help

Charles Severance csev at umich.edu
Fri Jun 22 10:50:29 PDT 2012


Thanks Aaron - I owe you a steak.

/Chuck

On Jun 22, 2012, at 11:33 AM, Aaron Zeckoski wrote:

> I think that means you have 2 copies of that class in your projects
> somewhere so it cannot map the proxy correctly. The other possibility
> is that you have a DAO without an API that you are trying to proxy
> (spring does not like that - well, proxies generally do not like
> that).
> 
> -AZ
> 
> 
> On Fri, Jun 22, 2012 at 11:21 AM, Charles Severance <csev at umich.edu> wrote:
>> I am in the Basic LTI service servlet and trying to get my hands on the LessonBulder simpleDAO api using this code:
>> 
>> import org.sakaiproject.lessonbuildertool.model.SimplePageToolDao;
>> 
>> if ( simplePageToolDao == null ) simplePageToolDao = (SimplePageToolDao)ComponentManager.get(SimplePageToolDao.class);
>> 
>> I get this error:
>> 
>> 2012-06-22 10:49:30,846  WARN http-bio-8080-exec-4 org.sakaiproject.component.impl.SpringCompMgr - get(org.sakaiproject.lessonbuildertool.model.SimplePageToolDao):
>> org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'org.sakaiproject.lessonbuildertool.model.SimplePageToolDao' must be of type [org.sakaiproject.lessonbuildertool.model.SimplePageToolDao], but was actually of type [$Proxy61]
>> 
>> Any thoughts/suggestions to get this to work?
>> 
>> /Chuck
>> _______________________________________________
>> 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



More information about the sakai-dev mailing list