Dear Volodymyr,

I followed what Sean has suggested and everything was OK.
Could you please let us know some more basic information, e.g. what is your base OS? which version.

I recently install DSpace 1.6.2 in Ubuntu 10.04LTS with no problem.
The important steps are:

1. Install all necessary components
sudo apt-get install tomcat6 maven2 ant-optional postgresql sun-java6-jdk 
apache2 libapache2-mod-jk

2. Add a line like 'host dspace tomcat6 127.0.0.1/32 md5'
to /etc/postgresql/8.3/main/pg_hba.conf (or 
/etc/postgresql/8.4/main/pg_hba.conf)
In this case your DSpace database name is 'dspace' and DSpace instance is run by user 'tomcat6'

3. Create a user name 'tomcat6' for postgreSQL
sudo su postgres
createuser -U postgres -d -A -P tomcat6
exit
(Remember your password for tomcat6 here, you need it for step 11)

4. Modify 'shell' of user 'tomcat6' and create a database 'dspace'
sudo chsh -s /bin/bash tomcat6
sudo chown -R tomcat6.tomcat6 /usr/share/tomcat6
sudo su tomcat6
createdb -U tomcat6 -E UNICODE dspace
exit

5. Make sure that settings in /etc/default/tomcat6 look like this
TOMCAT6_USER=tomcat6
JAVA_HOME=/usr/lib/jvm/java-6-sun
CATALINA_BASE=/var/lib/tomcat6
JAVA_OPTS="-Xmx1024M -Xms64M -Dfile.encoding=UTF-8"
JSP_COMPILER=jikes
TOMCAT6_SECURITY=no
LOGFILE_DAYS=180

6. at URIEncoding="UTF-8" to a tag in /etc/tomcat6/server.xml so that it looks like:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8"   redirectPort="8443" />

7. Tell the system to use correct 'java'
sudo update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java

8. Test if tomcat6 runs correctly
sudo /etc/init.d/tomcat6 restart
or
sudo /etc/init.d/tomcat6 start

The following steps invlove installation of DSpace, and started from step 10, all commands must be run by user 'tomcat6'.
9. Create the install location (I chose /opt/dspace here)
sudo mkdir /opt/dspace
sudo chown tomcat6.tomcat6 /opt/dspace

10. Download DSpace source (I chose /usr/share/tomcat6 as my working directory, you can make your own choice)
sudo su tomcat6
cd
wget 
http://nchc.dl.sourceforge.net/sourceforge/dspace/dspace-1.6.2-src-release.tar.bz2
bzip2 -dc dspace-1.6.2-src-release.tar.bz2|tar xf -
(You should have DSpace source codes reside in ./dspace-1.6.2-src-release)

11. Modify some settings in ./dspace-1.6.2-src-release/dspace/config/dspace.cfg
dspace.dir=/opt/dspace
dspace.hostname={put your host name here}
dspace.baseUrl = http://${dspace.hostname}:8080
dspace.url = ${dspace.baseUrl}/jspui
dspace.oai.url = ${dspace.baseUrl}/oai
dspace.name="Your DSpace Instance Name"
db.name = postgres
db.url = jdbc:postgresql://localhost:5432/dspace
db.username = tomcat6
db.password = (Your password entered in step 3)
mail.server={set this if you have one}
mail.from.address=ds-nore...@domain.name
feedback.recipient=ds-ad...@domain.name
mail.admin=ds-ad...@domain.name
alert.recipient=ds-h...@domain.name
registration.notify=ds-h...@domain.name
handle.canonical.prefix = ${dspace.url}/handle/handle/
handle.prefix = 123456
handle.dir = ${dspace.dir}/handle-server
webui.submit.enable-cc = true
webui.submit.cc-jurisdiction = {your country, e.g. en}
webui.strengths.show = true
webui.strengths.cache = false
webui.feed.localresolve = true
webui.session.invalidate = false
webui.supported.locales = en, ja
xmlui.supported.locales = en, ja
xmlui.force.ssl = true
solr.log.server = http://localhost:8080/solr/statistics

12. Build the package. (You can run this command either in ./dspace-1.6.2-src-release/dspace or ./dspace-1.6.2-src-release)
mvn package

13. If there is no error in previous step, proceed to install your DSpace instance:
cd target/dspace-1.6.2-build.dir
ant fresh_install

The last 2 lines of step 13 should read like:
BUILD SUCCESSFUL
Total time: 2 minutes 0 seconds

Hope this helps.

Panyarak Ngamsritragul
Prince of Songkla University.

On Thu, 8 Jul 2010, Volodymyr_G wrote:

Yes, this error occur after ant fresh_install. I run this comand from
/target/dspace-build.dir/.
I recreate database, but this error:

   [java] Could not find the main class: org.dspace.search.DSIndexer.
Program will exit.

always appeared.
Please, Can you tell what does this error mean and how resolve this problem?

Thanks
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

------------------------------------------------------------------------------
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
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to