[Geoserver-users] ECW fails on Geoserver in x64 environment

Hello, good morning,

I was pointed to this mailinglist by Simone Giannecchini via Twitter, thank you Simone!

The company where I work has created a software package containing Tomcat, Geoserver and GDAL, running in Windows Server 2003 (with Tomcat Connector). For some years now this has been in operation on 32-bit. Users of the package use normal FeatureTypes but also some Coverages like GeoTIFF and ECW. This works all fine, without problems.

Now the wish is to be able to have a 64-bit version of this package for a number of reasons. We managed to have everything working now, Geoserver and other applications do work as designed on x64. GeoTIFF images can be loaded and displayed in Geoserver as expected. Except ECW images. When entering the path to the ecw file, Geoserver keeps telling me that the URL is invalid: “Invalid url: ‘file:c:\ecw\image.ecw’ for format type:‘ECW’. “

I tried variations with the URL, capitals where needed. The variation shown here is a copy of the production server but that one is running W2K3 32-bit. I also tried to do network paths: //server/ecw/image.ecw. Same result. It does find the image file, as when I enter a path where no file will be found the message “Could not find file: C:\ecw\Foobar.ecw. Perhaps location was entered wrong?” – as expected. I also copied the ecw files to the Coverages directory to use the relative path: file:Coverages\ECW\image.ecw. Same, fails on the invalid message.

The setup is as follows:

· Windows Server 2008 R2

· IIS Application Request Routing (ARR)

· Tomcat 64-bit

· Geoserver 1.7.7

· GDAL 64-bit from http://vbkto.dyndns.org/sdk/
Also with the ECW installer

· Latest JAVA JRE and JDK are both installed

· Zend Server

The funniest part of it all is that there are absolutely no registrations of an error in the logs of Geoserver, Tomcat and Zend. 0. I can try to add as many ECW files as I like, the single error message is this Invalid URL.

Geoserver is showing ECW as Coverage plugin:

Config > WCS > CoveragePlugins

Gtopo30 / 1.0 Gtopo30 Coverage Format

ImageMosaic / 1.0 Image mosaicking plugin

GeoTIFF / 1.1 Tagged Image File Format with Geographic information

JP2ECW / 1.0 JP2K (ECW) Coverage Format

ArcGrid / 1.0 Arc Grid Coverage Format

ECW / 1.0 ECW Coverage Format

ERDASImg / 1.0 Erdas Imagine Coverage Format

DTED / 1.0 DTED Coverage Format

WorldImage / 1.0 A raster file accompanied by a spatial data file

NITF / 1.0 NITF Coverage Format

EHdr / 1.0 EHdr Coverage Format

Gdalinfo –formats also show ECW and others.

The DLL that is used is gdal_ECW_JP2ECW.dll, dated 23-01-2011, 10:57.

I’m getting a bit lost here, there must be something blocking the use but without any messages in logfiles it’s like talking to a wall.

The users are licensed to use ECW on their servers. Any help to guide us to the source of the problems would be very appreciated.



Best regards,







Martijn Coenen
The Netherlands





Hello,
please, read below…

On Tue, May 31, 2011 at 8:44 AM, Martijn Coenen <Martijn@anonymised.com> wrote:

Hello, good morning,

I was pointed to this mailinglist by Simone Giannecchini via Twitter, thank you Simone!

The company where I work has created a software package containing Tomcat, Geoserver and GDAL, running in Windows Server 2003 (with Tomcat Connector). For some years now this has been in operation on 32-bit. Users of the package use normal FeatureTypes but also some Coverages like GeoTIFF and ECW. This works all fine, without problems.

Now the wish is to be able to have a 64-bit version of this package for a number of reasons. We managed to have everything working now, Geoserver and other applications do work as designed on x64. GeoTIFF images can be loaded and displayed in Geoserver as expected. Except ECW images. When entering the path to the ecw file, Geoserver keeps telling me that the URL is invalid: “Invalid url: ‘file:c:\ecw\image.ecw’ for format type:‘ECW’. “

I tried variations with the URL, capitals where needed. The variation shown here is a copy of the production server but that one is running W2K3 32-bit. I also tried to do network paths: //server/ecw/image.ecw. Same result. It does find the image file, as when I enter a path where no file will be found the message “Could not find file: C:\ecw\Foobar.ecw. Perhaps location was entered wrong?” – as expected. I also copied the ecw files to the Coverages directory to use the relative path: file:Coverages\ECW\image.ecw. Same, fails on the invalid message.

The setup is as follows:

· Windows Server 2008 R2

· IIS Application Request Routing (ARR)

· Tomcat 64-bit

· Geoserver 1.7.7

· GDAL 64-bit from http://vbkto.dyndns.org/sdk/

Could you please let me know which specific version of GDAL binaries did you download from that link?
Geoserver 1.7.7 is leveraging on a old version of ImageIO-Ext (the library which provides ImageIO plugins based on GDAL) which uses a patched version of GDAL 1.4.5.
Therefore, I think that only a few methods of the downloaded GDAL version will work with this configuration if you have downloaded a too recent version (This could maybe explain why the driver is recognized although it doesn’t work).

A final question:
As you say, everything worked fine on previous Windows 32 systems. Which set of GDAL libraries are you using on that system?

Please, let us know so I can provide more feedbacks on this topic.
Best Regards,
Daniele

Also with the ECW installer

· Latest JAVA JRE and JDK are both installed

· Zend Server

The funniest part of it all is that there are absolutely no registrations of an error in the logs of Geoserver, Tomcat and Zend. 0. I can try to add as many ECW files as I like, the single error message is this Invalid URL.

Geoserver is showing ECW as Coverage plugin:

Config > WCS > CoveragePlugins

Gtopo30 / 1.0 Gtopo30 Coverage Format

ImageMosaic / 1.0 Image mosaicking plugin

GeoTIFF / 1.1 Tagged Image File Format with Geographic information

JP2ECW / 1.0 JP2K (ECW) Coverage Format

ArcGrid / 1.0 Arc Grid Coverage Format

ECW / 1.0 ECW Coverage Format

ERDASImg / 1.0 Erdas Imagine Coverage Format

DTED / 1.0 DTED Coverage Format

WorldImage / 1.0 A raster file accompanied by a spatial data file

NITF / 1.0 NITF Coverage Format

EHdr / 1.0 EHdr Coverage Format

Gdalinfo –formats also show ECW and others.

The DLL that is used is gdal_ECW_JP2ECW.dll, dated 23-01-2011, 10:57.

I’m getting a bit lost here, there must be something blocking the use but without any messages in logfiles it’s like talking to a wall.

The users are licensed to use ECW on their servers. Any help to guide us to the source of the problems would be very appreciated.



Best regards,







Martijn Coenen
The Netherlands






Simplify data backup and recovery for your virtual environment with vRanger.
Installation’s a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It’s vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev


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

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


Hi Martijn,

On Tue, May 31, 2011 at 10:55 AM, Martijn Coenen <Martijn@anonymised.com> wrote:

Daniele,

Thank you for your reply.

Could you please let me know which specific version of GDAL binaries did you download from that link?

In this case, the two installers:

gdal-18-1500-x64-core.msi and gdal-18-1500-x64-ecw.msi

This will explain why it doesn’t work since GeoServer 1.7.7 uses a patched GDAL 1.4.5. As a side note: we never deeply investigated on the feasibility of a Windows 64 build of GDAL 1.4.5.

As you say, everything worked fine on previous Windows 32 systems. Which set of GDAL libraries are you using on that system?

We use GDAL 1.4.5 with Image-IO 1.0.8 on the Win32 setup.

Geoserver 1.7.7 is leveraging on a old version of ImageIO-Ext (the library

which provides ImageIO plugins based on GDAL) which uses a patched version of GDAL 1.4.5.
Therefore, I think that only a few methods of the downloaded GDAL version will work with this

configuration if you have downloaded a too recent version (This could maybe explain why the

driver is recognized although it doesn’t work).

That sounds reasonable. I know Geoserver 1.7.7 is getting very old. Problem is, that it’s one of the requirements. This application is part of a broader package with functionality build for this version.

Would it be possible to import newer versions of ImageIO to solve this, or would that be escalating the problems any further?

We have worked on an ImageIO-Ext 1.1 version which leverages on GDAL 1.7.3 without any need for patches or changes to the GDAL binaries. We didn’t tested yet the 1.7.3 binaries provided by the link you have reported but I guess they will work. However, there are a few changes from ImageIO-Ext 1.0.8 to 1.1 which also required little changes on GeoTools libraries (which are the core of GeoServer) whilst you are constrained to use GS 1.7.7.
I’m also cc-ing Simone Giannecchini in case he would add more info on this.

Regards,
Daniele

Best regards,

Met vriendelijke groet,
Martijn Coenen

http://www.covadis.nl/emailkop/logo.gif

Covadis b.v.

t: 026 3616600

Geograaf 12

f: 026 3612317

6921 EW Duiven

e: martijn@anonymised.com

