Hi Tom,

On Wed, Oct 16, 2019 at 6:44 AM Tom Lynch <t...@trailmarker.io> wrote:

> Hi Daniele,
>
> Thanks a lot for your response - really appreciate any help you are able
> to offer.
>
> My reply is slightly delayed because I wanted to get the details of the
> server I'm configuring correct. However, I think my main issue is just with
> getting a GDAL 2.x based extension to load within GeoServer 2.16.0 on
> Windows x64.
>
> I'm setting up on WIndows Server 2012 R2 Standard using the
> platform-independent binary. I've downloaded and set up the 2.16.0 release
> without issues, base install runs fine.
>
> I also downloaded the geoserver-2.16.0-gdal-plugin.zip archive from the
> Extensions area and copied the jars into my GeoServer's /lib area as
> instructed.
>
> To install the Windows native dependencies, I followed the instructions
> here https://docs.geoserver.org/stable/en/user/data/raster/gdal.html under
> "Windows packages and setup":
>
> I downloaded the following archive from GISInternals:
>
> release-1900-x64-gdal-2-4-2-mapserver-7-4-0.zip
>
>
> and extracted it to C:\gisinternals
>
> Then added the following lines to startup.bat in the GeoServer bin area:
>
> set PATH=%PATH%;C:\gisinternals\bin;C:\gisinternals\bin\gdal\java
> set GDAL_DRIVER_PATH=C:\gisinternals\bin\gdal\plugins
> set GDAL_DATA=C:\gisinternals\bin\gdal-data
>
>
> The main GDAL DLL in this extracted ZIP is gdal204.dll ... is this as
> expected?
>
That's correct.


>
> (I realise there are some additional paths I need to add for the ECW
> plug-in etc, but not worried about that for now. I've previously verified
> this GDAL can read ECW files correctly via gdalinfo and the plug-in on this
> server.)
>
> Anyway, when I start GeoServer again after these changes, I don't see the
> additional Raster Formats available as Data Sources. I've attached the log
> of startup, which doesn't seem to mention loading GDAL as expected.
>

I just downloaded the platform independent binary, added GDAL libs and
started and I get a log very similar to yours (see attachment) but I also
have a line referring to GDAL not properly installed (in my instance, I
didn't set PATH yet).


*ott 16, 2019 9:27:14 AM
it.geosolutions.imageio.gdalframework.GDALUtilities loadGDALAVVERTENZA:
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.*

Based on that difference, I suspect your GDAL jars haven't been properly
installed.
Reading again your message I see that you said: *" and copied the jars into
my GeoServer's /lib area "*

Wait, make sure that you copied them into:
C:\Program Files\GeoServer 2.16.0\webapps\geoserver\WEB-INF\lib

and NOT in
C:\Program Files\GeoServer 2.16.0\lib

Please, double check that.
Once done and restarted, you should see a LOG referring GDAL loading
status, something like this:


*ott 16, 2019 9:39:08 AM
it.geosolutions.imageio.gdalframework.GDALUtilities loadGDALINFORMAZIONI:
GDAL Native Library loaded (version: 2.4.2)*

Please, let us know.
Regards,
Daniele


> Some tips on whether I've got the right GISInternals ZIP, whether my PATH
> looks right, perhaps what logging diagnostics I should expect to see as the
> GDAL extension is loaded would be really helpful!
>
> Tom
>
>
> On Mon, Oct 14, 2019 at 5:08 PM Daniele Romagnoli <
> daniele.romagn...@geo-solutions.it> wrote:
>
>> Hi Tom,
>> I didn't get if you are having problems with GDAL registering in general
>> or if you only have problem in ECW loading.
>> I have a couple of questions to better identify the problem.
>> Are you at least seeing the "standard" GDAL drivers from the coverage
>> stores in the GUI (as an instance DTED,NITF) and you are missing the ECW
>> ones only?
>> https://docs.geoserver.org/stable/en/user/_images/newsource.png
>>
>> Or are you not seeing any GDAL driver in the stores list, instead, and
>> you are getting some log messages reported that GDAL isn't loaded properly?
>>
>> Please, let us know.
>> Best Regards,
>> Daniele
>>
>>
>> On Mon, Oct 14, 2019 at 7:20 AM Tom Lynch <t...@trailmarker.io> wrote:
>>
>>> Hi all,
>>>
>>> Scratching my head slightly about this one after a few hours attempting
>>> to get GDAL 2.x / ImageIO-Ext set up with GeoServer 2.16.0.
>>>
>>> https://docs.geoserver.org/stable/en/user/data/raster/gdal.html
>>>
>>> Following the instructions above I can see I need GDAL 2.x. I've
>>> obtained what I think should be a compatible GISInternals download and
>>> unzipped it on the target x64 Windows Server
>>>
>>> The good news is that I've installed and licensed the ECW JPEG 2000 SDK
>>> 5.4, and I can now read ECW files correctly on the server via GDAL 2.x.
>>>
>>> Unfortunately, the GDAL / ImageIO-Ext extension for GeoServer 2.16.0 is
>>> not registering correctly when the webapp initialises - my additional
>>> raster formats don't appear in the Data Sources page.
>>>
>>>
>>> Does anyone out there have this configuration, or a similar one set up?
>>> GeoServer 2.16.x + GDAL 2.x + ECW SDK 5.4 on 64-bit Windows?
>>>
>>> Thanks in advance,
>>>
>>> Tom Lynch
>>> _______________________________________________
>>> Geoserver-users mailing list
>>>
>>> Please make sure you read the following two resources before posting to
>>> this list:
>>> - Earning your support instead of buying it, but Ian Turton:
>>> http://www.ianturton.com/talks/foss4g.html#/
>>> - The GeoServer user list posting guidelines:
>>> http://geoserver.org/comm/userlist-guidelines.html
>>>
>>> If you want to request a feature or an improvement, also see this:
>>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>>
>>>
>>> Geoserver-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>
>>
>>
>> --
>> Regards,
>> Daniele Romagnoli
>> ==
>> 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 di Montramito 3/A
>> 55054  Massarosa (LU)
>> Italy
>> phone: +39 0584 962313
>> fax:      +39 0584 1660272
>>
>> http://www.geo-solutions.it
>> http://twitter.com/geosolutions_it
>>
>> -------------------------------------------------------
>>
>> Con riferimento alla normativa sul trattamento dei dati personali (Reg.
>> UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
>> precisa che ogni circostanza inerente alla presente email (il suo
>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
>> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>>
>> This email is intended only for the person or entity to which it is
>> addressed and may contain information that is privileged, confidential or
>> otherwise protected from disclosure. We remind that - as provided by
>> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
>> e-mail or the information herein by anyone other than the intended
>> recipient is prohibited. If you have received this email by mistake, please
>> notify us immediately by telephone or e-mail.
>>
> _______________________________________________
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 
Regards,
Daniele Romagnoli
==
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 di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

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

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

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
Welcome to GeoServer!

JAVA_HOME: C:\Program Files\Java\jdk1.8.0_151

The GEOSERVER_HOME environment variable is not defined.
Temporarily setting GEOSERVER_HOME to the following directory:
C:\work\programs\geoserver-2.16.0-bin\geoserver-2.16.0

The GEOSERVER_DATA_DIR environment variable is not defined correctly.
Temporarily setting GEOSERVER_DATA_DIR to the following directory:
C:\work\programs\geoserver-2.16.0-bin\geoserver-2.16.0\data_dir

Please wait while loading GeoServer...

2019-10-16 09:27:11.903:INFO::main: Logging initialized @388ms to 
org.eclipse.jetty.util.log.StdErrLog
2019-10-16 09:27:12.085:WARN:oejx.XmlConfiguration:main: Property 'jetty.port' 
is deprecated, use 'jetty.http.port' instead
2019-10-16 09:27:12.086:WARN:oejx.XmlConfiguration:main: Property 
'http.timeout' is deprecated, use 'jetty.http.idleTimeout' instead
2019-10-16 09:27:12.092:INFO:oejs.Server:main: jetty-9.4.18.v20190429; built: 
2019-04-29T20:42:08.989Z; git: e1bc35120a6617ee3df052294e433f3a25ce7097; jvm 
1.8.0_151-b12
2019-10-16 09:27:12.108:INFO:oejdp.ScanningAppProvider:main: Deployment monitor 
[file:///C:/work/programs/geoserver-2.16.0-bin/geoserver-2.16.0/webapps/] at 
interval 1
2019-10-16 09:27:13.704:INFO:oejw.StandardDescriptorProcessor:main: NO JSP 
Support for /geoserver, did not find org.eclipse.jetty.jsp.JettyJspServlet
2019-10-16 09:27:14.070:INFO:oejs.session:main: DefaultSessionIdManager 
workerName=node0
2019-10-16 09:27:14.070:INFO:oejs.session:main: No SessionScavenger set, using 
defaults
2019-10-16 09:27:14.072:INFO:oejs.session:main: node0 Scavenging every 660000ms
ott 16, 2019 9:27:14 AM it.geosolutions.imageio.gdalframework.GDALUtilities 
loadGDAL
AVVERTENZA: 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
ott 16, 2019 9:27:14 AM org.geoserver.platform.GeoServerExtensions checkContext
AVVERTENZA: Extension lookup 'XStreamPersisterInitializer', but 
ApplicationContext is unset.
ott 16, 2019 9:27:14 AM org.geoserver.platform.GeoServerExtensions checkContext
AVVERTENZA: Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
ott 16, 2019 9:27:14 AM org.geoserver.platform.GeoServerExtensions checkContext
AVVERTENZA: Extension lookup 'ExtensionProvider', but ApplicationContext is 
unset.
ott 16, 2019 9:27:14 AM org.geoserver.platform.GeoServerExtensions checkContext
AVVERTENZA: Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
log4j:WARN File option not set for appender [geoserverlogfile].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
2019-10-16 09:27:14.817:INFO:oejshC.geoserver:main: Initializing Spring root 
WebApplicationContext
ott 16, 2019 9:27:16 AM org.geoserver.platform.GeoServerExtensions checkContext
AVVERTENZA: Extension lookup 'GeoServerSecurityProvider', but 
ApplicationContext is unset.
ott 16, 2019 9:27:16 AM org.geoserver.platform.GeoServerExtensions checkContext
AVVERTENZA: Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
ott 16, 2019 9:27:16 AM org.geoserver.platform.GeoServerExtensions checkContext
AVVERTENZA: Extension lookup 'ExtensionProvider', but ApplicationContext is 
unset.
ott 16, 2019 9:27:16 AM org.geoserver.platform.GeoServerExtensions checkContext
AVVERTENZA: Extension lookup 'ExtensionFilter', but ApplicationContext is unset.
16 ott 09:27:16 INFO [org.geoserver] - GeoServer configuration lock is enabled
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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

Reply via email to