[Deploying Sakai] Help needed with fresh local CM implementation to be

Steve Swinsburg s.swinsburg at lancaster.ac.uk
Wed Jun 10 08:09:35 PDT 2009


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
> _______________________________________________
> production mailing list
> production at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/production
>
> TO UNSUBSCRIBE: send email to production-unsubscribe at collab.sakaiproject.org 
>  with a subject of "unsubscribe"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2437 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/production/attachments/20090610/6aca7a04/attachment.bin 


More information about the production mailing list