<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://gicl.cs.drexel.edu/wiki-data/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://gicl.cs.drexel.edu/wiki-data/index.php?title=Digital_Archiving_and_Retrieval_Tool_System_Administrator_Manual&amp;feed=atom&amp;action=history</id>
		<title>Digital Archiving and Retrieval Tool System Administrator Manual - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://gicl.cs.drexel.edu/wiki-data/index.php?title=Digital_Archiving_and_Retrieval_Tool_System_Administrator_Manual&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://gicl.cs.drexel.edu/wiki-data/index.php?title=Digital_Archiving_and_Retrieval_Tool_System_Administrator_Manual&amp;action=history"/>
		<updated>2013-05-26T04:58:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.2</generator>

	<entry>
		<id>http://gicl.cs.drexel.edu/wiki-data/index.php?title=Digital_Archiving_and_Retrieval_Tool_System_Administrator_Manual&amp;diff=9013&amp;oldid=prev</id>
		<title>M Pack: /* Tomcat Setup */</title>
		<link rel="alternate" type="text/html" href="http://gicl.cs.drexel.edu/wiki-data/index.php?title=Digital_Archiving_and_Retrieval_Tool_System_Administrator_Manual&amp;diff=9013&amp;oldid=prev"/>
				<updated>2007-04-06T20:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Tomcat Setup&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:31, 6 April 2007&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The &amp;quot;bin&amp;quot; directory of the JDK must be in the PATH.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The &amp;quot;bin&amp;quot; directory of the JDK must be in the PATH.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Source: http://www.coreservlets.com/Apache-Tomcat-Tutorial/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Source: http://www.coreservlets.com/Apache-Tomcat-Tutorial/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Edit &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;install\_dir&lt;/del&gt;/conf/server.xml and change the port attribute of the Connector element from 8080 to 80.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Edit &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;install_dir&lt;/ins&gt;/conf/server.xml and change the port attribute of the Connector element from 8080 to 80.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Turn on servlet reloading.&amp;#160; Edit &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;install\_dir&lt;/del&gt;/conf/context.xml&amp;#160; and change &amp;lt;Context&amp;gt; to &amp;lt;Context reloadable=''true''&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Turn on servlet reloading.&amp;#160; Edit &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;install_dir&lt;/ins&gt;/conf/context.xml&amp;#160; and change &amp;lt;Context&amp;gt; to &amp;lt;Context reloadable=''true''&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note: Tomcat 5.0 does not have a context.xml.Enable the invoker servlet. Go to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;install\_dir&lt;/del&gt;/conf/web.xml and uncomment the servlet and servlet-mapping elements that map the invoker servlet to /servlet/*. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note: Tomcat 5.0 does not have a context.xml.Enable the invoker servlet. Go to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;install_dir&lt;/ins&gt;/conf/web.xml and uncomment the servlet and servlet-mapping elements that map the invoker servlet to /servlet/*. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Copy the DATA server files into &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/del&gt;$&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;CATALINA\_HOME&lt;/del&gt;/webapps/ROOT/, leaving the existing files&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Copy the DATA server files into $&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;CATALINA_HOME&lt;/ins&gt;/webapps/ROOT/, leaving the existing files&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Tomcat5.0 setup&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Tomcat5.0 setup&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>M Pack</name></author>	</entry>

	<entry>
		<id>http://gicl.cs.drexel.edu/wiki-data/index.php?title=Digital_Archiving_and_Retrieval_Tool_System_Administrator_Manual&amp;diff=9012&amp;oldid=prev</id>
		<title>M Pack at 20:30, 6 April 2007</title>
		<link rel="alternate" type="text/html" href="http://gicl.cs.drexel.edu/wiki-data/index.php?title=Digital_Archiving_and_Retrieval_Tool_System_Administrator_Manual&amp;diff=9012&amp;oldid=prev"/>
				<updated>2007-04-06T20:30:54Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Tomcat Setup ==&lt;br /&gt;
