开发者社区> 问答> 正文

Mac IDEA 启动该工程时报错?报错


请问牛哥,这样的错误该怎么解决呢
11-29 16:10:32:895 CST [WARN] AnnotationConfigWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationConfig': Unsatisfied dependency expressed through field 'sessionFactory': Error creating bean with name 'sessionFactory' defined in config.ApplicationConfig: Invocation of init method failed; nested exception is org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'com.publiccms.entities.cms.CmsContent'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in config.ApplicationConfig: Invocation of init method failed; nested exception is org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'com.publiccms.entities.cms.CmsContent'
11-29 16:10:32:900 CST [ERROR] ContextLoader - Context initialization failed <org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationConfig': Unsatisfied dependency expressed through field 'sessionFactory': Error creating bean with name 'sessionFactory' defined in config.ApplicationConfig: Invocation of init method failed; nested exception is org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'com.publiccms.entities.cms.CmsContent'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in config.ApplicationConfig: Invocation of init method failed; nested exception is org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'com.publiccms.entities.cms.CmsContent'>org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationConfig': Unsatisfied dependency expressed through field 'sessionFactory': Error creating bean with name 'sessionFactory' defined in config.ApplicationConfig: Invocation of init method failed; nested exception is org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'com.publiccms.entities.cms.CmsContent'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in config.ApplicationConfig: Invocation of init method failed; nested exception is org.hibernate.search.exception.SearchException: HSEARCH000103: Unable to initialize IndexManager named 'com.publiccms.entities.cms.CmsContent'

展开
收起
爱吃鱼的程序员 2020-06-08 20:29:38 854 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你这是项目报错啊<imgsrc="https://www.oschina.net/js/ke/plugins/emoticons/images/17.gif"alt="">恩是的呢,在运行PublicCMS这个开源项目的时候

    <spanstyle="font-family:"font-size:14px;background-color:#FFFFFF;">UnabletoinitializeIndexManagernamed'com.publiccms.entities.cms.CmsContent'

    <spanstyle="font-family:"font-size:14px;background-color:#FFFFFF;">通常是cms的数据目录配置了一个程序没有读写权限的目录

    <spanstyle="font-family:"font-size:14px;background-color:#FFFFFF;">配置文件在config/properties/other.properties

    <spanstyle="font-family:"font-size:14px;background-color:#FFFFFF;">另外还可以去官网看看部署视频教程或者部署文档

    谢谢,我已经成功的解决了,就像你说的那样,是由于目录权限的问题引起了这个错误http://git.oschina.net/sanluan/PublicCMS-lib文档的地址

    2020-06-08 20:29:54
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
蚂蚁金服高级开发工程师萧恺:IDEA 插件开发入门教程 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载