Opened 5 years ago
Closed 5 years ago
#2235 closed enhancement (wontfix)
Petascope - cannot deploy multiple rasdaman.war in one tomcat because of failed loading gdal-java
Reported by: | Bang Pham Huu | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 11.0 |
Component: | petascope | Version: | 9.8 |
Keywords: | Cc: | Dimitar Misev | |
Complexity: | Medium |
Description
On a Ubuntu 18.04 VM, if the default gdal-java JNI is: /usr/lib/jni then only one tomcat can be deployed. The second one will have error
java.lang.UnsatisfiedLinkError: Native Library /usr/lib/jni/libgdaljni.so already loaded in another classloader
However, if I moved /usr/lib/jni to /usr/lib/jni_temp and build petascope with this GDAL_JAVA_DIR configuration, then, it can run multiple petascope in one tomcat without problem.
Note:
See TracTickets
for help on using tickets.
Only one petascope can run in one tomcat and it will need to restart tomcat everytime when petascope is deployed.