<div dir="ltr">I suspect that tomcat is running as a different user than you - so you need to change it for that user. I'd still go for changing the container setup as it is more controlled.<div><br></div><div>Ian</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 May 2017 at 14:22, yuchan <span dir="ltr"><<a href="mailto:a09550@gmail.com" target="_blank">a09550@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Ian,<br>
<br>
However, we want to deploy this application in other kinds of web<br>
application not only Tomcat so it is really complicated to have to modify<br>
Tomcat.<br>
<br>
I also tried to set LD_LIBRARY_PATH=/usr/lib/java/<wbr>gdal/:$LD_LIBRARY_PATH in<br>
~/.bashrc and then execute it with source ~/.bashrc where I can see the<br>
LIBRARY_PATH environment variable in console, restart Tomcat 7 and it still<br>
shows the error<br>
<br>
Handler dispatch failed; nested exception is java.lang.<wbr>UnsatisfiedLinkError:<br>
org.gdal.osr.osrJNI.new_<wbr>SpatialReference__SWIG_1()J. Please check the log<br>
for the detail error.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Cannot-load-Java-GDAL-native-library-in-web-application-with-error-in-link-library-tp5321448p5321455.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.<wbr>nabble.com/Cannot-load-Java-<wbr>GDAL-native-library-in-web-<wbr>application-with-error-in-<wbr>link-library-<wbr>tp5321448p5321455.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ian Turton<br></div>
</div>