Hi, try to remove the line that says "port: 80" in your config.yaml.
Regards, Andreas. On Mar 8, 2011, at 12:23 , Simon Appelt wrote: > Hi GeoExt-List, > First my workbench: GeoServer Stable 2.0.2, GeoExt 1.0, OpenLayers 2.8, > geoserver-2.0.3-SNAPSHOT-printing-plugin > > 1. if i browse to > "http://localhost/geoserver/pdf/info.json?var=printCapabilities", i > retrieve an info.json with this content: > > printCapabilities={"scales":[{"name":"1:25.000","value":"25000"},{"name":"1:50.000","value":"50000"},{"name":"1:100.000","value":"100000"},{"name":"1:200.000","value":"200000"},{"name":"1:500.000","value":"500000"},{"name":"1:1.000.000","value":"1000000"},{"name":"1:2.000.000","value":"2000000"},{"name":"1:4.000.000","value":"4000000"}],"dpis":[{"name":"75","value":"75"},{"name":"150","value":"150"},{"name":"300","value":"300"}],"layouts":[{"name":"A4 > > portrait","map":{"width":440,"height":483},"rotation":true},{"name":"Legal","map":{"width":440,"height":483},"rotation":false}],"printURL":"http://localhost/geoserver/pdf/print.pdf","createURL":"http://localhost/geoserver/pdf/create.json"}; > > 2. My config.yaml includes > - !dnsMatch > host: tile.openstreetmap.org > port: 80 > > 3. Trying to get the GeoExt: "print-preview-osm.html" to work... an Error > appears: > Error while generating PDF: DocumentException: > org.mapfish.print.InvalidJsonValueException: spec.layers[0].baseURL has an > invalid value: http://tile.openstreetmap.org/ (spec.layers[0].baseURL has an > invalid value: http://tile.openstreetmap.org/) at > org.mapfish.print.map.readers.HTTPMapReader.checkSecurity(HTTPMapReader.java:64) > at > org.mapfish.print.map.readers.HTTPMapReader.<init>(HTTPMapReader.java:55) at > org.mapfish.print.map.readers.TileableMapReader.<init>(TileableMapReader.java:40) > at > org.mapfish.print.map.readers.OsmMapReader.<init>(OsmMapReader.java:41) at > org.mapfish.print.map.readers.OsmMapReader.create(OsmMapReader.java:78) [...] > > > 4. If i skip the OpenLayers.Layer.OSM() and Add for example > OpenLayers.Layer.WMS("Global Imagery", "http://labs.metacarta.com/wms/vmap0", > {layers: "basic"}); Everything, works fine! > > > Thanks for any Help, Best regards > Simon Appelt > > Am 07.03.2011 00:40, schrieb Andrew Parker: >> And to those who is following, here is the complete SLD for GeoServer >> 2.0.2 for reference: >> >> <?xml version="1.0" encoding="ISO-8859-1"?> >> <StyledLayerDescriptor version="1.0.0" >> xmlns= >> "http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" >> >> xmlns:xlink= >> "http://www.w3.org/1999/xlink" >> >> xmlns:xsi= >> "http://www.w3.org/2001/XMLSchema-instance" >> >> xsi:schemaLocation= >> "http://www.opengis.net/sld >> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" >> > >> <NamedLayer> >> <Name>USGS GW Elev</Name> >> <UserStyle> >> <Title>USGS GW Elev</Title> >> <Abstract>Groundwater elevation, feet mean sea level</Abstract> >> <FeatureTypeStyle> >> <!--FeatureTypeName>Feature</FeatureTypeName--> >> <Rule> >> <Name>GW Elev (ft msl)</Name> >> <MaxScaleDenominator>90e6</MaxScaleDenominator> >> <PointSymbolizer> >> <Graphic> >> <Mark> >> <WellKnownName>triangle</WellKnownName> >> <Fill> >> <CssParameter name="fill">#ff0000</CssParameter> >> </Fill> >> </Mark> >> <Size>9</Size> >> </Graphic> >> </PointSymbolizer> >> </Rule> >> </FeatureTypeStyle> >> <FeatureTypeStyle> >> <Rule> >> <MaxScaleDenominator>150000</MaxScaleDenominator> >> <TextSymbolizer> >> <Label> >> <ogc:Function name="if_then_else"> >> <ogc:Function name="isNull"> >> <ogc:PropertyName>gwelevft</ogc:PropertyName> >> </ogc:Function> >> <ogc:Literal></ogc:Literal> >> <ogc:Function name="numberFormat"> >> <ogc:Literal>#.#</ogc:Literal> >> <ogc:PropertyName>gwelevft</ogc:PropertyName> >> </ogc:Function> >> </ogc:Function> >> </Label> >> <Font> >> <CssParameter name="font-family">Arial</CssParameter> >> <CssParameter name="font-size">08</CssParameter> >> <CssParameter name="font-style">normal</CssParameter> >> <CssParameter name="font-weight">bold</CssParameter> >> </Font> >> <LabelPlacement> >> <PointPlacement> >> <AnchorPoint> >> <AnchorPointX>0</AnchorPointX> >> <AnchorPointY>0.5</AnchorPointY> >> </AnchorPoint> >> <Displacement> >> <DisplacementX> >> 7 >> </DisplacementX> >> <DisplacementY> >> 0 >> </DisplacementY> >> </Displacement> >> </PointPlacement> >> </LabelPlacement> >> <Halo> >> <Radius>2</Radius> >> <Fill> >> <CssParameter name="fill">#FFFFFF</CssParameter> >> </Fill> >> </Halo> >> <Fill> >> <CssParameter name="fill">#ff0000</CssParameter> >> </Fill> >> <VendorOption name="autoWrap">60</VendorOption> >> <VendorOption name="maxDisplacement">150</VendorOption> >> </TextSymbolizer> >> </Rule> >> </FeatureTypeStyle> >> </UserStyle> >> </NamedLayer> >> </StyledLayerDescriptor> >> >> >> > > _______________________________________________ > Users mailing list > [email protected] > http://www.geoext.org/cgi-bin/mailman/listinfo/users -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
