Hi
i am a student from germany and writing my master thesis.
About the thesis i should install and test the digital library DSpace at first.
I use the Linux System OpenSuSe 10.2 under VW Workstation. Because i have to
test it in my PC ,then try to install it in the server of my university.
My Problem is that i can't successfully install the DSpace with Ant(Build
failed). I have successfully installed the JDK5 ,Apache Ant, PostgreSQL8.25,
Tomcat5.5 and testet. all the things. Also did everything what i should do just
like the page of DSpace Installation wrote. Set UTF-8 in Server.xml, added the
JAVA_OPTS, changed the DSpace.cfg(/config) and in the Postgresql config for the
dspace.
Just one thing i am not sure whether i did right: Note that DSpace will need to
run as the same user as Tomcat, so you might want to install and run Tomcat as
a user called 'dspace'.
So i created a new user in tomcat-users.xml with the options (user:dspace and
password:dspace as admin,maanger)
I have tried to install the DSpace with two different Versions: 1,4 and 1.5 as
user dspace
It appears different building fault by using the ant to build the project.
I don't know what i should do now,please help me ,thank u!
Regards
Feng Wang
By dspace-1.4.2-source
BUILD FAILED
/usr/local/src/dspace-1.4.2-source/build.xml:120: Directory
/usr/local/src/dspace-1.4.2-source/build/classes creation was not successful
for an unknown reason
<target name="compile"
description="Compile the source code">
<mkdir dir="build/classes"/> ## here is the bulid.xml:120
<javac srcdir="src"
destdir="build/classes"
debug="on"
source="1.4"
target="1.4">
<include name="**/*.java"/>
<classpath refid="build.class.path"/>
</javac>
</target>
And by dspace-1.5-alpha-binary
Note that i have saw the common problem page and testet the postgresql with the
command: psql -U dspace -W -h localhost. It's no problem!
setup_database:
[java] 2007-11-28 12:20:50,289 INFO org.dspace.core.ConfigurationManager
@ Loading system provided config property (-Ddspace.configuration):
config/dspace.cfg
[java] 2007-11-28 12:20:50,344 INFO org.dspace.core.ConfigurationManager
@ Using default log4j provided log configuration,if uninitended, check your
dspace.cfg for (log.init.config)
[java] 2007-11-28 12:20:50,347 INFO
org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
[java] 2007-11-28 12:20:50,868 FATAL
org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
[java] org.postgresql.util.PSQLException: Connection refused. Check that
the hostname and port are correct and that the postmaster is accepting TCP/IP
connections.
[java] at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:122)
[java] at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
[java] at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:116)
[java] at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
[java] at
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
[java] at org.postgresql.Driver.makeConnection(Driver.java:369)
[java] at org.postgresql.Driver.connect(Driver.java:245)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:525)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:171)
[java] at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:48)
[java] at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
[java] at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:840)
[java] at
org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:175)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:525)
[java] at java.sql.DriverManager.getConnection(DriverManager.java:193)
[java] at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:488)
[java] at
org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:833)
[java] at
org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:99)
[java] Caused by: java.net.ConnectException: Connection refused
[java] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
[java] at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
[java] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
[java] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
[java] at java.net.Socket.connect(Socket.java:520)
[java] at java.net.Socket.connect(Socket.java:470)
[java] at java.net.Socket.<init>(Socket.java:367)
[java] at java.net.Socket.<init>(Socket.java:180)
[java] at org.postgresql.core.PGStream.<init>(PGStream.java:58)
[java] at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77)
[java] ... 17 more
BUILD FAILED
/usr/local/src/dspace-1.5-alpha-binary/build.xml:290: Java returned: 1
<target name="setup_database" description="Create database tables">
<!-- Load the Schema -->
<java classname="org.dspace.storage.rdbms.InitializeDatabase"
classpathref="class.path" fork="yes" failonerror="yes"> ## here is the
bulid.xml:290
<sysproperty key="log4j.configuration"
value="file:config/log4j-console.properties" />
<sysproperty key="dspace.log.init.disable" value="true"/>
<sysproperty key="dspace.configuration" value="${config}" />
<arg value="database_schema.sql" />
</java>
<!-- Add the browse tables -->
<java classname="org.dspace.browse.IndexBrowse" classpathref="class.path"
fork="yes" failonerror="yes">
<sysproperty key="log4j.configuration"
value="file:config/log4j-console.properties" />
<sysproperty key="dspace.log.init.disable" value="true"/>
<sysproperty key="dspace.configuration" value="${config}" />
<arg line="-t -x" />
</java>
</target>
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech