$TOMCAT to refer to the root directory
where Tomcat is installed. The PML Browser may work with other
servlet container or J2EE application server although we have
tested it for Tomcat version 5.0 only.owl to Tomcat default MIME type mappings.
web.xml located
at $TOMCAT/conf<mime-mapping>" element.
owl mapping
below to top of the list):web.xml configuration file
iw.xml) is needed to setup
the IWBase node. If your system has other IW applications installed,
it may already have an iw.xml file and you can skip to
step 5. Otherwise, you will need to follow the steps below:
$IW_HOME
directory. It can be located anywhere in your filesystem
(for example, $IW_HOME can be created as
$TOMCAT/iw).
$IW_HOME, create another directory named
"conf".$IW_HOME/conf.
$IW_HOME as a global JNDI resource in your Tomcat configuration file.
server.xml located
at $TOMCAT/conf<GlobalNamingResources> element in the file<GlobalNamingResources> and before
</GlobalNamingResources>), add the following line replacing
(your IW_HOME) by the actual value of $IW_HOME:
<Context path="/iwregistrar" docBase="iwregistrar"
debug="5" reloadable="true" crossContext="true" >
<ResourceLink name="iwhome" global="iwhome" type="java.lang.String" />
<Resource name="jdbc/IWBase" reloadable="true" auth="Container"
type="javax.sql.DataSource" description=""
maxActive="100" maxWait="10000" maxIdle="30"
username=dbuname password=dbuPWD
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://host.domain/dbname?autoreconnect=true" >
</Resource>
</Context>
Please note that this intallation instruction assumes that the war file in
step 12 is going to be named "iwregistrar.war". If not, you may need to change the
context above accordingly.
"create database iwbase;"
(Please do not forget to use semi-colon to finish commands in the mysql shell)
"grant all on iwbase.* to 'iwuser'@'(hostname)' identified by '(password)';
(Please make sure that hostname corresponds to Tomcat's host machine)
"\. IWBaseSchema.sql"
(In the command above, we assume that IWBaseSchema.sql was saved with its original name and placed on the same directory from where you are calling mysql)
Now, suppose that members of METADATA-TEAM are responsible for the maintenance of ontology entries in IWBase. Thus, a Tomcat user named METADATA-TEAM must be defined in order to authenticate METADATA-TEAM. In fact, one Tomcat user must be defined for each team performing maintenance work and IWsupervisor and IWontuser roles must be granted to these Tomcat users.
Within $TOMCAT/conf/tomcat-users.xml, create Tomcat
users and assign IWsupervisor and IWontuser roles to them. For example, to register
METADATA-TEAM as a Tomcat user, add the following line:
<user name="METADATA-TEAM" password="passwd" roles="IWontuser, IWsupervisor" />
If you are familiar with Tomcat's "admin" application, feel free to use it to create roles and users.
The above steps will create the root team for the node.