MDSR's RDFS and OWL support depends on various JAR files borrowed from pellet-1.5.2.zip.
mdsr.properties
if you choose to use a different port number for tomcat.
FEDORA_HOME, CATALINA_HOME, JAVA_HOME environment variables have been set.
FEDORA_HOME is the directory where the installer will install fedora repository.
This directory will contain the 'server', 'client',and others directories after the installation.
You do not not need to set
$FEDORA_HOME/server/bin and $FEDORA_HOME/client/bin in your $PATH
unless you want to use the .sh file in these directories.
$FEDORA_HOME/server/config/fedora.fcfg to your own database name.
mysql -u root -p
CREATE DATABASE fedora22;
GRANT ALL ON fedora22.* TO username@localhost
IDENTIFIED BY 'password';
GRANT ALL ON fedora22.* to username@'%' IDENTIFIED BY 'password';
sqlplus sys/PASSWORD@fedora22 as sysdba
CREATE TABLESPACE fedora_tblspace DATAFILE
'/var/lib/oracle/fedora_tblspace.dat'
SIZE 1024M REUSE AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED SEGMENT SPACE MANAGEMENT AUTO;
CREATE USER username IDENTIFIED BY password DEFAULT TABLESPACE fedora_tblspace;
GRANT ALL PRIVILEGES TO username;
CREATE ROLE "username" LOGIN PASSWORD 'password';
CREATE DATABASE "fedora22" WITH ENCODING='UTF8'
OWNER="username";
java -jar fedora-2.2.1-installer.jar
Installation type
-----------------
Options : quick, custom, client
Enter a value ==> custom
Fedora home directory
---------------------
Enter a value [default is /home/user/apps/fedora] ==> ENTER
WARNING: /home/user/apps/fedora is not empty.
WARNING: Overwrite? (yes or no) [default is no] ==> yes
Fedora administrator password
-----------------------------
Enter the password to use for the Fedora administrator (fedoraAdmin) account.
Enter a value ==> password [Enter your password here; e.g. 'fedoraAdmin']
Fedora server host
------------------
Enter a value [default is localhost] ==> ENTER
Authentication requirement for API-A
------------------------------------
Options : true, false
Enter a value [default is false] ==> ENTER
SSL availability
----------------
Options : true, false
Enter a value [default is true] ==> false
Servlet engine
--------------
Options : included, existingTomcat, other
Enter a value [default is included] ==> existingTomcat
Tomcat home directory (This should be retrieved from $CATALINA_HOME)
---------------------
Enter a value [default is /home/user/apps/tomcat-5.5.25] ==>
Tomcat HTTP port
----------------
Enter a value [default is 8080] ==> ENTER
Tomcat shutdown port
--------------------
Enter a value [default is 8005] ==> ENTER
Policy enforcement enabled
--------------------------
Options : true, false
Enter a value [default is true] ==> ENTER
Database
--------
Options : mckoi, mysql, oracle, postgresql, included
Enter a value ==> mysql
MySQL JDBC driver
-----------------
Enter a value [default is included] ==> ENTER
Database username
-----------------
Enter a value ==> username (This should be the same username as in the database scripts)
Database password
-----------------
Enter a value ==> password (This should be the same password as in the database scripts)
JDBC URL
--------
Enter a value [default is jdbc:mysql://localhost/fedora22?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true] ==> ENTER
JDBC DriverClass
----------------
Enter a value [default is com.mysql.jdbc.Driver] ==> ENTER
Successfully connected to MySQL
Deploy local services and demos
-------------------------------
Options : true, false
Enter a value [default is true] ==> false
Preparing FEDORA_HOME...
Configuring fedora.fcfg
Installing beSecurity
Will not overwrite existing /home/user/apps/tomcat-5.5.25/conf/server.xml.
Wrote example server.xml to: /home/user/apps/temp/install/server.xml
Preparing fedora.war...
Processing web.xml
Deploying fedora.war...
Installation complete.
'fedora.war'
in the $CATALINA_HOME/webapps directory, together with 'server', and
'client' directories in $FEDORA_HOME.
Any directories in $Fedora_HOME other than 'server', 'client' and
'data' (which will be created when Fedora is first started) may be deleted.
$FEDORA_HOME/server/config/fedora.fcfg
and change the following lines:
<param name="maxResults" value="100">.
catalina.sh to launch Tomcat, you can set the
relevant Java properties along the following lines:
export JAVA_OPTS="-Dhttp.proxyHost=your.proxy.host \
-Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=localhost"
The last property is essential if you use a http://localhost:8080 as the base
URL for Fedora. For more details on Java's proxy configuration properties, refer to the
Sun Java documentation.
Web access is used by some of MDSR's schema validation components. If the proxy settings are incorrect, uploading of schemas to the MDSR is likely to fail.
mdsr.war file to $CATALINA_HOME/webapps and start tomcat.mdsr.war has deployed and started without error. This can be verified
by examining the log file located in $CATALINA_HOME/webapps/mdsr/logs/:
$FEDORA_HOME/server/logs/fedora.log. You should
be able to see similar lines like the following if everything is running well.
$CATALINA_HOME/webapps/mdsr/WEB-INF/mdsr.properties so it has the correct values.
url.fedora.host property must match the base URL for your Fedora
repository; e.g. "http://localhost:8080/fedora".url.mdsr.host property must match the base URL for your MDSR;
e.g. "http://localhost:8080/mdsr"fedora.username and fedora.password are used by MDSR
for making Fedora API-M calls. We recommend that you use the 'fedoraAdmin' user name
and the fedora admin password that you configured above.(([A-Za-z0-9])|-|\\.|~|_|(%[0-9A-F]{2}))+(([A-Za-z0-9])|-|\\.|~|_|(%[0-9A-F]{2}))+([A-Za-z0-9_.-])+
(([A-Za-z0-9])|-|\\.|~|_|(%[0-9A-F]{2}))+
([A-Za-z0-9_.-])+
(([A-Za-z0-9])|-|\\.|~|_|(%[0-9A-F]{2}))+(([A-Za-z0-9])|-|\\.|~|_|(%[0-9A-F]{2}))+([A-Za-z0-9_.-])+([A-Za-z0-9_.-])+. The value "ALL" tells the servlet
to list all datastreams.JAVA_OPTS variable used by catalina.sh or catalina.batJAVA_OPTS;
$FEDORA_HOME/data,
you must drop Fedora's database i.e. 'fedora22' and recreate it again.
-oOo-