Hi,
Actually I was trying this with two separate bundles. Say I am having one
dummy bundle where I am keeping some configuration information. The
configuration entries are such say <Key>|<ClassName> delimited by "I". Now
the <ClassName> I have mentioned in the configuration entry is a part of
another bundle. Now from first bundle if I want to access the class by using
Class.forName("<classmane>") causing ClassNotFoundException exception.
Initially I was trying with
Class.forName("org.apache.sling.samples.demo.validation.BlogValidate").newIn
stance(); didn't work.
So have also tried with
ClassLoader.getSystemClassLoader().loadClass("org.apache.sling.samples.demo.
validation.BlogValidate ").newInstance(); but the same result.
Then I tried the "java -Dorg.osgi.framework.bootdelegation="*" -jar
sling.jar -c sling -p 8383 -f -" by setting the bootdeleration parameter.
I also have checked the "MANIFEST.MF" for the first bundle and found that
the desire package is properly imported.
Definitely I am doing something mess. Please let me know what I am doing
wrong. I really want to get rid of that ClassNotFoundException.
Regards,
Sujoy Bhattacharjee