Changes between Initial Version and Version 1 of Ticket #1601
- Timestamp:
- Aug 3, 2017, 6:51:19 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1601 – Description
initial v1 1 1 From version 9.5, Petascope uses GDAL native library (gdal_java package, path in Centos 7: /usr/lib/java/gdal) and this must be loaded to JVM (Tomcat) by Classloader manually. However, when registering the GDAL native library once time when installing new Petascope, it does not allow to add this native library when rasdaman.war is redeployed, then, new Petascope cannot start without restarting Tomcat. 2 2 3 4 {{{ 5 Caused by: java.lang.UnsatisfiedLinkError: Native Library /usr/lib/java/gdal/libgdaljni.so already loaded in another classloader 6 }}} 7 8 3 9 It cannot be solved easily by checking if gdal native library is loaded as it will have another error which is it cannot link the shared library (libgdaljni.so). 10 11 12 {{{ 13 Caused by: java.lang.UnsatisfiedLinkError: org.gdal.osr.osrJNI.new_SpatialReference__SWIG_1()J 14 }}} 15 4 16 5 17 This is a problem with Java JNI Classloader and no fix for it. I found a workaround on the Internet which will resolve the problem by doing a trick.