Differences between revisions 1 and 2
Revision 1 as of 2010-11-19 15:03:47
Size: 501
Comment:
Revision 2 as of 2010-11-22 13:11:28
Size: 1495
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
context-param Installing the IP role mapper is a walk in the park. All there is to do is to drop the {{{.WAR}}} file into the {{{../tomcat/webapps}}} directory and that is (almost) it! However, the {{{.WAR}}} file must contain a proper configuration file and the {{{dk.statsbiblioteket.iprolemapping.configurationFile context-param}}} must be defined in the {{{web.xml}}} in order to make this work.

If you want to apply another configuration than the default included in the {{{.WAR}}} file, or if it does not include any, then you will need to modify (or add) the {{{dk.statsbiblioteket.iprolemapping.configurationFile context-param}}} of the {{{../tomcat/config/context.xml}}} file and assign it with the file path to the (alternative) configuration file which you want the service to use.

Example of the {{{<context-param>}}} element to add to the {{{context.xml}}} file:
Line 10: Line 14:
}}}
Line 11: Line 16:

}}}
E.g.
If the IP role mapper applies a default configuration file then the {{{WEB-INF/web.xml}}} file of its {{{.WAR}}} file will contain an entry like this:
Line 20: Line 23:

Installation of the IP-Role Mapper Web-service

Installing the IP role mapper is a walk in the park. All there is to do is to drop the .WAR file into the ../tomcat/webapps directory and that is (almost) it! However, the .WAR file must contain a proper configuration file and the dk.statsbiblioteket.iprolemapping.configurationFile context-param must be defined in the web.xml in order to make this work.

If you want to apply another configuration than the default included in the .WAR file, or if it does not include any, then you will need to modify (or add) the dk.statsbiblioteket.iprolemapping.configurationFile context-param of the ../tomcat/config/context.xml file and assign it with the file path to the (alternative) configuration file which you want the service to use.

Example of the <context-param> element to add to the context.xml file:

   <context-param>
        <param-name>dk.statsbiblioteket.iprolemapping.configurationFile</param-name>
        <param-value>/path/to/the/configuration/file.xml</param-value>
    </context-param>

If the IP role mapper applies a default configuration file then the WEB-INF/web.xml file of its .WAR file will contain an entry like this:

   <context-param>
        <param-name>dk.statsbiblioteket.iprolemapping.configurationFile</param-name>
        <param-value>/WEB-INF/ipRangesAndRoles.xml</param-value>
    </context-param>

IPRoleMapperInstallation (last edited 2011-03-22 12:51:13 by jrg)