[Deploying Sakai] Help needed with fresh local CM implementation to be (next step)

Jean-Francois Leveque jean-francois.leveque at upmc.fr
Mon Jun 15 01:27:16 PDT 2009


Yes, I learned from Steve's example and yours.

I now have a less technical question.

How do I set Authorizer(s) and which Id should I give as "authorizer's
Username"? Is this related to find*Instructing* methods? Could
authorizer rights be given to Administration Workspace members?

Best,
Jean-Francois

Ray Davis a écrit :
> Steve's guess seems like a great place to start, especially if you've 
> just been looking at the code starting from:
> 
> https://source.sakaiproject.org/contrib/ucb/ucb-integration-samples/bspace-cm-impl/ 
> 
> 
> That CM bean configuration becomes known to the Sakai component manager 
> by being included in:
> 
> https://source.sakaiproject.org/contrib/ucb/ucb-integration-samples/bspace-components-pack/src/webapp/WEB-INF/components.xml 
> 
> 
> Best,
> Ray
> 
> On 6/10/2009 8:09 AM, Steve Swinsburg wrote:
>> Hi Jean-Francois,
>>
>> Have you deployed anything to components in Tomcat? Spring will look 
>> in tomcat/components/*/WEB-INF/components.xml to register any beans. 
>> The bean id's must be unique. You can tie all your services together 
>> there. It's essentially an exploded webapp.
>>
>> Most projects create a 'pack' module for the build that deploys it 
>> there. You could take a look at a simple example of the pack setup here:
>> https://source.sakaiproject.org/contrib/lancaster.ac.uk/quartz-example/
>>
>> cheers,
>> Steve
>>
>>
>> On 10 Jun 2009, at 16:02, Jean-Francois Leveque wrote:
>>
>>> Hi all,
>>>
>>> It seems a member of the new Fellow generation is not as knowledgeable
>>> as he thinks the others and predecessors are. :-(
>>>
>>> Be kind, this is the first time I'm trying to build something for Sakai
>>> almost out of nothing.
>>>
>>> I've made a local CM implementation but I don't know how to get the bean
>>> id I provide through the
>>> org.sakaiproject.coursemanagement.api.CourseManagementService setting
>>> defined for Spring's FactoryBean.
>>>
>>> I've tried to make a spring bean file within my src directory,
>>> simplifying
>>> https://source.sakaiproject.org/contrib/ucb/ucb-integration-samples/bspace-cm-impl/src/main/resources/META-INF/spring/bspaceCmImpl.xml 
>>>
>>> but I don't know how to tell sakai to look for this file.
>>>
>>> I get the following error :
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean with name 'org.sakaiproject.authz.api.GroupProvider': FactoryBean
>>> threw exception on object creation; nested exception is
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean with name
>>> 'org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider' 
>>>
>>> defined in file
>>> [/home/leveque/sakai/apache-tomcat-5.5.27/components/sakai-provider-pack/WEB-INF/components.xml]: 
>>>
>>> Cannot create inner bean
>>> 'org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider#2264da' 
>>>
>>> of type
>>> [org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider] 
>>>
>>> while setting bean property 'target'; nested exception is
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean with name
>>> 'org.sakaiproject.coursemanagement.impl.provider.CourseManagementGroupProvider#2264da' 
>>>
>>> defined in file
>>> [/home/leveque/sakai/apache-tomcat-5.5.27/components/sakai-provider-pack/WEB-INF/components.xml]: 
>>>
>>> Cannot resolve reference to bean
>>> 'org.sakaiproject.coursemanagement.api.CourseManagementService' while
>>> setting bean property 'cmService'; nested exception is
>>> org.springframework.beans.factory.BeanCreationException: Error creating
>>> bean with name
>>> 'org.sakaiproject.coursemanagement.api.CourseManagementService':
>>> FactoryBean threw exception on object creation; nested exception is
>>> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
>>> named
>>> 'fr.upmc.sakai.coursemanagement.dummy.CourseManagementServiceUPMCDummyImpl' 
>>>
>>> is defined
>>>
>>> Could someone help me with this?
>>>
>>> Cheers,
>>>
>>> Jean-Francois




More information about the production mailing list