Hi all,
When registering extensions please do not use
Thread.currentThread().getContextClassLoader().loadClass(...)
This is not portable and this is not working when using isolated class
loaders
Nuxeo Runtime is giving you a context that you can use to load classes
or resources
When registering an extension the extension context is available by calling:
extension.getContext()
So the correct way (and the only portable way that will work on any
supported framework) to load classes is:
extension.getContext().loadClass(...);
Or you can also use XMAP support for loading classes (that use the
correct nxruntime context)
by mapping class names specified in the XML to Class objects (and not to
String objects)
Also, please use the new API when registering extensions (it is
available since a few months).
Try to use
registerContribution(..)
and not
registerExtension(..)
to register contributions
Bogdan
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm