无法安装 OpenAm,抛出 org.forgerock.opendj.ldap.ConstraintViolationException:对象 Class 违规

Not able to install OpenAm, throwing org.forgerock.opendj.ldap.ConstraintViolationException: Object Class Violation

我正在使用 java 8 到 运行,但是在安装日志中尝试使用 default/custom OpenAm 安装模式时出现以下异常。

The lower level exception message
Object Class Violation: Entry ou=dashboardService,ou=services,dc=openam,dc=forgerock,dc=org violates the Directory Server schema configuration because it does not include a structural objectclass. All entries must contain a structural objectclass
The lower level exception:
org.forgerock.opendj.ldap.ConstraintViolationException: Object Class Violation: Entry ou=dashboardService,ou=services,dc=openam,dc=forgerock,dc=org violates the Directory Server schema configuration because it does not include a structural objectclass. All entries must contain a structural objectclass
at org.forgerock.opendj.ldap.LdapException.newLdapException(LdapException.java:176)
at org.forgerock.opendj.ldap.spi.ResultLdapPromiseImpl.setResultOrError(ResultLdapPromiseImpl.java:142)
at org.forgerock.opendj.grizzly.LDAPClientFilter$ClientResponseHandler.addResult(LDAPClientFilter.java:126)
at org.forgerock.opendj.io.LDAPReader.readAddResult(LDAPReader.java:173)
at org.forgerock.opendj.io.LDAPReader.readProtocolOp(LDAPReader.java:571)
at org.forgerock.opendj.io.LDAPReader.readMessage(LDAPReader.java:132)
at org.forgerock.opendj.grizzly.LDAPBaseFilter.handleRead(LDAPBaseFilter.java:82)
at org.glassfish.grizzly.filterchain.ExecutorResolver.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access0(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
at java.lang.Thread.run(Unknown Source)

请帮忙。

我能够解决这个问题,当检查 tomcat 服务器的日志时,用户有一些权限问题,拒绝它在 tomcat 中创建 'temp' 文件夹。我猜 OpenAm 安装在配置期间在内部使用这个文件夹。在 tomcat 服务器中手动创建 'temp' 文件夹后,我的问题得到解决。如果有人遇到此错误,请先检查您的 tomcat 日志以解决问题。