By: Vishal Dogra user 14 Oct 2014 at 4:22 p.m. CDT

5 Responses
Vishal Dogra gravatar
We are getting the below error when we try adding a new user. Logs from /opt/tomcat/logs/wrapper.log INFO | jvm 1 | 2014/10/14 20:47:59 | Caused by: Connection exception (LDAP config error: schema violation contact LDAP admin.: Entry inum=@!FE08.B3E0.9F38.8E7D!0001!F710.3636!0000!5001.FB52,ou=people,o=@!FE08.B3E0.9F38.8E7D!0001!F710.3636,o=gluu violates the Directory Server schema configuration because it includes attribute cn which is not allowed by any of the objectclasses defined in that entry) INFO | jvm 1 | 2014/10/14 20:47:59 | at org.gluu.site.ldap.OperationsFacade.addEntry(OperationsFacade.java:299) INFO | jvm 1 | 2014/10/14 20:47:59 | at org.gluu.site.ldap.persistence.LdapEntryManager.persist(LdapEntryManager.java:77) INFO | jvm 1 | 2014/10/14 20:47:59 | ... 98 more Not sure how I can attach so here is the OXTrust error log statements: 2014-10-15 16:39:32,906 WARN [org.jboss.seam.security.permission.PersistentPermissionResolver] no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required. 2014-10-15 16:39:33,576 DEBUG [org.gluu.oxtrust.ldap.service.AppInitializer] Creating application components 2014-10-15 16:39:33,580 INFO [org.gluu.oxtrust.ldap.service.AppInitializer] Build date 201110301211. Code revision ${revisionVersion} on ${revisionDate}. Build ${env.BUILD_NUMBER} 2014-10-15 16:39:34,073 DEBUG [org.gluu.oxtrust.ldap.service.AppInitializer] Created site LdapEntryManager: org.gluu.site.ldap.persistence.LdapEntryManager@299e264 2014-10-15 16:39:34,127 ERROR [org.gluu.oxtrust.config.OxTrustConfiguration] Failed to load configuration from LDAP 2014-10-15 16:39:34,127 WARN [org.gluu.oxtrust.config.OxTrustConfiguration] Unable to find configuration in LDAP, try to create configuration entry in LDAP... 2014-10-15 16:39:34,446 ERROR [org.gluu.oxtrust.config.OxTrustConfiguration] Failed to save configuration in LDAP org.gluu.site.ldap.persistence.exception.EntryPersistenceException: Failed to persist entry: ou=oxtrust,ou=configuration,inum=@!66A9.63BB.35F4.24B1!0002!BD1F.CFFF,ou=appliances,o=gluu at org.gluu.site.ldap.persistence.LdapEntryManager.persist(LdapEntryManager.java:82) at org.gluu.site.ldap.persistence.AbstractEntryManager.persist(AbstractEntryManager.java:94) at org.gluu.oxtrust.config.OxTrustConfiguration.persist(OxTrustConfiguration.java:135) at org.gluu.oxtrust.config.OxTrustConfiguration.createConfigurationFromLdap(OxTrustConfiguration.java:113) at org.gluu.oxtrust.config.OxTrustConfiguration.initConfigurations(OxTrustConfiguration.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) at org.gluu.oxtrust.config.OxTrustConfiguration_$$_javassist_seam_0.initConfigurations(OxTrustConfiguration_$$_javassist_seam_0.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) at org.jboss.seam.Component.callComponentMethod(Component.java:2313) at org.jboss.seam.core.Events.raiseEvent(Events.java:85) at org.gluu.oxtrust.ldap.service.AppInitializer.createApplicationComponents(AppInitializer.java:127) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) at org.gluu.oxtrust.ldap.service.AppInitializer_$$_javassist_seam_2.createApplicationComponents(AppInitializer_$$_javassist_seam_2.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144) at org.jboss.seam.Component.callComponentMethod(Component.java:2313) at org.jboss.seam.Component.callCreateMethod(Component.java:2236) at org.jboss.seam.Component.newInstance(Component.java:2196) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:343) at org.jboss.seam.contexts.Contexts.startup(Contexts.java:317) at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:143) at org.jboss.seam.init.Initialization.init(Initialization.java:813) at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5490) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: Connection exception (Error adding object to directory. LDAP error number 32: The provided entry ou=oxtrust,ou=configuration,inum=@!66A9.63BB.35F4.24B1!0002!BD1F.CFFF,ou=appliances,o=gluu cannot be added because its suffix is not defined as one of the suffixes within the Directory Server) at org.gluu.site.ldap.OperationsFacade.addEntry(OperationsFacade.java:302) at org.gluu.site.ldap.persistence.LdapEntryManager.persist(LdapEntryManager.java:77) ... 74 more

By William Lowe user 14 Oct 2014 at 6:08 p.m. CDT

William Lowe gravatar
Vishal, I think this ticket may point you in the right directon: [https://support.gluu.org/view/identity-mapping/failed-to-add-a-new-person/1369](https://support.gluu.org/view/identity-mapping/failed-to-add-a-new-person/1369) Let us know.

By Vishal Dogra user 14 Oct 2014 at 6:33 p.m. CDT

Vishal Dogra gravatar
We looked at the same. It did not help after restarting OpenDJ & Tomcat. The site stopped working.

By Michael Schwartz Account Admin 14 Oct 2014 at 9:56 p.m. CDT

Michael Schwartz gravatar
Can you paste the error from the OpenDJ logs (/opt/opendj/logs) and tomcat logs (/opt/tomcat/logs/oxtrust.log) . Most likely it is a schema problem.

By Yuriy Movchan staff 15 Oct 2014 at 8:33 a.m. CDT

Yuriy Movchan gravatar
You can try to use latest LDAP schema https://github.com/GluuFederation/community-edition-setup/blob/master/static/opendj/101-ox.ldif You should copy it into /opt/opendj/config/schema/101-ox.ldif. And restart opendj and tomcat services: service opendj restart service tomcat restart If you still get issue after please open issue in https://support.gluu.org and attach compressed log file /opt/tomcat/logs/oxtrust.log

By William Lowe user 21 Oct 2014 at 9:17 a.m. CDT

William Lowe gravatar
Vishal, were you able to resolve this issue? Please let me know so I may either close this ticket or re-route for further support.