check in [dspace-source] if you have the following files:
dev:/home/dspace/dspace-1.7.0-src-release# find ./ -name database_schema.sql
./dspace/etc/oracle/database_schema.sql
./dspace/etc/postgres/database_schema.sql
./dspace/target/dspace-1.7.0-build.dir/etc/oracle/database_schema.sql
./dspace/target/dspace-1.7.0-build.dir/etc/postgres/database_schema.sql
check also your dspace.cfg you should have set something like this:
##### Database settings #####
# Database name ("oracle", or "postgres")
#db.name = ${default.db.name}
db.name = postgres
#db.name = oracle
# URL for connecting to database
#db.url = ${default.db.url}
db.url = jdbc:postgresql://localhost:5432/dspace
# JDBC Driver
#db.driver = ${default.db.driver}
db.driver = org.postgresql.Driver
# Database username and password
#db.username = ${default.db.username}
#db.password = ${default.db.password}
db.username = postgres
db.password = postgres
# Schema name - if your database contains multiple schemas, you can
avoid problems with
# retrieving the definitions of duplicate object names by specifying
# the schema name here that is used for DSpace by uncommenting the
following entry
#db.schema = public
Kocisky
On 16 March 2011 07:56, Pius Maswaga <[email protected]> wrote:
> Hi all
> I have managed to install the dspace 1.7.0 on ubuntu 10.10 up to the
> following point, but from this stage i'm getting difficulties. Please i need
> your assistance on how to go about in rectifying the following error so that
> i can run dspace for my university.
> init_installation:
> init_configs:
> test_database:
> [java] 2011-03-16 10:47:16,494 INFO
> org.dspace.core.ConfigurationManager @ Loading system provided config
> property (-Ddspace.configuration): config/dspace.cfg
> [java] 2011-03-16 10:47:16,536 INFO
> org.dspace.core.ConfigurationManager @ Using default log4j provided log
> configuration,if unintended, check your dspace.cfg for (log.init.config)
> [java]
> [java] Attempting to connect to database:
> [java] - URL: jdbc:postgresql://localhost:5432/dspace
> [java] - Driver: org.postgresql.Driver
> [java] - Username: dspace
> [java] - Password: mudsp!@
> [java] - Schema: null
> [java]
> [java] Testing connection...
> [java] Connected successfully!
> [java]
> setup_database:
> [java] 2011-03-16 10:47:17,260 INFO
> org.dspace.core.ConfigurationManager @ Loading system provided config
> property (-Ddspace.configuration): config/dspace.cfg
> [java] 2011-03-16 10:47:17,289 INFO
> org.dspace.core.ConfigurationManager @ Using default log4j provided log
> configuration,if unintended, check your dspace.cfg for (log.init.config)
> [java] 2011-03-16 10:47:17,289 INFO
> org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
> [java] 2011-03-16 10:47:17,299 FATAL
> org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
> [java] java.io.FileNotFoundException: database_schema.sql (No such file
> or directory)
> [java] at java.io.FileInputStream.open(Native Method)
> [java] at java.io.FileInputStream.<init>(FileInputStream.java:106)
> [java] at java.io.FileInputStream.<init>(FileInputStream.java:66)
> [java] at java.io.FileReader.<init>(FileReader.java:41)
> [java] at
> org.dspace.storage.rdbms.InitializeDatabase.getScript(InitializeDatabase.java:119)
> [java] at
> org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:68)
> BUILD FAILED
> /dspace/dspace-1.7.0-src-release/dspace/target/dspace-1.7.0-build.dir/build.xml:765:
> Java returned: 1
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech