You might need to replace the old IP address with the new IP address in the <connection-url> block of the file sourceforge-postgres-ds.xml, located in /usr/local/sourceforge/jboss/jboss-3.2.6/server/default/deploy.
[JBossManagedConnectionPool] Throwable while attempting to get a new connection: null org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.