Hi list,
Forwarding the updates provided by David since he was able to get
everything working.
In case this can contain useful info for Pritimoy Podder which is having
similar problems.
Cheers,
Daniele
---------------------------------------------------------------------------------------------------------------------------------
Dear Daniele, Just to let you know that now I’m back from holiday I had
another attempt of getting the GDAL extensions to work with Geoserver and
they now all work just fine including ECW & MrSID.
New installation of Geoserver 2.7.2, 64 bit java, so I’ve decided not to
bother with JAI. I first removed all traces of GDAL from the OSGeo4W
installation.
I followed the new 2.7.2 documentation which is now very clear. Many thanks
for your help! David
@boscinet
On Tue, Jul 21, 2015 at 10:55 PM, David Lovelace <
[email protected]> wrote:
> Dear Daniele, your advice is proving useful, thanks, I haven’t had time to
> apply myself to the problem since then but will give quality time to the
> installation when I return from holiday in a couple of weeks.
>
> I look forward to the updated Geoserver documentation as it seems I’m not
> the only one grappling with these issues. Thanks again. David
>
>
>
> @boscinet
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Daniele Romagnoli
> *Sent:* 16 July 2015 11:30
> *To:* David Lovelace; [email protected]
>
> *Subject:* Re: [Geoserver-users] Geoserver and ecw raster formats
>
>
>
> Dear David,
>
> did you make any progress with your GDAL installation?
>
> Do the latest provided feedbacks helped you in this process?
>
> In the meantime, we are also updating the GeoServer documentation with
> some more details.
>
>
>
> Regards,
>
> Daniele
>
>
>
>
>
>
>
>
>
> On Tue, Jul 7, 2015 at 1:53 PM, David Lovelace <
> [email protected]> wrote:
>
> Dear Daniele,
>
> Yes you are right. Tomcat log includes this (I’ve only been looking at the
> geoverver logs):
>
> “*WARNING: Failed to load the GDAL native libs. This is not a problem
> unless you need to use the GDAL plugins: they won't be enabled.*
>
> *java.lang.UnsatisfiedLinkError: C:\OSGeo4W64\bin\gdaljni.dll: Can't load
> AMD 64-bit .dll on a IA 32-bit platform*”
>
> This is odd as I’ve removed the windows PATH to C:\OSGeo4W64\bin and
> substituted C:\gdallibs before restarting Tomcat.
>
> Somehow Tomcat is still managing to find the wrong dll – perhaps a
> registry setting (hope not).
>
> So I’m getting closer to the problem.. David
>
>
>
>
>
> @boscinet
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Daniele Romagnoli
> *Sent:* 07 July 2015 12:01
>
>
> *To:* David Lovelace
> *Subject:* Re: [Geoserver-users] Geoserver and ecw raster formats
>
>
>
> I'm sorry but I got confused.
>
> I was thinking you have already provided logs reporting GDAL loading
> issue...
>
> But that's not the case. Maybe I have seen logs from another user for
> similar issue.
>
> That said, I have this entry in my Tomcat's catalina.2015-07-07.log. (Note
> that's not a GeoServer log but a Tomcat one)
>
>
>
> lug 07, 2015 10:49:19 AM
> it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
>
> INFORMAZIONI: GDAL Native Library loaded (version: 1.9.2)
>
>
>
> Do you have any chance to check what is reporting your tomcat?
>
> An unsuccessfully loading will look like this:
>
>
>
> Jul 03, 2015 11:08:34 AM
> it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
>
> WARNING: Failed to load the GDAL native libs. This is not a problem unless
> you need to use the GDAL plugins: they won't be enabled.
>
> java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path
>
>
>
>
>
> Please, let me know.
>
> Best Regards,
>
> Daniele
>
>
>
>
>
>
>
> On Tue, Jul 7, 2015 at 12:17 PM, David Lovelace <
> [email protected]> wrote:
>
> Dear Daniele,
>
> Just checked: GDAL is working from Java on my server.
>
> I ran >gdalinfo.bat --formats from C:\gdallibs\javainfo and GDAL lists all
> the supported formats including ecw.
>
> I also ran >gdalinfo.bat on one of my ecw files and got the full file
> information so clearly the java-C/C++ bridge is working.
>
> Restarting Tomcat and Geoserver (again) still fails to show up extended
> raster formats.
>
> When I unpack gdal-1.9.2-MSVC2008 (rather than gdal-1.9.2-MSVC2008x64) I
> assume get 32 bit versions of the JNI libraries (?).
>
> I’ve searched the console log files generated by Geoserver (geoserver.log)
> and can’t find any indication of failure to load any dll files.
>
> Does this mean perhaps that Geoserver is not even trying load any of
> required dll/jar files?
>
> Is there something inherently problematic in mixing running 32 bit java on
> a 64 bit windows OS?
>
> Should I try again reinstalling everything from JRE onwards in 64bit and
> just forgetting about JAI?
>
> (Even though Colin Henderson has managed it somehow).
>
> All the best and thanks again. David
>
> @boscinet
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Daniele Romagnoli
> *Sent:* 07 July 2015 09:28
> *To:* David Lovelace
>
>
> *Subject:* Re: [Geoserver-users] Geoserver and ecw raster formats
>
>
>
> Hi again David,
>
> Note that the crucial part of the GDAL support in GeoServer is the JAVA
> <---> C/C++ bridging since GeoServer (Java) methods need to invoke GDAL
> (C/C++) functions. This is provided by the JNI libs.
>
> So, once you test "gdalinfo --formats" I think that you are only testing
> the gdalinfo.exe, the C side which is working.
>
> When downloading the MSCV2008 libs from geosolutions, you should see a
> "javainfo" folder in that archive.
>
> Could you run gdalinfo.bat --formats from that folder? It runs a java code
> which basically behave as gdalinfo but using JNI.
>
> That is where we need to look at.
>
> If everything is ok (but I don't think so in your case) you will get the
> same output of gdalinfo.exe.
>
> Otherwise you will see what is going wrong.
>
> Probably your Java32 is trying to load a JNI 64 resulting into a *"Can't load
> IA 32-bit
> .dll on a AMD 64-bit platform" *or something similar.
>
>
>
> Hope this helps.
>
> Cheers,
>
> Daniele
>
>
>
>
>
>
>
>
>
>
>
> On Mon, Jul 6, 2015 at 7:33 PM, David Lovelace <
> [email protected]> wrote:
>
> Dear Daniele, Thank you for bearing with me on this.
>
> I understand the point about using Geoserver-specific GDAL libraries.
>
> I have QGIS on my server (installed via OSGeo4W) which I don’t really want
> to uninstall so I’ve deleted the PATH variable to the QGIS GDAL libraries,
> that is say “C:\OSGeo4W64\bin;” is now removed.
>
> As well as following your advice on this thread I have also been following
> the procedure for 64 bit Windows Server 2008 R2 advocated by Colin
> Henderson in “Mastering Geoserver”. He has both JAI “true” as well as the
> extended raster sources including ecw - the ‘holy grail’ on his Geoserver
> installations! (Does he get a prize?). Henderson is using 32 bit JRE while
> pointing out that multiple instances of Geoserver can be deployed to
> overcome 2 Gb memory and other 32 bit limitations. Using his procedure I
> have everything working BUT NOT the raster extensions (weep) even after
> closely following his procedure.
>
> I’m using jre-7u79-windows-i586.exe to install JRE,
>
> Add variable JRE_HOME value C:\Program Files (86)\Java\jre7.
>
> I’m using the 32/64 installation for windows: tomcat-7.0.62.zip.
>
> As you advise, I’ve created a folder for the Geoserver-specific gdal
> libraries C:\gdallibs, downloaded gdal-1.9.2-MSVC2008.zip (32 bit version,
> I have VC++ 2008 on my system) from geo-solutions and extracted everything
> to C:\gdallibs.
>
> I have included “C:\gdallibs;” in the PATH variable.
>
> Next I installed gdal-19-1500-ecw.msi (also from geo-solutions) and copied
> that version of gdal_ECW_JP2ECW.dll to C:\gdallibs.
>
> Next I add the environment variable GDAL_DRIVER_PATH and give it the
> value “C:\gdallibs”
>
> I have unzipped gdal_data.zip and placed the contents into
> C:\gdallibs\gdal_data.
>
> Next I add the environment variable GDAL_DATA and give it the value
> “C:\gdallibs\gdal_data”.
>
> cmd>gdalinfo –formats list all the extended formats including ecw. I’ve
> also got GDAL to detail all the file information from one of my ecw files.
>
> So far so good (but I’ve been here many times before!).
>
> All the jar files from the GDAL Coverage Formats for my version of
> Geoserver (2.7.1.1) are in webapps/Geoserver/WEB_INF/lib.
>
> Tomcat restarted (from windows console)
>
> Geoserver restarted but same as before: no raster extensions other than
> defaults (double weep).
>
> I could go through the whole procedure yet again in 64 bit (uninstalling
> JRE 32, installing JRE 64, uninstalling and reinstalling Tomcat,
> redeploying Geoserver, going though all the above steps with 64 bit
> versions) but I don’t think that’s the issue.
>
> I must be missing some crucial step somewhere, but where?
>
> All the best David
>
>
>
> @boscinet
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Daniele Romagnoli
> *Sent:* 06 July 2015 09:48
> *To:* tilia
> *Cc:* [email protected]
> *Subject:* Re: [Geoserver-users] Geoserver and ecw raster formats
>
>
>
> Hi again David,
>
> please read below...
>
>
>
> This is my system:
>
>
>
> Windows 8 64.
>
> I have installed Tomcat 7.0.62, JVM 64.
>
> I have downloaded GDAL native libs for Windows 64 from the link provided
> in the GeoServer documentation.
>
> For my system, I got this one:
>
>
> http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.10/native/gdal/windows/MSVC2008/gdal-1.9.2-MSVC2008-x64.zip
>
> and extracted to c:\gdallibs
>
>
>
> Then I have installed the ECW and MrSID msi.
>
>
> http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.10/native/gdal/windows/MSVC2008/gdal-19-1500-x64-ecw.msi
>
>
>
> http://demo.geo-solutions.it/share/github/imageio-ext/releases/1.1.X/1.1.10/native/gdal/windows/MSVC2008/gdal-19-1500-mrsid.msi
>
>
>
> I have set the PATH environment variable on my tomcat setenv.bat script as
> PATH=c:\gdallibs
>
> Then I have set the GDAL_DRIVER_PATH environment variable on the same
> script as GDAL_DRIVER_PATH=C:\Program Files\GDAL\gdalplugins
>
> (this is where the 2 msi installers put the files by default).
>
>
>
> Then, I have restarted GeoServer and I can see the ECW and MrSID stores as
> well as the LOG stating that GDAL 1.9.2 has been properly loaded.
>
>
>
> Then I did a test. I have installed the OSGeo4W libs, updated the tomcat
> setenv scripts to use these libs instead of the previous ones and restarted
> GeoServer. As expected, No GDAL drivers are available since, as already
> stated in the first email, the OSGeo4W installation provides different set
> of libs. Note that the native libs are a bad beast. The GeoServer GDAL
> support is based on JNI. There is a jar file containing methods which calls
> native methods bridging to the underlying GDAL C/C++ libs. Using different
> versions of the libs (as the ones provided by OSGeo4W) doesn't guarantee
> the same methods will be available and the bridging will properly work.
>
> The libs referred by the documentation have been expressly packed to be
> used by GeoServer.
>
>
>
> Please, try again with the suggested steps and let us know. I'll be
> available for further clarifications.
>
>
>
> Best Regards,
>
> Daniele
>
>
>
>
>
> On Fri, Jul 3, 2015 at 8:02 PM, tilia <[email protected]>
> wrote:
>
> Just to say that Geoserver still fails to show non-default raster sources
> despite my best efforts and the detailed advice from Daniele (thanks for
> your patience BTW).
> All paths and environmental variables are correct and all the required jar
> files in geoserver\WEB-INF\lib
> My problem seems similar to Attakorn Poonkesorn who posted recently.
> OSGeo4W64 places gdal libraries in C:\OSGeo4W64\bin and this where my gdal
> variables point to.
> I've put those 4*jni*.dll files in there too.
> The gdal_data files are in C:\OSGeo4W64\share\gdal.
> gdal works perfectly from the command line.
> I've rather run out of time on this - all I can say is that Geoserver is
> very difficult to set up in anything other default mode. I'm not a java
> expert - perhaps you have to be.
> If anyone can come up with a fail safe explanation of how to have raster
> functionality that includes ecw I'd love to know!
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Geoserver-and-ecw-raster-formats-tp5213620p5214253.html
>
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
>
>
> --
>
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
>
>
>
>
>
> --
>
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
>
>
>
>
>
> --
>
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
>
>
>
>
>
> --
>
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
>
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==
Ing. Daniele Romagnoli
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users