Folks,

I have stuck my toe in the water towards writing a custom driver shim. I
started with the Skeleton driver unchanged from the developer kit which
compiles successfully and I get a series of .class files, I jar them up,
and put the jar in /opt/novell/eDirectory/lib/dirxml/classes, I created
a driver and set the class name to
com.novell.nds.dirxml.driver.skeleton.SkeletonDriv erShim. But when I try
to start the driver, I get a java.lang.ClassNotFoundException. I took a
look inside nulldriver.jar to see what was in there, just a manifest,
the path to the class in folders and then the class file, I have a
similar structure in my jar.

Not sure what I am missing here. Anyone have advice from writing their
first shim?

Thanks
Rob
[03/16/16 12:57:51.330]:Red Skeleton :Reading named passwords list.
[03/16/16 12:57:51.331]:Red Skeleton :Named passwords:
[03/16/16 12:57:51.332]:Red Skeleton :Reading XML attribute
vnd.nds.stream://STUMP/system/Driver+Set/Red+Skeleton#DirXML-EngineControlValues.
[03/16/16 12:57:51.334]:Red Skeleton :Reading XML attribute
vnd.nds.stream://STUMP/system/Driver+Set/NOVLCOMSET-GCVs#DirXML-ConfigValues.
[03/16/16 12:57:51.338]:Red Skeleton :Reading XML attribute
vnd.nds.stream://STUMP/system/Driver+Set#DirXML-ConfigValues.
[03/16/16 12:57:51.339]:Red Skeleton :Reading XML attribute
vnd.nds.stream://STUMP/system/Driver+Set/Red+Skeleton#DirXML-ConfigValues.
[03/16/16 12:57:51.340]:Red Skeleton :Global Configuration Values:
[03/16/16 12:57:51.340]:Red Skeleton : Name: idv.dit.data.users Value:
data\users
[03/16/16 12:57:51.340]:Red Skeleton : Name: idv.dit.data.groups Value:
data\groups
[03/16/16 12:57:51.340]:Red Skeleton : Name: dirxml.auto.treename
Value: STUMP
[03/16/16 12:57:51.340]:Red Skeleton : Name: dirxml.auto.driverdn
Value: \STUMP\system\Driver Set\Red Skeleton
[03/16/16 12:57:51.342]:Red Skeleton : Name: dirxml.auto.driverguid
Value: {0EB988B6-8F97-4c00-73AE-B688B90E978F}
[03/16/16 12:57:51.342]:Red Skeleton : Name: dirxml.auto.localserverdn
Value: CN=IDM,OU=servers,O=system
[03/16/16 12:57:51.343]:Red Skeleton :Using default reciprocal attribute
map
[03/16/16 12:57:51.343]:Red Skeleton :Reading XML attribute
vnd.nds.stream://STUMP/system/Driver+Set/Red+Skeleton#DirXML-PersistentData.
[03/16/16 12:57:51.344]:Red Skeleton :Loaded persistent data
[03/16/16 12:57:51.344]:Red Skeleton :
<persistent-data>
<op-counters last-reset-time="1458145098719">
<subscriber/>
<publisher/>
</op-counters>
</persistent-data>
[03/16/16 12:57:51.350]:Red Skeleton :Found subscriber system\Driver
Set\Red Skeleton\Subscriber.
[03/16/16 12:57:51.359]:Red Skeleton :Found publisher system\Driver
Set\Red Skeleton\Publisher.
[03/16/16 12:57:51.359]:Red Skeleton :Creating subscriber thread.
[03/16/16 12:57:51.366]:Red Skeleton ST:Subscriber thread starting.
[03/16/16 12:57:51.402]:Red Skeleton ST:Initializing driver shim.
[03/16/16 12:57:51.403]:Red Skeleton ST:Reading XML attribute
vnd.nds.stream://STUMP/system/Driver+Set/Red+Skeleton#DirXML-ConfigManifest.
[03/16/16 12:57:51.415]:Red Skeleton ST:Reading driver information from
the \STUMP\system\Driver Set\Red Skeleton object.
[03/16/16 12:57:51.415]:Red Skeleton ST:Loading Java shim
com.novell.nds.dirxml.driver.skeleton.SkeletonDriv erShim.
[03/16/16 12:57:51.416]:Red Skeleton ST:
DirXML Log Event -------------------
Driver: \STUMP\system\Driver Set\Red Skeleton
Status: Warning
Message: Code(-8001) Unable to retrieve application schema.
[03/16/16 12:57:51.417]:Red Skeleton ST:Reading driver information from
the \STUMP\system\Driver Set\Red Skeleton object.
[03/16/16 12:57:51.417]:Red Skeleton ST:Loading Java shim
com.novell.nds.dirxml.driver.skeleton.SkeletonDriv erShim.
[03/16/16 12:57:51.418]:Red Skeleton ST:
DirXML Log Event -------------------
Driver: \STUMP\system\Driver Set\Red Skeleton
Status: Error
Message: Code(-9010) An exception occurred:
java.lang.ClassNotFoundException:
com.novell.nds.dirxml.driver.skeleton.SkeletonDriv erShim
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
com.novell.nds.dirxml.engine.Driver.loadShim(Drive r.java:1245)
at
com.novell.nds.dirxml.engine.Driver.startShim(Driv er.java:1325)
at
com.novell.nds.dirxml.engine.Driver.initialize(Dri ver.java:265)
at com.novell.nds.dirxml.engine.Driver.<init>(Driver. java:237)
at
com.novell.nds.dirxml.engine.DriverEntry.run(Drive rEntry.java:562)
at java.lang.Thread.run(Unknown Source)

[03/16/16 12:57:51.465]:Red Skeleton STriver terminated.


--
rrawson
------------------------------------------------------------------------
rrawson's Profile: https://forums.netiq.com/member.php?userid=403
View this thread: https://forums.netiq.com/showthread.php?t=55563