I am writing a custom dirxml driver and I cannot figure out why one of
my Java classes isn't being located. I have a .jar located in
/opt/novell/eDirectory/lib/dirxml/classes which contains several
packages. The shim package is com.dti.cc.nds.dirxml.driver.app and it
contains the classes DriverShim, PublicationShim, and SubscriptionShim.
I have a project in Designer wich has a driver pointing to
com.dti.cc.nds.drixml.driver.app.DriverShim.

The driver and both the subscriber and publisher shims all startup fine
but where I run into a problem is in the execute() method of the
subscriber shim with calls a class in another package,
com.dti.cc.app.domain. I get a "java.lang.NoClassDefFoundError" when I
try to create an object from this package.

I know that this error means that the JRE cannot find the class of the
object I am trying to create but I am very puzzled because this package
is in the same .jar file as the other packages and classes that are
created without errors. I just don't see how the JRE can't find a class
in another package located within the same .jar file.

Can anyone help me out here. I know it's something basic like setting
my CLASSPATH environment but I just can't seem to get it to work.

Thanks.


--
rhettplace
------------------------------------------------------------------------
rhettplace's Profile: http://forums.novell.com/member.php?userid=63338
View this thread: http://forums.novell.com/showthread.php?t=384827