Dear DSpace users,
I would like to know whether I can change the default database name and
database username that is given in dspace.cfg file. I'm trying to install
another instance of dspace with a different postgres user and database name
(dspace162). How shall I configure dspace.cfg so that I can run ant
fresh_install successfully. At present when I'm using the changed database
name and username, the ant fresh_install gets failed. Following is the
error:
Buildfile: build.xml
init_installation:
init_configs:
[copy] Copying 1 file to /data/dspace162/dspaceinstall_162/config
test_database:
[java] 2010-12-27 16:52:29,534 INFO
org.dspace.core.ConfigurationManager @ Loading system provided config
property (-Ddspace.configuration): config/dspace.cfg
[java] 2010-12-27 16:52:29,549 WARN
org.dspace.core.ConfigurationManager @ Interpolation failed in value of
property "db.driver", there is no property named "default.db.driver"
[java] 2010-12-27 16:52:29,549 INFO
org.dspace.core.ConfigurationManager @ Using default log4j provided log
configuration,if uninitended, check your dspace.cfg for (log.init.config)
[java] Attempting to connect to database:
[java] - URL: jdbc:postgresql://localhost:5432/dspace162
[java] - Driver:
[java] - Username: dspace162
[java] - Password: dspace
[java] - Schema: null
[java] Testing connection...
[java] 2010-12-27 16:52:29,551 WARN
org.dspace.storage.rdbms.DatabaseManager @ Exception initializing DB pool
[java] java.lang.ClassNotFoundException:
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:169)
[java] at
org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1587)
[java] at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:618)
[java] at
org.dspace.storage.rdbms.DatabaseManager.main(DatabaseManager.java:1810)
[java] Error:
[java] - java.sql.SQLException: java.lang.ClassNotFoundException:
[java] Please see the DSpace documentation for assistance.
BUILD FAILED
/data/dspace162/dspace162-src/dspace/target/dspace-1.6.2-build.dir/build.xml:601:
Java returned: 1
My pg_hba.conf settings are as follows:
#Database administrative login by UNIX sockets
local all postgres trust
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 md5
#host dspace dspace 127.0.0.1 255.255.255.255 md5
Looking forward for your help. Thanks in anticipation.
With best regards
Anamika
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech