错误代码ERROR [main] org.springframework.web.context.ContextLoader.initWebApplicationContext(215) | Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'articleServiceImpl': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compassTemplate' defined in file [C:\Java\apache-tomcat-6.0.29\webapps\shop\WEB-INF\classes\applicationContext-compass.xml]: Cannot resolve reference to bean 'compass' while setting bean property 'compass'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compass' defined in file [C:\Java\apache-tomcat-6.0.29\webapps\shop\WEB-INF\classes\applicationContext-compass.xml]: Invocation of init method failed; nested exception is org.compass.core.config.ConfigurationException: No mapping match directory [C:\Java\apache-tomcat-6.0.29\webapps\shop\WEB-INF\classes\net\shopxx]
google,没有找到答案,有谁知道望告之,非常感谢~~~

解决方案 »

  1.   

    没用过compass 
    这里做搜索引擎的人少楼主还是加些人多的QQ群 问下吧
      

  2.   

    http://blog.sina.com.cn/s/blog_5157093c0100n19j.html
    看看别人的配置文件怎么配的感觉你索引存放的根目录是否没配置正确
      

  3.   

    没用过compass,不过看你的错误提示不是说找不到匹配的目录吗,
    No mapping match directory [C:\Java\apache-tomcat-6.0.29\webapps\shop\WEB-INF\classes\net\shopxx
    看看你的配置文件
      

  4.   

    nested exception is org.compass.core.config.ConfigurationException: No mapping match directory [C:\Java\apache-tomcat-6.0.29\webapps\shop\WEB-INF\classes\net\shopxx]既然目录存在,那就是在applicationContext-compass.xml中配置这个路径映射出错了不懂compass,瞎猜的^_^
      

  5.   

    这里没配置吧?我也遇到这个问题.
    @Searchable(alias="")