[Geoserver-users] GeoServer 2.2.4 and GDAL Native Libs on JBoss 7.1.1 using modules

I’m working on a project using GeoServer and would like to use the GDAL extension for GeoServer to add the GDAL raster formats. So following the basic instructions on the GeoServer webpage I can get it to work by added the GDAL native library path to LD_LIBRARY_PATH or copying them to the /usr/lib64 directory. http://docs.geoserver.org/stable/en/user/data/raster/gdal.html

Environment

CentOS 6.3 x64

GeoServer 2.2.4

GDAL 1.9.2

JBoss 7.1.1

Java 1.6.0_29 x64

The issue I’m running into is that the project I’m working on requires we use JBoss modules and doesn’t allow us to add libraries into the LD_LIBRARY_PATH. So I created a module in the modules/org/gdal/main directory. The module is read, but the GDAL native libraries in the modules/org/gdal/main/lib/linux-x86_64 aren’t working because I’m getting the following message.

02:47:22,622 WARNING [it.geosolutions.imageio.gdalframework] (MSC service thread 1-6) Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won’t be enabled. java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path

Does anyone know how to make this work or if it is even possible?

module.xml

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.gdal">
    <resources>
        <resource-root path="."/>
        <resource-root path="lib"/>
    </resources>
</module>

jboss-deployment-structure.xml

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
  <deployment>
    <dependencies>
      <module name="org.gdal" />
    </dependencies>
  </deployment>
</jboss-deployment-structure>


View this message in context: GeoServer 2.2.4 and GDAL Native Libs on JBoss 7.1.1 using modules
Sent from the GeoServer - User mailing list archive at Nabble.com.

Dear Max,
I talked to other guys here and we have not yet played with jboss 7 and gdal.
Could please file an enhancement request for this on GeoServer's JIRA?
Regards,
Simone Giannecchini

GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

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

On Mon, Apr 15, 2013 at 5:08 PM, Max Guscoff <mguscoff@anonymised.com> wrote:

I'm working on a project using GeoServer and would like to use the GDAL
extension for GeoServer to add the GDAL raster formats. So following the
basic instructions on the GeoServer webpage I can get it to work by added
the GDAL native library path to LD_LIBRARY_PATH or copying them to the
/usr/lib64 directory.
http://docs.geoserver.org/stable/en/user/data/raster/gdal.html

Environment

CentOS 6.3 x64

GeoServer 2.2.4

GDAL 1.9.2

JBoss 7.1.1

Java 1.6.0_29 x64

The issue I'm running into is that the project I'm working on requires we
use JBoss modules and doesn't allow us to add libraries into the
LD_LIBRARY_PATH. So I created a module in the modules/org/gdal/main
directory. The module is read, but the GDAL native libraries in the
modules/org/gdal/main/lib/linux-x86_64 aren't working because I'm getting
the following message.

02:47:22,622 WARNING [it.geosolutions.imageio.gdalframework] (MSC service
thread 1-6) Failed to load the GDAL native libs. This is not a problem
unless you need to use the GDAL plugins: they won't be enabled.
java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path

Does anyone know how to make this work or if it is even possible?

module.xml

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="org.gdal">
    <resources>
        <resource-root path="."/>
        <resource-root path="lib"/>
    </resources>
</module>

jboss-deployment-structure.xml

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
  <deployment>
    <dependencies>
      <module name="org.gdal" />
    </dependencies>
  </deployment>
</jboss-deployment-structure>

________________________________
View this message in context: GeoServer 2.2.4 and GDAL Native Libs on JBoss
7.1.1 using modules
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users