Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D2FF09FA19A for ; Sat, 2 Dec 2006 08:35:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 09763-01 for ; Sat, 2 Dec 2006 08:35:22 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by postgresql.org (Postfix) with ESMTP id 49DEE9F9ED7 for ; Sat, 2 Dec 2006 08:35:27 -0400 (AST) Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id 70DF8410F45D for ; Sat, 2 Dec 2006 13:35:25 +0100 (CET) Received: from [213.157.5.184] (helo=[192.168.2.2]) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.107 #114) id 1GqU5V-00031g-00 for pgsql-jdbc@postgresql.org; Sat, 02 Dec 2006 13:35:25 +0100 Message-ID: <457172FC.9030602@web.de> Date: Sat, 02 Dec 2006 13:35:08 +0100 From: Wolfgang Rinnert User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: web-app not working after upgrade 7.4 to 8.1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Sender: wrinnert@web.de X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/33 X-Sequence-Number: 16265 Hello experts, I have recently upgraded my database from 7.4 to 8.1 and migrated all data. In order to be able to use my web-app, I replaced the old jdbc.jar with postgresql-8.1-407.jdbc3.jar in WEB-INF/lib/. Restarted Tomcat (4.1.31) - and later even redeployed the webapp. I keep getting no database connection - as if the postmaster were not started. Apparently I have ignored something basic - but no idea what to look at. This is actually my first fully working webapp using Struts and Tomcat on Linux - so maybe my problem is really a Tomcat issue. I have attached part of my coding of the Struts-Action, the exception occurs with the message "Presumably database is down." Any hint is apreciated. ----------------------------------- public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws Exception { HttpSession sitzg = request.getSession(); ConnectionPool pool = (ConnectionPool) sitzg.getAttribute( JDBC ); if (pool == null) { try { pool = new ConnectionPool( driver, dburl, username, password, initConn ); sitzg.setAttribute( JDBC, pool ); } catch ( SQLException e ) { System.out.println( e.getMessage() ); System.out.println( "Cannot connect to database " + database ); e.printStackTrace(); } catch ( ClassNotFoundException e ) { System.out.println( e.getMessage() ); System.out.println( "Falscher Treibername in den Properties: " + driver ); e.printStackTrace(); } if (pool == null) { throw new SQLException( "ERROR: NULL pool created! Presumably database is down." ); } ----------------------------------- Regards, Wolfgang Rinnert wrinnert@web.de