Social Icons

twitterfacebookgoogle pluslinkedinrss feedemail


Wednesday, December 11, 2013

JBoss 7.1.1 + GeoServer 2.2.5: logging

To enable correct logging of GeoServer in a JBoss 7.1.1 installation we'll need to modify the previously defined jboss-deployment-structure.xml

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
            <module name="org.apache.log4j" />
            <module name="org.slf4j" />
                    <path name="com/sun/imageio/spi"/>
                    <path name="com/sun/imageio/plugins/common"/>
            <module name="" />
            <module name="org.jboss.ironjacamar.jdbcadapters" />

Than you need to set the following jvm-option in the host.xml file: GEOSERVER_LOG_LOCATION

 <server name="geo1" group="geo-server-group" auto-start="true">
            <jvm name="default">
                <heap size="128m" max-size="512m"/>
                    <option value="-DGEOSERVER_DATA_DIR=/home/jbossas/geoserver_data,-DGEOSERVER_LOG_LOCATION=/var/log/jboss-as/geoserver.log"/>

In the example you also see that is possible to define a data dir in the same way.

0 commenti: