[Geoserver-users] GeoServer 2.4.1 GDAL (JPEG2000) plugin problem

Hi,

I'm starting with GeoServer and I need to add raster layers from jp2 files
to serwer.
According to this article:
http://docs.geoserver.org/stable/en/user/data/raster/gdal.html
i've tried to install GDAL plugin to achieve this, but after making all the
steps serwer stopped working.
In my web browser (http://localhost:8080/geoserver) i get error:

GDAL Native Library loads fine, but then something is wrong.
In log file I'can see:

whole log in attachment: wrapper.log
<http://osgeo-org.1560.x6.nabble.com/file/n5086614/wrapper.log&gt;

and some other JAVA errors.

Versions I'm using:
- JRE 7u45 32bit
- GeoServer 2.4.1
- GDAL plugin:
http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.4.1/geoserver-2.4.1-gdal-plugin.zip
- GDAL native: gdal-1.9.2-MSVC2010 (tried also MSVC2008) 32-bit

What is the problem?

Is Kakadu alternative fot GDAL? I've tried to install plugin:
http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.4.1/geoserver-2.4.1-jp2k-plugin.zip
but I can't find native library for this, and I've read that this project
isn't free. Am I right?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-2-4-1-GDAL-JPEG2000-plugin-problem-tp5086614.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

I,ve triend also:
* GeoServer 2.3.5 (the same errors)
* JDK 7 istead of JRE 7 (the same errors)
* Kakadu plugin instead of GDAL plugin (error: Failed to load the Kakadu
native libs).

Can anybody help me enable JPEG2000 on my GeoServer?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-2-4-1-GDAL-JPEG2000-plugin-problem-tp5086614p5087136.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao,
in order to help you out we would also need to know which OS you are
working on.

That said, as far as GDAL support is concerned, the zip/tar.gz
contains a directory called javainfo which includes a test
implementation of gdalinfo made with java. Hence, if you installed
things correctly you should be able to run this in a similar way to
the standard gdalinfo utility to get info on your jpeg2000 file.

As of kakadu, can you please tell us a bit more about what you did?

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Sun, Nov 3, 2013 at 7:07 PM, t.przysiwek <t.przysiwek@anonymised.com> wrote:

I,ve triend also:
* GeoServer 2.3.5 (the same errors)
* JDK 7 istead of JRE 7 (the same errors)
* Kakadu plugin instead of GDAL plugin (error: Failed to load the Kakadu
native libs).

Can anybody help me enable JPEG2000 on my GeoServer?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-2-4-1-GDAL-JPEG2000-plugin-problem-tp5086614p5087136.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Simone,

thanks for your reply. My server is installed on Windows 7 Pro (64bit).
When i use test app from javainfo directory everything looks fine:

For Kakadu i made steps listed here:
http://geo-solutions.blogspot.com/2010/03/geoserver-and-geotools-now-supporting.html

but I don't have files: kdu_a52R.dll, kdu_jni.dll and kdu_v52R.dll
I've only installed Kakadu Win32 Executables form:
http://www.kakadusoftware.com/index.php?option=com_content&task=view&id=26&Itemid=22

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-2-4-1-GDAL-JPEG2000-plugin-problem-tp5086614p5087208.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao,
please, read below...

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Mon, Nov 4, 2013 at 10:16 AM, t.przysiwek <t.przysiwek@anonymised.com> wrote:

Hi Simone,

thanks for your reply. My server is installed on Windows 7 Pro (64bit).
When i use test app from javainfo directory everything looks fine:

Then I guess all you need to do is to add the proper env variables to
the Java process that runs GeoServer.
Which kind of install are we talking about? Are you deploying into
tomcat? Are you using the Jetty stand-alone installer?

For Kakadu i made steps listed here:
http://geo-solutions.blogspot.com/2010/03/geoserver-and-geotools-now-supporting.html

but I don't have files: kdu_a52R.dll, kdu_jni.dll and kdu_v52R.dll
I've only installed Kakadu Win32 Executables form:
http://www.kakadusoftware.com/index.php?option=com_content&task=view&id=26&Itemid=22

You need to buy a valida JPEG200 license and use the generated DLLs.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-2-4-1-GDAL-JPEG2000-plugin-problem-tp5086614p5087208.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

I have just installed GeoServer from windows stable installer:
http://downloads.sourceforge.net/geoserver/geoserver-2.4.1.exe
no additional installs of tomcat or jetty.
Clean GeoServer and then I started installing GDAL plugin.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-2-4-1-GDAL-JPEG2000-plugin-problem-tp5086614p5087232.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao,
here is what I did:

- I download the binaries for windows64
- I unpacked them in D:\lib\gdal
- I placed the gdal-data content under D:\lib\gdal\gdal-data
- I placed all the dlls and the gdalinfo.exe under D:\lib\gdal\libs
- I placed the ECW and MrSID Dlls under D:\lib\gdal\plugin
(gdal_ECW_JP2ECW.dll and gdal_MrSID.dll)
- I modified the startup.bat under bin folder as follows:

set PATH=%PATH%;D:\lib\gdal\libs
set GDAL_DATA=D:\lib\gdal\gdal-data
set GDAL_DRIVER_PATH=D:\lib\gdal\plugins
call "D:\programs\java\jdk1.6.0_27\bin\java.exe"
-DGEOSERVER_DATA_DIR="d:\work\programs\GeoServer 2.4.1\data_dir"
-Xmx1024m -XX:MaxPermSize=128m -DSTOP.PORT=8079 -DSTOP.KEY=geoserver
-Djava.library.path="D:\lib\gdal\libs" -Djetty.port=8080
-Djetty.logs="d:\work\programs\GeoServer 2.4.1\logs" -jar
"d:\work\programs\GeoServer 2.4.1\start.jar"

Things _did_ work for me :slight_smile:

Advice, make sure the Java process in which GeoServer runs has all the
env vars set and also make sure it can load the libs (if GeoServer
runs as a service that might be problemtic on Windows).

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

On Mon, Nov 4, 2013 at 11:51 AM, t.przysiwek <t.przysiwek@anonymised.com> wrote:

I have just installed GeoServer from windows stable installer:
http://downloads.sourceforge.net/geoserver/geoserver-2.4.1.exe
no additional installs of tomcat or jetty.
Clean GeoServer and then I started installing GDAL plugin.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-2-4-1-GDAL-JPEG2000-plugin-problem-tp5086614p5087232.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

After this steps server starts correctly but nothing happened in
administration panel. None new formats appeared in "Add new store" section.
I suppose that it should look like this:
<http://osgeo-org.1560.x6.nabble.com/file/n5087411/gdalcreate.png&gt;
Screen from: http://docs.geoserver.org/stable/en/user/data/raster/gdal.html

Have you used in your solution GDAL GeoServer extension file:
http://sourceforge.net/projects/geoserver/files/GeoServer%20Extensions/2.4.1/geoserver-2.4.1-gdal-plugin.zip
?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoServer-2-4-1-GDAL-JPEG2000-plugin-problem-tp5086614p5087411.html
Sent from the GeoServer - User mailing list archive at Nabble.com.