LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error in building Dspace...need help..... (https://www.linuxquestions.org/questions/linux-software-2/error-in-building-dspace-need-help-712174/)

Soby Thomas 03-17-2009 01:58 AM

Error in building Dspace...need help.....
 
Hii....

I have followed the installation steps provided in dspace site and i get the following error when i build dspace.

ant fresh_install
compile:

install_code:

build_wars:

init_configs:

setup_database:
[java] 2009-02-25 04:43:53,351 INFO org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
[java] 2009-02-25 04:43:53,372 INFO org.dspace.core.ConfigurationManager @ DSpace logging installed using log4j.properties
[java] 2009-02-25 04:43:53,463 FATAL org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
[java] org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user "dspace"
[java] at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(postgresql-jdbc-8.1.407.jar.so)
[java] at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(postgresql-jdbc-8.1.407.jar.so)
[java] at org.postgresql.core.ConnectionFactory.openConnection(postgresql-jdbc-8.1.407.jar.so)
[java] at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(postgresql-jdbc-8.1.407.jar.so)
[java] at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(postgresql-jdbc-8.1.407.jar.so)
[java] at org.postgresql.jdbc3.Jdbc3Connection.<init>(postgresql-jdbc-8.1.407.jar.so)
[java] at org.postgresql.Driver.makeConnection(postgresql-jdbc-8.1.407.jar.so)
[java] at org.postgresql.Driver.connect(postgresql-jdbc-8.1.407.jar.so)
[java] at java.sql.DriverManager.getConnection(libgcj.so.7rh)
[java] at java.sql.DriverManager.getConnection(libgcj.so.7rh)
[java] at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFacto ry.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(libgcj.so.7rh)
[java] at java.sql.DriverManager.getConnection(libgcj.so.7rh)
[java] at org.dspace.storage.rdbms.DatabaseManager.getConnection(DatabaseManager.java:718)
[java] at org.dspace.storage.rdbms.DatabaseManager.loadSql(DatabaseManager.java:1062)
[java] at org.dspace.storage.rdbms.InitializeDatabase.main(InitializeDatabase.java:71)

BUILD FAIILED
/dspace/build.xml:293:Java returned: 1


Help me out guys....!!!

Soby Thomas 03-17-2009 02:29 AM

Hello guys....i solved the above problem by editing the pg_hab.conf and commenting out the line host all all 127.0.0.1/32 ident sameuser

and i was able to build the dspace successfully.

But...i got error when i gave this command

[dspace@localhost ~]$ /dspace/bin/create-administrator
Exception in thread "main" java.lang.NoClassDefFoundError: org.dspace.administer.CreateAdministrator
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: org.dspace.administer.CreateAdministrator not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:/dspace/lib/activation.jar,file:/dspace/lib/bcmail-jdk14-135.jar,file:/dspace/lib/bcprov-jdk14-135.jar,file:/dspace/lib/commons-cli.jar,file:/dspace/lib/commons-codec-1.3.jar,file:/dspace/lib/commons-collections.jar,file:/dspace/lib/commons-dbcp.jar,file:/dspace/lib/commons-fileupload.jar,file:/dspace/lib/commons-io.jar,file:/dspace/lib/commons-lang-2.1.jar,file:/dspace/lib/commons-pool.jar,file:/dspace/lib/fontbox.jar,file:/dspace/lib/handle.jar,file:/dspace/lib/jakarta-poi.jar,file:/dspace/lib/jargon.jar,file:/dspace/lib/jaxen.jar,file:/dspace/lib/jdom.jar,file:/dspace/lib/jena.jar,file:/dspace/lib/jstl.jar,file:/dspace/lib/log4j.jar,file:/dspace/lib/lucene.jar,file:/dspace/lib/mail.jar,file:/dspace/lib/mets.jar,file:/dspace/lib/oaicat.jar,file:/dspace/lib/oro.jar,file:/dspace/lib/PDFBox.jar,file:/dspace/lib/postgresql-jdbc-8.1.407.jar,file:/dspace/lib/rome.jar,file:/dspace/lib/serializer.jar,file:/dspace/lib/servlet.jar,file:/dspace/lib/standard.jar,file:/dspace/lib/tm-extractors.jar,file:/dspace/lib/xalan.jar,file:/dspace/lib/xercesImpl.jar,file:/dspace/lib/xml-apis.jar,file:/dspace/config/], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)


All times are GMT -5. The time now is 07:19 PM.