Sounds like your database server isn't running, or isn't configured correctly. Check the following settings in your dspace.cfg:
db.url db.username db.password If they are all set correctly for your postgres server, then you need to make sure that the server is running and accepting TCP/IP connections. If you're running linux, you can check this by running the following as root: lsof -i tcp:5432 If it gives no results, then postgres hasn't been started correctly. Cheers, Jim On Fri, May 18, 2007 at 06:45:17PM +0800, wang jiahui wrote: > When I started the Tomcat and browse the dspace, a database err occured. > The log file is like this: > 2007-05-18 16:42:44,506 WARN org.dspace.jsp @ > anonymous:no_context:database_error:Connection refused. Check that the > hostname and port are correct and that the postmaster is accepting TCP/IP > connections. > Connection refused. Check that the hostname and port are correct and that > the postmaster is accepting TCP/IP connections. > at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection( > AbstractJdbc1Connection.java:167) > at org.postgresql.Driver.connect(Driver.java:122) > at > > java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)Ljava.sql.Connection;(Unknown > Source) > at > > java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)Ljava.sql.Connection;(Unknown > Source) > at > org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection( > DriverManagerConnectionFactory.java:48) > at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject( > PoolableConnectionFactory.java:290) > at org.apache.commons.pool.impl.GenericObjectPool.borrowObject( > GenericObjectPool.java:771) > at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java > :175) > at > > java.sql.DriverManager.getConnection(Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)Ljava.sql.Connection;(Unknown > Source) > at > > java.sql.DriverManager.getConnection(Ljava.lang.String;)Ljava.sql.Connection;(Unknown > Source) > at org.dspace.storage.rdbms.DatabaseManager.getConnection( > DatabaseManager.java:446) > at org.dspace.core.Context.<init>(Context.java:103) > at org.dspace.app.webui.util.UIUtil.obtainContext(UIUtil.java:92) > at org.apache.jsp.index_jsp._jspService(index_jsp.java:59) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java > :133) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at org.apache.jasper.servlet.JspServletWrapper.service( > JspServletWrapper.java:311) > at org.apache.jasper.servlet.JspServlet.serviceJspFile( > JspServlet.java:301) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:284) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:204) > at org.apache.catalina.core.StandardWrapperValve.invoke( > StandardWrapperValve.java:256) > at org.apache.catalina.core.StandardValveContext.invokeNext( > StandardValveContext.java:151) > at org.apache.catalina.core.StandardPipeline.invoke( > StandardPipeline.java:564) > at org.apache.catalina.core.StandardContextValve.invokeInternal( > StandardContextValve.java:245) > at org.apache.catalina.core.StandardContextValve.invoke( > StandardContextValve.java:199) > at org.apache.catalina.core.StandardValveContext.invokeNext( > StandardValveContext.java:151) > at org.apache.catalina.core.StandardPipeline.invoke( > StandardPipeline.java:564) > at org.apache.catalina.core.StandardHostValve.invoke( > StandardHostValve.java:195) > at org.apache.catalina.core.StandardValveContext.invokeNext( > StandardValveContext.java:151) > at org.apache.catalina.valves.ErrorReportValve.invoke( > ErrorReportValve.java:164) > It seems that something was wrong with the hostname and port configuration. > Could someone tell me where to modify them? > Thanks > -- > çåæ > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech -- James Rutherford | Hewlett-Packard Limited registered Office: Research Engineer | Cain Road, HP Labs | Bracknell, Bristol, UK | Berks +44 117 312 7066 | RG12 1HN. [EMAIL PROTECTED] | Registered No: 690597 England The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error, you should delete it from your system immediately and advise the sender. To any recipient of this message within HP, unless otherwise stated you should consider this message and attachments as "HP CONFIDENTIAL". ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

