java - HstSiteConfigurer : ComponentManager initialization failed

标签 java apache tomcat content-management-system hippocms

我正在使用 One Hippo CMS,当我运行 Tomcat 服务器时出现此错误

5.02.2019 18:23:45 ERROR main [DefaultHstSiteConfigurer.initializeComponentManager:264] HstSiteConfigurer: ComponentManager initialization failed. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.hippoecm.hst.content.beans.manager.ObjectConverter' defined in class path resource [org/hippoecm/hst/site/container/SpringComponentManager-content-beans.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Annotated class 'org.example.myproject.beans.Urldemo' for primarytype 'myproject:urldemo' is a duplicate of already registered class 'org.example.myproject.beans.Simple'. You might have configured a bean that does not have a annotation for the jcrType and inherits the jcrType from the bean it extends, resulting in 2 beans with the same jcrType. Correct your beans. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1745) ~[spring-beans-5.1.1.RELEASE.jar:5.1.1.RELEASE]

最佳答案

检查注释:

org.example.myproject.beans.Urldemo
org.example.myproject.beans.Simple

他们每个人都应该有一个类似于以下的注释: @Node(jcrType = "project:doctype")

每个都需要一个唯一的 jcrType 值。

关于java - HstSiteConfigurer : ComponentManager initialization failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54867348/

相关文章:

perl - 如何使用 mod_perl 和 CGI​​::Application 提供临时文件下载?

xml - 在浏览器中打开 SVG 呈现 XML 代码而不是图像

excel - java.lang.NoClassDefFoundError : Could not initialize class org. apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller

tomcat - 没有 tomcat 插件的 Grails war

java - Netbeans 不会部署到 Tomcat

java - Cucumber - 带参数的小 cucumber 注释

java - 无法从 java 连接到本地 mongoDB

java - 关于thrift函数返回列表

java - 如何创建提供增删改查操作的通用 DAO,而无需通过不提供其他方法的自定义 DAO 来扩展它

java - 警告所选目录不是有效的 tomcat 主目录