一个关于mahout0.5放置位置的错误,,,

1,错误描述:

本来是在项目下建立一个lib,然后包含进来所有的包,,,结果出现了下面的错误,,,,,

严重:Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'movieSimilarityDAO' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/mahout/cf/taste/impl/similarity/GenericItemSimilarity$ItemItemSimilarit

2,解决办法:

将mahout-core-0.5.jar直接包含在WebRoot/WEB-INF/lib/下,问题解决,,,,

posted @ 2013-01-02 18:03  lpshou  阅读(299)  评论(0编辑  收藏  举报