Shing Hing Man wrote:
I am trying to add a new object class in Java using
the sample code at http://java.sun.com/products/jndi/tutorial/ldap/schema/object.html#ADD
(or see the listing  below).
But I get the following exception.
> ...

Which version of ApacheDS do you use? 1.0.x does not support dynamic changes of the schema like described in the Tutorial. You need the upcoming 1.5 to do something like that.

http://www.apache.org/dyn/closer.cgi/directory/apacheds/unstable/1.5/1.5.0

I have tested the code of the JNDI tutorial against this version and it works just fine.

The most strange in your stacktrace is the line
Attempt to lookup
non-existant entry: 2.5.4.3=schema,2.5.4.11=system

The schema in the 1.5 is located in its own partition ou=schema, and not below ou=system.

Greetings from Hamburg,
    Stefan





Reply via email to