Re: Loading custom schemas with AbstractServerTest under 1.5.4

2009-03-17 Thread Denis Robert
rovide such a > conversion, something which should be drafted in a couple of hours, IMO. > (and if someone provide it, we will be very pleased to integrate it in > the project !) > > -- > -- > cordialement, regards, > Emmanuel Lécharny > www.iktek.com > directory.apa

Re: Loading custom schemas with AbstractServerTest under 1.5.4

2008-11-23 Thread Emmanuel Lecharny
Mark Derricutt wrote: For our own tests we opted for #2, however, it'd be great if someone extracted the "export to LDIF" code from Studio so that it could be called to convert a schema to LdifReader. That'd be a good compromise I think. If you mean, convert from schema format to LDIF format,

Re: Loading custom schemas with AbstractServerTest under 1.5.4

2008-11-22 Thread Mark Derricutt
For our own tests we opted for #2, however, it'd be great if someone extracted the "export to LDIF" code from Studio so that it could be called to convert a schema to LdifReader. That'd be a good compromise I think. On Tue, Nov 18, 2008 at 1:46 AM, Kiran Ayyagari <[EMAIL PROTECTED]>wrote: > hi J

Re: Loading custom schemas with AbstractServerTest under 1.5.4

2008-11-17 Thread Kiran Ayyagari
hi Juergen, AFAIK its not possible to add a custom schema on the fly to the server using directory service. To add a custom schema 1) One need to build schema-bootstrap (with the custom schema file) and then bootstrap-partition (to include the custom schema in the server statical

Re: Loading custom schemas with AbstractServerTest under 1.5.4

2008-11-17 Thread Juergen Weber
correct code than to correct optimized code." -- > Bill Harlan > > -- View this message in context: http://www.nabble.com/Loading-custom-schemas-with-AbstractServerTest-under-1.5.4-tp19485510p20537225.html Sent from the Apache Directory Project mailing list archive at Nabble.com.

Re: Loading custom schemas with AbstractServerTest under 1.5.4

2008-09-23 Thread Kiran Ayyagari
hi Mark, After my own attempt to add a new schema it was observed that the registries are getting reset in the DefaultDirectoryService.initialize() (lines 1377-1380) as part of the DefaultDirectoryService.startup() call in AbstractServerTest.setUp(). The schemas are getting l

Re: Loading custom schemas with AbstractServerTest under 1.5.4

2008-09-22 Thread Mark Derricutt
To be a bit more accurate - the exception I see when loading my LDIF files is: entry.DefaultServerEntry - The attribute 'smxpartyid' cannot be stored javax.naming.NamingException: objectClass w/ OID 1.3.6.1.4.1.28416.1.1.1.101 not registered! at org.apache.directory.server.schema.registries.De

Re: Loading custom schemas with AbstractServerTest under 1.5.4

2008-09-22 Thread Mark Derricutt
As a further experiment, I copied the entire DefaultDirectoryService class to my own code, and added my schema to the BootstrapSchemaLoader along with the other schema classes, then reassigned the directoryService variable as: public void configureDirectoryService() throws Exception {

Re: Loading custom schemas with AbstractServerTest under 1.5.4

2008-09-21 Thread Mark Derricutt
Simple for those who know where to look - but I can't seem to find any tests which enable a custom schema anywhere in the apacheds tree. I can find a few tests that construct a new BootstrapSchemaLoader and add Schema instances to it for testing, but I don't see a way to inject that into a runnin