[Geoserver-users] Installing GeoServer 2.3.1 +JBoss 7.1.1 + JAI + IMAGEIO on Ubuntu 12.04

Hi Users, after fiddling a bit I was able to get the above compination working.
It was a bit tricky, at least for me, so I decided to share here what I did.

  • I started deploying GeoServer to JBoss as a folder

  • Added jboss-deployment-structure.xml as follows

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
  <deployment>
    <dependencies>
        <system>
            <paths>
                <path name="com/sun/imageio/spi"/>
                <path name="com/sun/imageio/plugins/common"/>
            </paths>
        </system>
    </dependencies>
  </deployment>
</jboss-deployment-structure>

in WEB-INF folder of GeoServer

  • Added jboss-classloading.xml as follows
<classloading xmlns="urn:jboss:classloading:1.0"
name="geoserver.war"
domain="GeoServerDomain"
export-all="NON_EMPTY"
import-all="true">
</classloading>

in WEB-INF folder of GeoServer (these two I got from this blog)

  • Instead of getting JAI from its usual download page I installed it from repositories using
sudo apt-get install libjai-core-java libjai-imageio-core-java
  • Then I removed jai_core-1.1.3.jar, jai_codec-1.1.3.jar and jai_imageio-1.1.jar from the WEB-INF/lib folder of GeoServer

  • Then I copied jai_core-1.1.4.jar, jai_codec-1.1.4.jar, jai_imageio-1.2.jar, mlibwrapper_jai-1.1.4.jar and clibwrapper_jiio-1.2.jar from /usr/share/java to WEB-INF/lib in GeoServer

After starting up the AS, this is what I got.
Server status

Hope this hepls someone.

Regards.
Antonio.


View this message in context: Installing GeoServer 2.3.1 +JBoss 7.1.1 + JAI + IMAGEIO on Ubuntu 12.04
Sent from the GeoServer - User mailing list archive at Nabble.com.

On Mon, Apr 29, 2013 at 10:51 AM, aatoma <antonio.toma@anonymised.com> wrote:

Hi Users, after fiddling a bit I was able to get the above compination
working.
It was a bit tricky, at least for me, so I decided to share here what I
did.

Thanks for sharing :slight_smile:

- I started deploying GeoServer to JBoss as a folder

- Added jboss-deployment-structure.xml as follows

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
  <deployment>
    <dependencies>
        <system>
            <paths>
                <path name="com/sun/imageio/spi"/>
                <path name="com/sun/imageio/plugins/common"/>
            </paths>
        </system>
    </dependencies>
  </deployment>
</jboss-deployment-structure>

in WEB-INF folder of GeoServer

- Added jboss-classloading.xml as follows

<classloading xmlns="urn:jboss:classloading:1.0"
name="geoserver.war"
domain="GeoServerDomain"
export-all="NON_EMPTY"
import-all="true">
</classloading>

in WEB-INF folder of GeoServer (these two I got from this blog<http://gioppoluca.blogspot.com/2012/12/jboss-711-geoserver-222.html&gt;\)

- Instead of getting JAI from its usual download page I installed it from
repositories using

sudo apt-get install libjai-core-java libjai-imageio-core-java

- Then I removed jai_core-1.1.3.jar, jai_codec-1.1.3.jar and
jai_imageio-1.1.jar from the WEB-INF/lib folder of GeoServer

- Then I copied jai_core-1.1.4.jar, jai_codec-1.1.4.jar,
jai_imageio-1.2.jar, mlibwrapper_jai-1.1.4.jar and clibwrapper_jiio-1.2.jar
from /usr/share/java to WEB-INF/lib in GeoServer

Uh, now that is weird... The latest officially released versions of JAI and
JAI ImageIO are the ones bundled with GeoServer,
no idea where those 1.1.4 and 1.2 are coming from?

Cheers
Andrea

--

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

Ing. Andrea Aime
@geowolf
Technical Lead

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

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

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

geowolf wrote

  • Then I copied jai_core-1.1.4.jar, jai_codec-1.1.4.jar,
    jai_imageio-1.2.jar, mlibwrapper_jai-1.1.4.jar and clibwrapper_jiio-1.2.jar
    from /usr/share/java to WEB-INF/lib in GeoServer

Uh, now that is weird… The latest officially released versions of JAI and JAI ImageIO are the ones bundled with GeoServer, no idea where those 1.1.4 and 1.2 are coming from?

Hi Andrea,

those are the versions of the corresponding Debian packages. Debian lists java.net as a source and java.net has indeed JAI 1.1.4 and JAI-IMAGEIO 1.2 in its repositories here

JAI 1.1.4

and here

JAI-IMAGEIO 1.2

Can’t comment on actual changes from previous versions, though.

Regards.
Antonio.


View this message in context: Re: Installing GeoServer 2.3.1 +JBoss 7.1.1 + JAI + IMAGEIO on Ubuntu 12.04
Sent from the GeoServer - User mailing list archive at Nabble.com.