Thank you Kostas!
I've checked dspace.cfg and I noticed that in my laptop, the database setting
appears 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 = dspace
#db.password = dspace
And in my desktop, the database setting is like:
##### Database settings #####
# Database name ("oracle", or "postgres")
db.name = postgres
#db.name = postgres
#db.name = oracle
# URL for connecting to database
db.url = jdbc:postgresql://localhost:5432/dspace
#db.url = jdbc:postgresql://localhost:5432/dspace
# JDBC Driver
db.driver = org.postgresql.Driver
#db.driver = org.postgresql.Driver
# Database username and password
db.username = dspace
db.password = dspace
#db.username = dspace
#db.password = dspace
At last I modifed the dspace.cfg in my laptop as the file in my desktop, and it
works!!!
Thank you again for this, and I hope this info could be useful to other
beginners.
Best regards,
Fei
From: [email protected]
Date: Thu, 25 Jun 2009 15:53:52 +0300
Subject: Re: [Dspace-tech] Error of installation
To: [email protected]
CC: [email protected]
Fei,
You did a fresh install I guess.
If so, did you have any errors during "ant fresh_install"?
The error says that there is a problem with the database communication with the
application you ran.
Check that the database for DSpace exists (I think there is a pgadmin3 tool for
windows, or use "psql") and is not empty (it should have some tables).
If the DSpace db has nothing in it, you probably have a configuration error
(hostname, user/pass, blocked access to the DB...)
Double/triple check the configuration settings (dspace.cfg) and try again. Most
of the Database/hostname settings are at the begining of dspace.cfg
Kostas Paraskevopoulos
Κωνσταντίνος Παρασκευόπουλος
Yogi Berra - "I never said most of the things I said."
On Thu, Jun 25, 2009 at 13:07, Fei Teng <[email protected]> wrote:
Hi,
I've installed DSpace in my desktop successfully. But when I wanted to install
it in my laptop, in the last step I got this message:
C:\DSpace\bin>dsrun org.dspace.administer.CreateAdministrator
Using DSpace installation in: C:\DSpace
Exception in thread "main" java.sql.SQLException:
java.lang.ClassNotFoundException:
at
org.dspace.storage.rdbms.DatabaseManager.initialize(DatabaseManager.java:1625)
at
org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:548)
at org.dspace.core.Context.<init>(Context.java:128)
at
org.dspace.administer.CreateAdministrator.<init>(CreateAdministrator.java:125)
at
org.dspace.administer.CreateAdministrator.main(CreateAdministrator.java:94)
C:\DSpace\bin>
I've done exactely the same procedure in the laptop as in the desktop, and I've
checked all the variables and files and even the DSpace files are well
installed. However I still couldn't create an administrator. I use Java
1.6.0_13, PostgreSQL 8.3. The programs are fine because I also installed Fedora
Commons which uses the same database, and Fedora works well. If you have met
this kind of problem, please help me on it.
Thanks a lot!
Best regards,
Fei
Windows LiveT: Keep your life in sync. Check it out!
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces.
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech