A million thanks to Sean ! That's it ! Now it works ! The problem was the setting of /etc/default/tomcat6 which is usually ignored in any installation instruction. Maybe it is worth to just add a few lines about that, don't you think so ? At least it is very useful for ones who do not know about tomcat before.
I also noticed that (I said this before) tomcat6 comes together with openjdk which can be substitution of sun-java6-jdk, but I have not tested it yet. Thanks to everyone who has been willing to help. Panyarak On Fri, 3 Apr 2009, Sean Carte wrote: > 2009/4/3 Panyarak Ngamsritragul <[email protected]>: >> Could someone who successfully installed DSpace in Ubuntu 8.10 be kind >> enough to document the installation instructions and post to this list ? > > Here are my install notes ... definitely a work in progress. > > (One thing I have found is that problems may arise if your JAVA_HOME > in /etc/default/tomcat5.5 is different to the one actually in use > (java -version).) > > 1. Maven > sudo aptitude install maven2 > 2. Tomcat > sudo aptitude install tomcat5.5 > 3. DSpace > sudo su - > useradd -m dspace > mv /home/seanc/dspace-*.gz /home/dspace/ > su - postgres > createuser -U postgres -d -A -P dspace > exit > su - dspace > createdb -U dspace -E UNICODE dspace > tar xvzf dspace-*tar.gz > ln -s dspace-1.5.1-release/dspace/ dspace-src > cd dspace-src > vi config/dspace.cfg > dspace.dir -- must be set to the [dspace] (installation) directory. > dspace.url -- complete URL of this server's DSpace home page. > dspace.hostname -- fully-qualified domain name of web server. > dspace.name -- "Proper" name of your server, e.g. "My Digital Library". > db.password -- the database password you entered in the previous step. > mail.server -- fully-qualified domain name of your outgoing mail server. > mail.from.address -- the "From:" address to put on email sent by DSpace. > feedback.recipient -- mailbox for feedback mail. > mail.admin -- mailbox for DSpace site administrator. > alert.recipient -- mailbox for server errors/alerts > registration.notify -- mailbox for emails when new users register (optional) > > exit > mkdir /dspace > chown dspace.dspace /dspace > su - dspace > cd dspace-src > mvn package > cd target/dspace-1.5.1-build.dir/ > ant fresh_install > /dspace/bin/create-administrator > exit > > # set context path for /dspace/webapps/jspui and /dspace/webapps/oai > vi /var/lib/tomcat5.5/conf/server.xml > <Host name="localhost" appBase="webapps" > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > > <!-- DEFINE A CONTEXT PATH FOR DSpace XML User Interface --> > <Context path="/xmlui" docBase="/dspace/webapps/xmlui" debug="0" > reloadable="true" cachingAllowed="false" > allowLinking="true"/> > > <!-- DEFINE A CONTEXT PATH FOR DSpace JSP User Interface --> > <Context path="/jspui" docBase="/dspace/webapps/jspui" debug="0" > reloadable="true" cachingAllowed="false" > allowLinking="true"/> > > <!-- DEFINE A CONTEXT PATH FOR DSpace OAI User Interface --> > <Context path="/oai" docBase="/dspace/webapps/oai" debug="0" > reloadable="true" cachingAllowed="false" > allowLinking="true"/> > > vi /etc/default/tomcat5.5 > TOMCAT5_USER=dspace > JAVA_HOME=/usr/lib/jvm/java-6-sun > CATALINA_BASE=/var/lib/tomcat5.5 > JAVA_OPTS="-Xmx1024M -Xms64M -Dfile.encoding=UTF-8" > JSP_COMPILER=jikes > TOMCAT5_SECURITY=no > > chown -R dspace /etc/tomcat5.5/ /var/log/tomcat5.5/ > /var/lib/tomcat5.5/ /var/cache/tomcat5.5/ > > /etc/init.d/tomcat5.5 start > tail -f /dspace/log/dspace.log > > Sean > -- Panyarak Ngamsritragul Department of Mechanical Engineering Prince of Songkla University. -- This message has been scanned for viruses and dangerous content by MailScanner. ------------------------------------------------------------------------------ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

