[Geoserver-devel] GeoServer Kakadu JP2

Hi,

while testing capabilities of Geoserver I tried to install the
impressively speedy native plugin for Kakadu JPEG2000.

I have kdu_jni.jar as well as the relevant DLL files (kdu_a60aR.dll,
kdu_v60R.dll, kdu_jni.dll) in PATH.
The plugin seems to be loaded (no warnings about kdu_jni in logs).

When I try to add new JP2K (Direct) Data Source, then the GeoServer returns:

"Could not list layers for this store, an error occurred retrieving
them: it.geosolutions.imageio.plugins.jp2k.LazyJP2KBox cannot be cast
to it.geosolutions.imageio.plugins.jp2k.box.ResolutionBox"

2011-07-14 11:29:29,202 INFO [geoserver.web] - Getting list of
coverages for saved store file:data/test.jp2
java.lang.RuntimeException: Could not list layers for this store, an
error occurred retrieving them:
it.geosolutions.imageio.plugins.jp2k.LazyJP2KBox cannot be cast to
it.geosolutions.imageio.plugins.jp2k.box.ResolutionBox

The supplied file is correctly encoded, and gdalinfo on it returns
correct georeference and srs.

I own the license of Kakadu library, but I was not compiling it on the
Windows box when I am trying the GeoServer 2.1.1 now, as I don't have
there the dev tools there.

Any hint of what is wrong or how to localize and fix the error would
be very helpful...

Best regards,

Petr Pridal alias Klokan

--
http://blog.klokan.cz/
http://www.maptiler.org/
http://www.oldmapsonline.org/

Hi Klokan,
do you have any chance to share that JP2 file (or send to me by private email in case you can’t provide it to public lists) so I’ll try to replicate the issue and debug it?

Please, let me know.
Regards,
Daniele

On Fri, Jul 15, 2011 at 10:54 PM, klokan@anonymised.com <klokan@anonymised.com> wrote:

Hi,

while testing capabilities of Geoserver I tried to install the
impressively speedy native plugin for Kakadu JPEG2000.

I have kdu_jni.jar as well as the relevant DLL files (kdu_a60aR.dll,
kdu_v60R.dll, kdu_jni.dll) in PATH.
The plugin seems to be loaded (no warnings about kdu_jni in logs).

When I try to add new JP2K (Direct) Data Source, then the GeoServer returns:

“Could not list layers for this store, an error occurred retrieving
them: it.geosolutions.imageio.plugins.jp2k.LazyJP2KBox cannot be cast
to it.geosolutions.imageio.plugins.jp2k.box.ResolutionBox”

2011-07-14 11:29:29,202 INFO [geoserver.web] - Getting list of
coverages for saved store file:data/test.jp2
java.lang.RuntimeException: Could not list layers for this store, an
error occurred retrieving them:
it.geosolutions.imageio.plugins.jp2k.LazyJP2KBox cannot be cast to
it.geosolutions.imageio.plugins.jp2k.box.ResolutionBox

The supplied file is correctly encoded, and gdalinfo on it returns
correct georeference and srs.

I own the license of Kakadu library, but I was not compiling it on the
Windows box when I am trying the GeoServer 2.1.1 now, as I don’t have
there the dev tools there.

Any hint of what is wrong or how to localize and fix the error would
be very helpful…

Best regards,

Petr Pridal alias Klokan


http://blog.klokan.cz/
http://www.maptiler.org/
http://www.oldmapsonline.org/


AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on “Lean Startup
Secrets Revealed.” This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev


Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Ing. Daniele Romagnoli
GeoSolutions S.A.S.
Software Engineer

Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy

phone: +39 0584 962313
fax: +39 0584 962313

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://it.linkedin.com/in/danieleromagnoli