Hello, Emmanuel - I have confirmed that localhost resolves to ::1, and that my PostGIS database allows connections from anywhere ( pg_hba.conf contains the line host all all 0.0.0.0/0 trust, and postgresql.conf contains the line listen_addresses = '*' ).
Ben - I checked my mapping's schemaURI and realised that it was pointing to an invalid location. I have now corrected the path to the .xsd schema. Thanks both for your assistance, the "Connection refused" error no longer occurs :-) Best Regards, Ryan -----Original Message----- From: Ben Caradoc-Davies [mailto:[email protected]] Sent: 04 June 2013 03:23 To: Ryan Moody Cc: [email protected]; Ian Turton; Neil Kirk Subject: Re: [Geoserver-users] PostGIS Connection Refused Aha! Here is the culprit. It is not the connection to your database that is failing, but GeoServer's attempt to download your application schemas. What is your mapping schemaUri? When a GeoServer app-schema data store is loaded for the first time, it will download and cache all required application schemas in app-schema-cache in your data directory: http://docs.geoserver.org/latest/en/user/data/app-schema/app-schema-resolution.html Either the web server is refusing connections from the GeoServer or a firewall is blocking it. A tool like nmap ("nmap -p 80 www.example.org") can help diagnose this. If your schema is not published you can instead use an OASIS catalog, as described in the link above. The current development GeoServer prints better diagnostic information about which schema has caused the problem; sorry, this is not in 2.3.2. Kind regards, Ben. On 31/05/13 16:54, Ryan Moody wrote: > Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection > refused: connect > at org.geotools.xml.AppSchemaCache.download(AppSchemaCache.java:282) > at org.geotools.xml.AppSchemaCache.download(AppSchemaCache.java:212) > at org.geotools.xml.AppSchemaCache.download(AppSchemaCache.java:202) > at > org.geotools.xml.AppSchemaCache.resolveLocation(AppSchemaCache.java:307) > at > org.geotools.xml.AppSchemaResolver.resolve(AppSchemaResolver.java:201) > at > org.geotools.data.complex.config.EmfComplexFeatureReader.findSchemaNamespace(EmfComplexFeatureReader.java:138) > at > org.geotools.data.complex.config.AppSchemaDataAccessConfigurator.parseGmlSchemas(AppSchemaDataAccessConfigurator.java:563) > at > org.geotools.data.complex.config.AppSchemaDataAccessConfigurator.buildMappings(AppSchemaDataAccessConfigurator.java:196) > at > org.geotools.data.complex.config.AppSchemaDataAccessConfigurator.buildMappings(AppSchemaDataAccessConfigurator.java:175) > at > org.geotools.data.complex.AppSchemaDataAccessFactory.createDataStore(AppSchemaDataAccessFactory.java:96) > at > org.vfny.geoserver.util.DataStoreUtils.getDataAccess(DataStoreUtils.java:107) > at > org.geoserver.catalog.ResourcePool.getDataStore(ResourcePool.java:539) -- Ben Caradoc-Davies <[email protected]> Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