Van: dany.geotools@anonymised.com [mailto:dany.geotools@anonymised.com] Namens Daniele Romagnoli
Verzonden: dinsdag 31 mei 2011 10:25
Aan: Martijn Coenen
CC: geoserver-users@lists.sourceforge.net
Onderwerp: Re: [Geoserver-users] ECW fails on Geoserver in x64 environment

Hello,
please, read below…

On Tue, May 31, 2011 at 8:44 AM, Martijn Coenen <Martijn@anonymised.com> wrote:

Hello, good morning,

I was pointed to this mailinglist by Simone Giannecchini via Twitter, thank you Simone!

The company where I work has created a software package containing Tomcat, Geoserver and GDAL, running in Windows Server 2003 (with Tomcat Connector). For some years now this has been in operation on 32-bit. Users of the package use normal FeatureTypes but also some Coverages like GeoTIFF and ECW. This works all fine, without problems.

Now the wish is to be able to have a 64-bit version of this package for a number of reasons. We managed to have everything working now, Geoserver and other applications do work as designed on x64. GeoTIFF images can be loaded and displayed in Geoserver as expected. Except ECW images. When entering the path to the ecw file, Geoserver keeps telling me that the URL is invalid: “Invalid url: ‘file:c:\ecw\image.ecw’ for format type:‘ECW’. “

I tried variations with the URL, capitals where needed. The variation shown here is a copy of the production server but that one is running W2K3 32-bit. I also tried to do network paths: //server/ecw/image.ecw. Same result. It does find the image file, as when I enter a path where no file will be found the message “Could not find file: C:\ecw\Foobar.ecw. Perhaps location was entered wrong?” – as expected. I also copied the ecw files to the Coverages directory to use the relative path: file:Coverages\ECW\image.ecw. Same, fails on the invalid message.

The setup is as follows:

· Windows Server 2008 R2

· IIS Application Request Routing (ARR)

· Tomcat 64-bit

· Geoserver 1.7.7

· GDAL 64-bit from http://vbkto.dyndns.org/sdk/

Could you please let me know which specific version of GDAL binaries did you download from that link?
Geoserver 1.7.7 is leveraging on a old version of ImageIO-Ext (the library which provides ImageIO plugins based on GDAL) which uses a patched version of GDAL 1.4.5.
Therefore, I think that only a few methods of the downloaded GDAL version will work with this configuration if you have downloaded a too recent version (This could maybe explain why the driver is recognized although it doesn’t work).

A final question:
As you say, everything worked fine on previous Windows 32 systems. Which set of GDAL libraries are you using on that system?

Please, let us know so I can provide more feedbacks on this topic.
Best Regards,
Daniele

Also with the ECW installer

· Latest JAVA JRE and JDK are both installed

· Zend Server

The funniest part of it all is that there are absolutely no registrations of an error in the logs of Geoserver, Tomcat and Zend. 0. I can try to add as many ECW files as I like, the single error message is this Invalid URL.

Geoserver is showing ECW as Coverage plugin:

Config > WCS > CoveragePlugins

Gtopo30 / 1.0 Gtopo30 Coverage Format

ImageMosaic / 1.0 Image mosaicking plugin

GeoTIFF / 1.1 Tagged Image File Format with Geographic information

JP2ECW / 1.0 JP2K (ECW) Coverage Format

ArcGrid / 1.0 Arc Grid Coverage Format

ECW / 1.0 ECW Coverage Format

ERDASImg / 1.0 Erdas Imagine Coverage Format

DTED / 1.0 DTED Coverage Format

WorldImage / 1.0 A raster file accompanied by a spatial data file

NITF / 1.0 NITF Coverage Format

EHdr / 1.0 EHdr Coverage Format

Gdalinfo –formats also show ECW and others.

The DLL that is used is gdal_ECW_JP2ECW.dll, dated 23-01-2011, 10:57.

I’m getting a bit lost here, there must be something blocking the use but without any messages in logfiles it’s like talking to a wall.

The users are licensed to use ECW on their servers. Any help to guide us to the source of the problems would be very appreciated.



Best regards,







Martijn Coenen
The Netherlands






Simplify data backup and recovery for your virtual environment with vRanger.
Installation’s a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It’s vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

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


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


Hello everyone,

We’re still busy with implementing Geoserver in a 64-bit environment. It’s all fine except that ECW support bugging us.

I have one question: Does someone have had a successful implementation on a purely 64-bit environment with ECW?

I mean not using 32-bit JAVA but the “real” x64 versions with whatever version of Geoserver, GDAL, etc.? If so, what version(s) and setup?

Best regards,

Martijn Coenen