Difference between revisions of "SUNScholar/Install DSpace/S08"
(Created page with "==Step 8. Enable the DSpace Java webapps on the Java Tomcat webapp server== The Dspace webapp has been compiled in the '''/home/dspace/webapps''' folder but Tomcat only serves up...") |
|||
| Line 41: | Line 41: | ||
ln -s /home/dspace/webapps/jspui ROOT | ln -s /home/dspace/webapps/jspui ROOT | ||
| − | + | ===Step 8.2 Restart Tomcat Server=== | |
| + | Type the following. | ||
| + | sudo /etc/init.d/tomcat6 restart | ||
| + | |||
'''[[SUNScholar/Install Dspace/S09|Proceed to the next step]]''' | '''[[SUNScholar/Install Dspace/S09|Proceed to the next step]]''' | ||
Revision as of 11:18, 3 August 2012
Step 8. Enable the DSpace Java webapps on the Java Tomcat webapp server
The Dspace webapp has been compiled in the /home/dspace/webapps folder but Tomcat only serves up webapps in the /var/lib/tomcat6/webapps folder.
So, how do we get all the files into the Tomcat webapps folder ?
There are several methods, but we are going to set it up so that if you change anything in the DSpace /home/dspace/webapps folder and re-compile then the changes automatically occur in the Tomcat /var/lib/tomcat6/webapps folder.
To achieve this become the root user by typing as follows:
sudo -i
Now we create the shortcuts to the DSpace webapps in the default Tomcat webapps folder by typing as follows:
cd /var/lib/tomcat6/webapps
ln -s /home/dspace/webapps/oai
ln -s /home/dspace/webapps/sword
ln -s /usr/share/tomcat6-admin/manager
Step 8.1 Configure the default ROOT webapp
DSpace has two web interfaces, the XMLUI and the JSPUI. This procedure allows you to select which inteface will be used as the ROOT webapp. In other words, the one that does not need a /XMLUI or a /JSPUI URL addition.
Start by removing the default Tomcat ROOT webapp with the following command:
sudo rm -rf /var/lib/tomcat6/webapps/ROOT
Then apply one of the following.
- Please note: You can only choose one option.
Option A: Type the following to make the XMLUI the default interface.
sudo -i
cd /var/lib/tomcat6/webapps
ln -s /home/dspace/webapps/xmlui ROOT
Option B: Type the following to make the JSPUI the default interface.
sudo -i
cd /var/lib/tomcat6/webapps
ln -s /home/dspace/webapps/jspui ROOT
Step 8.2 Restart Tomcat Server
Type the following.
sudo /etc/init.d/tomcat6 restart
Proceed to the next step