I'm trying to create a GridCoverage2D from a jp2 file using
JP2KReader, but it fails with "org.geotools.data.DataSourceException:
No reader found for that source"
when it returns a FileImageInputStream instead of a
FileImageInputStreamExt from ->
ImageIO.createImageInputStream(inputFile) in the  JP2KReader
constructor.

The code works from local maven tests, but has that failure when it's
run in jboss 6.0.0. I thought a jar must not be getting deployed to
jboss, but then I also read something about new memory
leak code "deregistering" some imageio plugins.

What's a good way to track down why it's failing?

I have these dependencies in my pom:
                <dependency>
                        <groupId>org.geotools</groupId>
                        <artifactId>gt-jp2k</artifactId>
                        <version>2.6.5</version>
                        <type>jar</type>                
                </dependency>
                <dependency>
                        <groupId>it.geosolutions.imageio-ext</groupId>
                        <artifactId>imageio-ext-kakadu</artifactId>
                        <version>1.0.6-1</version>
                        <type>jar</type>                        
                </dependency>
                <dependency>
                        <groupId>it.geosolutions.imageio-ext</groupId>
                        <artifactId>imageio-ext-kakadujni</artifactId>
                        <version>5.2.6</version>
                        <type>jar</type>                        
                </dependency>
                <dependency>
                        <groupId>it.geosolutions.imageio-ext</groupId>
                        <artifactId>imageio-ext-imagereadmt</artifactId>
                        <version>1.0.6-1</version>
                        <type>jar</type>                        
                </dependency>
                <dependency>
                        <groupId>it.geosolutions.imageio-ext</groupId>
                        <artifactId>imageio-ext-customstreams</artifactId>
                        <version>1.0.6-1</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>it.geosolutions.imageio-ext</groupId>
                        <artifactId>imageio-ext-utilities</artifactId>
                        <version>1.0.6-1</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.geotools</groupId>
                        <artifactId>gt-imageio-ext-gdal</artifactId>
                        <version>2.6.5</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.geotools</groupId>
                        <artifactId>gt-imagemosaic</artifactId>
                        <version>2.6.5</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>it.geosolutions.imageio-ext</groupId>
                        <artifactId>imageio-ext-gdalkakadujp2</artifactId>
                        <version>1.0.6-1</version>                      
                </dependency>
                <dependency>
                        <groupId>it.geosolutions.imageio-ext</groupId>
                        <artifactId>imageio-ext-geocore</artifactId>
                        <version>1.0.6-1</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to