[Building Sakai] No Bean SakaiProperties exception on fresh install for sakai 2.6.x

Aaron Zeckoski aaronz at vt.edu
Tue Aug 4 05:12:52 PDT 2009


Can you check to see if there are any exceptions higher up in the logs
when you startup or is that the only one? I don't see how anything
(incuding the table creation) could have worked at all without the
org.sakaiproject.component.api.ServerConfigurationService and
org.sakaiproject.component.SakaiProperties beans.

-AZ

On Tue, Aug 4, 2009 at 12:43 PM, Simon Gaeremynck<gaeremyncks at gmail.com> wrote:
> I copied the default.sakai.properties file to my /opt/tomcat/sakai
> directory, renamed it to sakai.properties and changed the MySQL settings.
> I didn't find any setting called siteNeighbourhoodService in either of the
> properties files..
> Then I did a mvn -o -Dmaven.test.skip=true clean install sakai:deploy and
> started my tomcat server via /opt/tomcat/bin/startup.sh
> I still get the same exception though.
> Simon

On Tue, Aug 4, 2009 at 11:35 AM, Aaron Zeckoski<aaronz at vt.edu> wrote:
> I'm not sure this will fix it, but did you notice the warning at the
> top of the sakai.properties file?
> # WARNING!.  THIS PROPERTIES FILE HAS BEEN DEPRECATED FOR Sakai 2.6+
> IN FAVOR OF THE /CONFIG default.sakai.properties
>
> If so you probably want to copy over the one from the config location,
> though I had thought that the one in there was still valid for 2.6.x.
>
> Alternatively, you can look for a line which contains:
> siteNeighbourhoodService
> in your properties file and comment it out. That should fix the failure.
>
> -AZ
>
>
> On Tue, Aug 4, 2009 at 10:42 AM, Simon Gaeremynck<gaeremyncks at gmail.com> wrote:
>> Hi,
>> I am new to Sakai 2 and wanted to try it out.
>> I followed the guide
>> at http://confluence.sakaiproject.org/display/BOOT/Development+Environment+Setup+Walkthrough
>> I made a sakai.properties settings file as the walktrough explains, but when
>> I start up tomcat I get the error below in my logs.
>> I grabbed the source
>> from https://source.sakaiproject.org/svn/sakai/branches/sakai_2-6-x
>> I am trying to run it on OS X 10.4.11 with maven 2.2.0 and Java 1.5.0_16.
>> Does anyone have an idea what the problem might be?
>>
>> Simon
>>
>> PS: I am also new to this list, so if this is not the correct protocol to
>> follow please let me know.
>>
>> ....
>> 2009-08-04 10:30:46,399 ERROR main
>> org.sakaiproject.util.NoisierDefaultListableBeanFactory - Failed to
>> preinstantiate the singleton named
>> org.sakaiproject.portal.api.PortalService. Destroying all Spring beans.
>> org.springframework.beans.factory.BeanCreationException: Error creating bean
>> with name 'org.sakaiproject.portal.api.PortalService' defined in file
>> [/opt/tomcat/components/sakai-portal-service-pack/WEB-INF/components.xml]:
>> Cannot resolve reference to bean
>> 'org.sakaiproject.portal.api.SiteNeighbourhoodService' while setting bean
>> property 'siteNeighbourhoodService'; nested exception is
>> org.springframework.beans.factory.BeanCreationException: Error creating bean
>> with name 'org.sakaiproject.portal.api.SiteNeighbourhoodService' defined in
>> file
>> [/opt/tomcat/components/sakai-portal-service-pack/WEB-INF/components.xml]:
>> Cannot resolve reference to bean
>> 'org.sakaiproject.component.api.ServerConfigurationService' while setting
>> bean property 'serverConfigurationService'; nested exception is
>> org.springframework.beans.factory.BeanCreationException: Error creating bean
>> with name 'org.sakaiproject.component.api.ServerConfigurationService'
>> defined in file
>> [/opt/tomcat/components/sakai-kernel-component/WEB-INF/component-components.xml]:
>> Cannot resolve reference to bean
>> 'org.sakaiproject.component.SakaiProperties' while setting bean property
>> 'sakaiProperties'; nested exception is
>> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
>> named 'org.sakaiproject.component.SakaiProperties' is defined
>> Caused by:
>> org.springframework.beans.factory.BeanCreationException: Error creating bean
>> with name 'org.sakaiproject.portal.api.SiteNeighbourhoodService' defined in
>> file
>> [/opt/tomcat/components/sakai-portal-service-pack/WEB-INF/components.xml]:
>> Cannot resolve reference to bean
>> 'org.sakaiproject.component.api.ServerConfigurationService' while setting
>> bean property 'serverConfigurationService'; nested exception is
>> org.springframework.beans.factory.BeanCreationException: Error creating bean
>> with name 'org.sakaiproject.component.api.ServerConfigurationService'
>> defined in file
>> [/opt/tomcat/components/sakai-kernel-component/WEB-INF/component-components.xml]:
>> Cannot resolve reference to bean
>> 'org.sakaiproject.component.SakaiProperties' while setting bean property
>> 'sakaiProperties'; nested exception is
>> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
>> named 'org.sakaiproject.component.SakaiProperties' is defined
>> Caused by:
>> org.springframework.beans.factory.BeanCreationException: Error creating bean
>> with name 'org.sakaiproject.component.api.ServerConfigurationService'
>> defined in file
>> [/opt/tomcat/components/sakai-kernel-component/WEB-INF/component-components.xml]:
>> Cannot resolve reference to bean
>> 'org.sakaiproject.component.SakaiProperties' while setting bean property
>> 'sakaiProperties'; nested exception is
>> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
>> named 'org.sakaiproject.component.SakaiProperties' is defined
>> Caused by:
>> org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
>> named 'org.sakaiproject.component.SakaiProperties' is defined
>>         at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:356)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:243)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
>>         at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
>>         at
>> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
>>         at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
>> ....
>>
>> _______________________________________________
>> 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 (azeckoski (at) vt.edu)
> Senior Research Engineer - CARET - University of Cambridge
> https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski
> http://aaronz-sakai.blogspot.com/ - http://tinyurl.com/azprofile
>



-- 
Aaron Zeckoski (azeckoski (at) vt.edu)
Senior Research Engineer - CARET - University of Cambridge
https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski
http://aaronz-sakai.blogspot.com/ - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list