[geotk] [JIRA] Created: (GEOTK-18) Always use geotoolkit specified
classloader when using javax.imageio.spi.ServiceRegistry
Aleksander (JIRA)
jira at geomatys.com
Wed Jun 24 06:02:52 EDT 2009
Always use geotoolkit specified classloader when using javax.imageio.spi.ServiceRegistry
----------------------------------------------------------------------------------------
Key: GEOTK-18
URL: http://jira.geotoolkit.org/browse/GEOTK-18
Project: Geotoolkit
Issue Type: Improvement
Environment: OSGi
Reporter: Aleksander
Assignee: Martin Desruisseaux
I am using geotoolkit inside OSGi runtime. Problem is that several classes call
javax.imageio.spi.ServiceRegistry.lookupProviders(Class)
which then calls sun.misc.Service.providers(Class). This one uses system classloader, which can't see geotoolkit classes (since they're encapsulated within OSGi bundle classloader). Calling providers(Class, Classloader) with classloader which loads geotoolkit class itself would work.
Since org.geotoolkit.factory.FactoryRegistry already uses explicit classloaders, I would propose that all classes use this mechanism. In particular, I've found following classes which need to change their usage:
org.geotools.filter.expression.PropertyAccessors
org.geotoolkit.filter.accessor.Accessors
org.geotoolkit.filter.function.Functions
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.geotoolkit.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the Geotoolkit
mailing list