Table of Contents

MapViewer - Configuration

About

This paragraph talk about the management of the mapviewer configuration file :

You can manage it on-line in this location:

Configuration

Cache

Logging

  <!-- ****************************************************************** -->
  <!-- ************************ Logging Settings ************************ -->
  <!-- ****************************************************************** -->

  <!-- Uncomment the following to modify logging. Possible values are:
       log_level = "fatal"|"error"|"warn"|"info"|"debug"|"finest"  
                 default: info) ;
       log_thread_name = "true" | "false" ;
       log_time = "true" | "false" ;
       one or more log_output elements.
  -->

    <logging log_level="warn" log_thread_name="false"   log_time="true">
       <log_output name="System.err" />
       <log_output name="../log/mapviewer.log" />
    </logging>

Database Connection

From here : If you see an alert dialog with an error message that reads like “JDBC theme is not supported on this data source”, then you need to add the allow_jdbc_theme_based_foi=“true” attribute to the 'mvdemo' data source definition in the MapViewer's mapViewerConfig.xml config file (can be done from the MapViewer admin web console under Management then Confgiuration), then restart MapViewer.

<map_data_source name="world_sample"
            jdbc_host="YOUR_DB_HOSTNAME"
            jdbc_sid="YOUR_DB_SID"
            jdbc_port="YOUR_DB_PORT"
            jdbc_user="YOUR_DB_USER_WHERE_WORLD_SAMPLE_IS_LOADED"
            jdbc_password="!DBUSER_PASSWD"
            jdbc_mode="thin"
            number_of_mappers="2"
            allow_jdbc_theme_based_foi="true"
/>

Hint: Here is a completed example of the world_sample data source:

<map_data_source name="world_sample"
           jdbc_host="gisserver.oracle.com"
           jdbc_sid="orcl"
           jdbc_port="1521"
           jdbc_user="world_sample"
           jdbc_password="!world_sample"
           jdbc_mode="thin"
           number_of_mappers="2"
           allow_jdbc_theme_based_foi="true"
/>

Before you continue, ensure that your jdbc_password has an “!” in front of it, as illustrated in the examples above. Also, ensure that the data source is in an uncommented section of the xml file: text within is considered as comments only.