Hi Andrea,
i test this in the ubuntu machine i run tomcat with:
CATALINA_OPTS="-server -Xms48m -Xmx1024M -XX:SoftRefLRUPolicyMSPerMB=36000
-XX:MaxPermSize=128m -XX:+UseParallelGC -Djava.library.path=/usr/bin
-DGDAL_LIBRARY_NAME=gdal"
but i retrieve this error:
Caused by: java.lang.RuntimeException: Failed to bind to user specified
gdal library named: gdal
at org.geotools.data.ogr.GdalInit.init(GdalInit.java:39)
at
org.geotools.data.ogr.OGRDataStoreFactory.<clinit>(OGRDataStoreFactory.java:63)
Some help?
Thanks,
2011/11/13 Francesco Izzi <[email protected]>
> Thanks Andrea,
>
> I will investigate the problem, and i'll let you know.
>
>
> 2011/11/13 Andrea Aime <[email protected]>
>
>> On Sat, Nov 12, 2011 at 10:19 PM, Francesco Izzi <
>> [email protected]> wrote:
>>
>>> Hi Andrea,
>>>
>>> i try to test the ogr datastore on macosx lion.
>>>
>>> i run: mvn clean install -Djava.library.path=/usr/local/bin/
>>> -DGDAL_LIBRARY_NAME=gdal
>>>
>>> but i have this:
>>>
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running org.geotools.data.ogr.GeometryMapperTest
>>> Registered library as gdal
>>> Invalid memory access of location 0x13d36cb74 rip=0x103165210
>>> /bin/sh: line 1: 55016 Segmentation fault: 11
>>> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
>>> -Xmx512M -Dorg.geotools.test.extensive=false
>>> -Dorg.geotools.test.interactive=false
>>> -Dorg.geotools.image.test.enabled=true
>>> -Dorg.geotools.image.test.interactive=false
>>> '-Djava.awt.headless=${java.awt.headless}'
>>> -Djava.io.tmpdir=/var/folders/cs/551x1_nd5xl142_qrs22h5980000gn/T/ -jar
>>> /Users/fizzi/sviluppo/codice/geosdi/gt-trunk/modules/unsupported/ogr/target/surefire/surefirebooter301142255284689358.jar
>>> /Users/fizzi/sviluppo/codice/geosdi/gt-trunk/modules/unsupported/ogr/target/surefire/surefire3539506481835657568tmp
>>> /Users/fizzi/sviluppo/codice/geosdi/gt-trunk/modules/unsupported/ogr/target/surefire/surefire8826194368430222431tmp
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>>
>> Gah, a segfault, something went wrong when calling a native method.
>> The only way to fix these suckers for me has been to debug step by step
>> and see what line
>> of code generates the segfault, under which conditions, read the ogr
>> docs trying to figure out
>> what went wrong (and the fix it).
>> It often requires quite a bit of hair pulling (and access to the machine
>> that shows the segfault) :-(
>>
>> Cheers
>> Andrea
>>
>> --
>> -------------------------------------------------------
>> Ing. Andrea Aime
>> GeoSolutions S.A.S.
>> Tech lead
>>
>> 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://www.linkedin.com/in/andreaaime
>> http://twitter.com/geowolf
>>
>> -------------------------------------------------------
>>
>
>
>
> --
> Francesco Izzi
> CNR - IMAA
> geoSDI
> Direzione Tecnologie e Sviluppo
>
> C.da S. Loja
> 85050 Tito Scalo - POTENZA (PZ)
> Italia
>
> phone: +39 0971427305
> fax: +39 0971 427271
> mob: +39 3203126609
> mail: [email protected]
> skype: neofx8080
>
> web: http://www.geosdi.org
>
>
>
>
--
Francesco Izzi
CNR - IMAA
geoSDI
Direzione Tecnologie e Sviluppo
C.da S. Loja
85050 Tito Scalo - POTENZA (PZ)
Italia
phone: +39 0971427305
fax: +39 0971 427271
mob: +39 3203126609
mail: [email protected]
skype: neofx8080
web: http://www.geosdi.org
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel