Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
I'm still not sure what the "right" way to do this is, but the following
solved my specific problems:
OperationRegistry registry =
That code covers the operation in
/META-INF/services/javax.media.jai.OperationRegistrySpi, but not the three
in /META-INF/registryFile.jai. Probably these would have to be handled as
well when loaded some other specialized image types, but they weren't
required for GTopo30 files.
Thanks for the help, Michael!
On Sat, Aug 31, 2013 at 11:58 AM, Spencer Bliven <sbliven@...> wrote:
> Progress! The operation registry I was getting the exception from gets
> loaded from a GeoTools resource, META-INF/registryFile.jai. The comments
> mention that org.geotools.image.jai.Registry.
> registerGeotoolsServices(OperationRegistry) needs to be called when using
> a custom classloader. That would be great, except the relevant method has
> been removed.
> Anyone here know what the proper way to register Geotools services is in
> geotools 10?
> On Fri, Aug 30, 2013 at 2:52 PM, Spencer Bliven <sbliven@...> wrote:
>> Trying to isolate the problem, I've found that GeoTools works fine for me
>> when the jar gets called normally (eg java -jar ...). Unfortunately I'm
>> trying to deploy as a plugin to a larger system that seems to be using a
>> custom ClassLoader to run the jar. I'm guessing that's where things are
>> going wrong for me. The custom loader finds the jai_imageio from my shaded
>> jar, but it doesn't do whatever configuration steps are necessary to set up
>> the 'operation registry' for the native-library parts of jai (in
>> I guess I'll try to contact the ClassLoader authors and see if they have
>> suggestions. Please let me know if you have any additional ideas.