[Geoserver-devel] Imageio-ext fails to load if there are multiple geserver deployed on tomcat

Hello devs (Simone&Danielle),

If we have several geoservers deployed on single tomcat instance,
imageio ext is only loaded for first one, while for others error
(WARNING) is raised and imageio is not possible.

2010.01.12 21:32:28 it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Native library load failed.java.lang.UnsatisfiedLinkError:
Native Library /usr/lib/jvm/java-6-sun-1.6.0.07/jre/imageio-ext-base/libgdaljni.so
already loaded in another classloader

Before opening new JIRA I want to confirm that this is really a bug,
or it maybe can be configured in Tomcat somehow.

Grazie,

regards

--
Ivan Grcic

Ciao Ivan,
this is not an imageio-ext or geotools problem, this is how java works
wit native extensions.
There should be a way to solve the problem by deploying imageio-ext
native libs inside tomcat, I would google a bit for a solution.

I kind of remember we already ran into this problem, let me cc alessio
and daniele.

Ciao,
Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Founder - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini
http://twitter.com/simogeo

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

On Tue, Jan 12, 2010 at 11:39 PM, Ivan Grcic <ivan.grcic@anonymised.com> wrote:

Hello devs (Simone&Danielle),

If we have several geoservers deployed on single tomcat instance,
imageio ext is only loaded for first one, while for others error
(WARNING) is raised and imageio is not possible.

2010.01.12 21:32:28 it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Native library load failed.java.lang.UnsatisfiedLinkError:
Native Library /usr/lib/jvm/java-6-sun-1.6.0.07/jre/imageio-ext-base/libgdaljni.so
already loaded in another classloader

Before opening new JIRA I want to confirm that this is really a bug,
or it maybe can be configured in Tomcat somehow.

Grazie,

regards

--
Ivan Grcic

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel