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
> --
> Sean Carte
> esAL Library Systems Manager
> +27 72 898 8775
> +27 31 373 2490
> fax: 0866741254
> http://esal.dut.ac.za/
>
> ------------------------------------------------------------------------------
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
Hi Sean
I did exactly as you wrote, but issued an error.
[java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] Caused by: java.lang.NullPointerException
[java] at java.io.File.<init>(File.java:222)
[java] at
org.apache.lucene.index.IndexReader.indexExists(IndexReader.java:484)
[java] at org.dspace.search.DSIndexer.<clinit>(DSIndexer.java:235)
[java] Could not find the main class: org.dspace.search.DSIndexer.
Program will exit.
BUILD FAILED
/opt/dspace/dspace-src/dspace/target/dspace-1.6.2-build.dir/build.xml:745:
Java returned: 1
Can you tell me what to do?
--
View this message in context:
http://old.nabble.com/internal-system-error-occurs-while-submitting-an-item-for-collection-tp22743840p29077932.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech