[Building Sakai] Problem with 2.7.x sample tool on deployment

Anthony Whyte arwhyte at umich.edu
Tue Nov 24 09:38:50 PST 2009


When I look in Tomcat instances stocked with 2.6.x and 2.7.x artifacts  
I see

2.6.x, 2.7.x
/components
	/sakai-sample-impl-access-pack
		WEB-INF/lib/sakai-sample-impl-access-impl-[VERSION].jar

The only bean defined in components.xml is

org.sakaiproject.sample.impl.SampleImplAccess

Cheers,

Anth





On Nov 24, 2009, at 12:22 PM, James Renfro wrote:

> I'm having a problem deploying the 2.7.x branch -- I have a contrib  
> tool that makes a call to  
> AbstractApplicationContext.getBeanNamesForType() that's throwing an  
> exception because it can't seem to resolve  
> 'org.sakaiproject.sample.tool.ItemService'. Looks to me like this is  
> because the sample tool has a dependency on that bean, but since the  
> sample tool is not being loaded by default this doesn't become an  
> issue in a vanilla 2.7.x build/deploy.
>
> If I remove the sample tool wars from the webapps directory  
> everything works without a hitch.
>
> Are we missing the component that goes with the sample tool in this  
> branch?
>
>
> Caused by:  
> org.springframework.beans.factory.CannotLoadBeanClassException:  
> Cannot find class [org.sakaiproject.sample.tool.ItemServiceImpl] for  
> bean with name 'org.sakaiproject.sample.tool.ItemService' defined in  
> ServletContext resource [/WEB-INF/components.xml]; nested exception  
> is java.lang.ClassNotFoundException:  
> org.sakaiproject.sample.tool.ItemServiceImpl
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1141)
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java: 
> 1177)
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .DefaultListableBeanFactory 
> .getBeanNamesForType(DefaultListableBeanFactory.java:222)
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .DefaultListableBeanFactory 
> .getBeanNamesForType(DefaultListableBeanFactory.java:202)
>     at  
> org 
> .springframework 
> .context 
> .support 
> .AbstractApplicationContext 
> .getBeanNamesForType(AbstractApplicationContext.java:933)
>     at  
> org 
> .sakaiproject 
> .gradebook 
> .gwt.sakai.Gradebook2ServiceImpl.init(Gradebook2ServiceImpl.java:172)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at  
> sun 
> .reflect 
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl 
> .invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:592)
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractAutowireCapableBeanFactory 
> .initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
>     ... 54 more
> Caused by: java.lang.ClassNotFoundException:  
> org.sakaiproject.sample.tool.ItemServiceImpl
>     at  
> org 
> .apache 
> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
> 1386)
>     at  
> org 
> .apache 
> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 
> 1232)
>     at org.springframework.util.ClassUtils.forName(ClassUtils.java: 
> 211)
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java: 
> 385)
>     at  
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
> _______________________________________________
> 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"



More information about the sakai-dev mailing list