Before I restarted the Tomcat, I tried to manually start OpenDJ. But it took a long while, and the following error was shown:
[03/Jul/2013:13:35:20 +0800] category=CONFIG severity=SEVERE_WARNING msgID=3276992 msg=Schema configuration file cts-add-schema.ldif in directory /home/azlabs/var/openam1/opends/./config/schema cannot be parsed because an unexpected error occurred while trying to read its contents as an LDIF entry: Unable to parse LDIF entry starting at line 25 because the line "-" does not include an attribute name (id=5439494)
So I went to the OpenDJ schema folder. What is cts-add-schema.ldif?
This is mad! Why is there a LDIF modify script in the schema folder?
This was reported as OPENAM-2272. A similar JIRA was raised as OPENAM-1975. Both are reported for OpenAM-10.1.0-Xpress.
My personal thought is this is an ugly way of extending the OpenDJ schema.
Firstly, the naming convention is already wrong.
Secondly, cts-add-schema.ldif is rightly not a schema file. Why should it be in a schema folder at all?
Same goes to 99-oauth2attributes.ldif.
And worst thing is, the original 99-user.ldif pre-10.1.0 has become:
This is so ugly... *sigh*
I hope there is a clean up prior to release of OpenAM 10.2 stable.
There is 1 thing I always tell my team: Do not think you know everything. And if things work, it does not always mean we have done it the proper way.
We are only specialists in certain domains. If we are not an expert in a particular domain, we should always seek opinion from the domain experts.