Tomcat5.5+ setup&lt;br /&gt;
&lt;br /&gt;
Prerequisites: JDK (if you are only using the JRE Tomcat will not work)&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;bin&amp;quot; directory of the JDK must be in the PATH.&lt;br /&gt;
Source: http://www.coreservlets.com/Apache-Tomcat-Tutorial/&lt;br /&gt;
Edit install\_dir/conf/server.xml and change the port attribute of the Connector element from 8080 to 80.&lt;br /&gt;
Turn on servlet reloading.  Edit install\_dir/conf/context.xml  and change &amp;lt;Context&amp;gt; to &amp;lt;Context reloadable=''true''&amp;gt;.&lt;br /&gt;
Note: Tomcat 5.0 does not have a context.xml.Enable the invoker servlet. Go to install\_dir/conf/web.xml and uncomment the servlet and servlet-mapping elements that map the invoker servlet to /servlet/*. &lt;br /&gt;
&lt;br /&gt;
Copy the DATA server files into \$CATALINA\_HOME/webapps/ROOT/, leaving the existing files&lt;br /&gt;
&lt;br /&gt;
Tomcat5.0 setup&lt;br /&gt;
&lt;br /&gt;
cp ServletA.war /opt/tomcat5/webapps&lt;br /&gt;
&lt;br /&gt;
The servlet is now available via http://yourserver.foo:8080/ServletA/&lt;br /&gt;
&lt;br /&gt;
== PostgreSQL Setup ==&lt;br /&gt;
&lt;br /&gt;
PostgreSQL setup&lt;br /&gt;
&lt;br /&gt;
Install PostgreSQL with the JDBC Driver (enabled by default) and start the server&lt;br /&gt;
-If you're installing it on Windows, be sure to install it as a service with a different user name (this is the default option when you are installing PostgreSQL on Windows)&lt;br /&gt;
-Give the super user a password&lt;br /&gt;
--fj4bh4mfck4nr&lt;br /&gt;
Look in the jdbc directory of your PostgreSQL installation and copy postgresql-8.1-405.jdbc3.jar or a file with a similar name to &amp;quot;shared/lib&amp;quot; (recommended, since this is for a developer's specific applications) or &amp;quot;common/lib&amp;quot; of your Tomcat installation&lt;br /&gt;
Restart the Tomcat server&lt;br /&gt;
OR if you didn't install the JDBC drivers, download the correct one from http://jdbc.postgresql.org/download.html&lt;br /&gt;
&lt;br /&gt;
Add the ''bin'' directory of PostgreSQL to the PATH.&lt;br /&gt;
&lt;br /&gt;
If the superuser name is postgres:&lt;br /&gt;
&amp;gt; createuser -SDPU postgres&lt;br /&gt;
(sometimes it may be necessary to ''su - postgres'')&lt;br /&gt;
-S, --no-superuser        role will not be superuser&lt;br /&gt;
-D, --no-createdb         role cannot create databases&lt;br /&gt;
-P, --pwprompt            assign a password to new role&lt;br /&gt;
-U, --username=USERNAME   user name to connect as (not the one to create)&lt;br /&gt;
Enter name of role to add: DART&lt;br /&gt;
Enter password for new role:ajf33mnq1&lt;br /&gt;
Enter it again:ajf33mnq1&lt;br /&gt;
Shall the new role be allowed to create more new roles? (y/n) n&lt;br /&gt;
{enter in postgres password}&lt;br /&gt;
CREATE ROLE&lt;br /&gt;
&lt;br /&gt;
If that does not work, execute: sudo -u postgres createuser -SDP&lt;br /&gt;
&lt;br /&gt;
&amp;gt; createdb -E utf-8 -O DART -U postgres DART ''Database for DART''&lt;br /&gt;
{enter in postgres password}&lt;br /&gt;
{enter in postgres password again}&lt;br /&gt;
&lt;br /&gt;
If that does not work, execute: sudo -u postgres createdb -E utf-8 -O DART DART &amp;quot;Database for DART&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== What to do after Tomcat and PostgreSQL installation ==&lt;br /&gt;
&lt;br /&gt;
Aquire the DART tarball containing all the server release files. Extract these files to Tomcat's ROOT directory.&lt;br /&gt;
&lt;br /&gt;
In your browser, navigate to the servlet page. You will be presented with the installation page. Provide the required information: database connection variables and password for the super admin user.&lt;br /&gt;
&lt;br /&gt;
Log in as the super admin user with the username &amp;quot;admin&amp;quot; and password specified in the installation.&lt;br /&gt;
&lt;br /&gt;
As a super admin, here are a few basic tasks you can perform:&lt;br /&gt;
1. Create users&lt;br /&gt;
2. Create projects&lt;br /&gt;
3. View logs&lt;br /&gt;
4. Install/Uninstall application&lt;br /&gt;
&lt;br /&gt;
It is recommended you begin to create other users and projects within the system. Remember not to give administrator access to all users, just users who you trust to correctly create projects and manage other users.&lt;br /&gt;
&lt;br /&gt;
== Adding Storage Resources ==&lt;br /&gt;
&lt;br /&gt;
Virtually any storage medium can be implemented using it's Java API. In order to use a custom storage resource follow the following steps:&lt;br /&gt;
&lt;br /&gt;
1 Create a class which implements the StorageResource interface. This class is what will input/output to the storage resource. &lt;br /&gt;
&lt;br /&gt;
1.1 Compile it into a .class file. You will need the StorageResource.java file to compile. &lt;br /&gt;
1.2 Put the .java file in {DART_HOME]\Server\Web Application\Servlet Files\org\GICL\Dart\io\.&lt;br /&gt;
1.3 Put the .class file in {TOMCAT_HOME}\webapps\ROOT\WEB-INF\classes\org\GICL\Dart\io\.&lt;br /&gt;
&lt;br /&gt;
2 Open Config.xml located in the DART &amp;quot;Server&amp;quot; directory. Under the &amp;lt;storageResources&amp;gt; element add your storage resource in the following format:&lt;br /&gt;
&amp;lt;resource name=&amp;quot;The Name&amp;quot; class=&amp;quot;YourResourceStroageResource&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upon saving Config.xml, the storage resource is now available for use without the need to recompile.&lt;/div&gt;</summary>
		<author><name>M Pack</name></author>	</entry>

	</feed>