<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi GeoExt-List,<br>
    First my workbench: GeoServer Stable 2.0.2, GeoExt 1.0, OpenLayers
    2.8, geoserver-2.0.3-SNAPSHOT-printing-plugin<br>
    <br>
    1. if i browse to <span><a moz-do-not-send="true">"http://localhost/geoserver/pdf/info.json?var=printCapabilities</a></span>",

    i retrieve an info.json with this content:<br>
    <br>
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":<a
      class="moz-txt-link-rfc2396E"
      href="http://localhost/geoserver/pdf/print.pdf">"http://localhost/geoserver/pdf/print.pdf"</a>,"createURL":<a
      class="moz-txt-link-rfc2396E"
      href="http://localhost/geoserver/pdf/create.json">"http://localhost/geoserver/pdf/create.json"</a>};<br>
    &nbsp; <br>
    2. My config.yaml&nbsp; includes &nbsp; <br>
    - !dnsMatch<br>
    &nbsp;&nbsp;&nbsp; host: tile.openstreetmap.org<br>
    &nbsp;&nbsp;&nbsp; port: 80 <br>
    <br>
    3. Trying to get the GeoExt: "print-preview-osm.html" to work... an
    Error appears:<br>
    Error while generating PDF:
    DocumentException: org.mapfish.print.InvalidJsonValueException:
    spec.layers[0].baseURL has an invalid value:
    <a class="moz-txt-link-freetext" href="http://tile.openstreetmap.org/">http://tile.openstreetmap.org/</a> (spec.layers[0].baseURL has an
    invalid value: <a class="moz-txt-link-freetext" href="http://tile.openstreetmap.org/">http://tile.openstreetmap.org/</a>) at
    org.mapfish.print.map.readers.HTTPMapReader.checkSecurity(HTTPMapReader.java:64)

    at
    org.mapfish.print.map.readers.HTTPMapReader.&lt;init&gt;(HTTPMapReader.java:55)

    at
    org.mapfish.print.map.readers.TileableMapReader.&lt;init&gt;(TileableMapReader.java:40)

    at
    org.mapfish.print.map.readers.OsmMapReader.&lt;init&gt;(OsmMapReader.java:41)

    at
    org.mapfish.print.map.readers.OsmMapReader.create(OsmMapReader.java:78)
    [...]<br>
    <br>
    <br>
    4. If i skip the OpenLayers.Layer.OSM() and Add for example
    OpenLayers.Layer.WMS("Global Imagery",
    <a class="moz-txt-link-rfc2396E" href="http://labs.metacarta.com/wms/vmap0">"http://labs.metacarta.com/wms/vmap0"</a>, {layers: "basic"});
    Everything, works fine!<br>
    <br>
    <br>
    Thanks for any Help, Best regards<br>
    Simon Appelt<br>
    <br>
    Am 07.03.2011 00:40, schrieb Andrew Parker:
    <blockquote cite="mid:4D741B5F.7050601@source3.com" type="cite">
      <pre wrap="">And to those who is following, here is the complete SLD for GeoServer 
2.0.2 for reference:

&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
&lt;StyledLayerDescriptor version="1.0.0" 
xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sld">"http://www.opengis.net/sld"</a> xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>
   xmlns:xlink=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a> 
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
   xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sldhttp://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">"http://www.opengis.net/sld 
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"</a>&gt;
&lt;NamedLayer&gt;
&lt;Name&gt;USGS GW Elev&lt;/Name&gt;
&lt;UserStyle&gt;
&lt;Title&gt;USGS GW Elev&lt;/Title&gt;
&lt;Abstract&gt;Groundwater elevation, feet mean sea level&lt;/Abstract&gt;
&lt;FeatureTypeStyle&gt;
&lt;!--FeatureTypeName&gt;Feature&lt;/FeatureTypeName--&gt;
&lt;Rule&gt;
&lt;Name&gt;GW Elev (ft msl)&lt;/Name&gt;
&lt;MaxScaleDenominator&gt;90e6&lt;/MaxScaleDenominator&gt;
&lt;PointSymbolizer&gt;
&lt;Graphic&gt;
&lt;Mark&gt;
&lt;WellKnownName&gt;triangle&lt;/WellKnownName&gt;
&lt;Fill&gt;
&lt;CssParameter name="fill"&gt;#ff0000&lt;/CssParameter&gt;
&lt;/Fill&gt;
&lt;/Mark&gt;
&lt;Size&gt;9&lt;/Size&gt;
&lt;/Graphic&gt;
&lt;/PointSymbolizer&gt;
&lt;/Rule&gt;
&lt;/FeatureTypeStyle&gt;
&lt;FeatureTypeStyle&gt;
&lt;Rule&gt;
&lt;MaxScaleDenominator&gt;150000&lt;/MaxScaleDenominator&gt;
&lt;TextSymbolizer&gt;
&lt;Label&gt;
&lt;ogc:Function name="if_then_else"&gt;
&lt;ogc:Function name="isNull"&gt;
&lt;ogc:PropertyName&gt;gwelevft&lt;/ogc:PropertyName&gt;
&lt;/ogc:Function&gt;
&lt;ogc:Literal&gt;&lt;/ogc:Literal&gt;
&lt;ogc:Function name="numberFormat"&gt;
&lt;ogc:Literal&gt;#.#&lt;/ogc:Literal&gt;
&lt;ogc:PropertyName&gt;gwelevft&lt;/ogc:PropertyName&gt;
&lt;/ogc:Function&gt;
&lt;/ogc:Function&gt;
&lt;/Label&gt;
&lt;Font&gt;
&lt;CssParameter name="font-family"&gt;Arial&lt;/CssParameter&gt;
&lt;CssParameter name="font-size"&gt;08&lt;/CssParameter&gt;
&lt;CssParameter name="font-style"&gt;normal&lt;/CssParameter&gt;
&lt;CssParameter name="font-weight"&gt;bold&lt;/CssParameter&gt;
&lt;/Font&gt;
&lt;LabelPlacement&gt;
&lt;PointPlacement&gt;
&lt;AnchorPoint&gt;
&lt;AnchorPointX&gt;0&lt;/AnchorPointX&gt;
&lt;AnchorPointY&gt;0.5&lt;/AnchorPointY&gt;
&lt;/AnchorPoint&gt;
&lt;Displacement&gt;
&lt;DisplacementX&gt;
                       7
&lt;/DisplacementX&gt;
&lt;DisplacementY&gt;
                        0
&lt;/DisplacementY&gt;
&lt;/Displacement&gt;
&lt;/PointPlacement&gt;
&lt;/LabelPlacement&gt;
&lt;Halo&gt;
&lt;Radius&gt;2&lt;/Radius&gt;
&lt;Fill&gt;
&lt;CssParameter name="fill"&gt;#FFFFFF&lt;/CssParameter&gt;
&lt;/Fill&gt;
&lt;/Halo&gt;
&lt;Fill&gt;
&lt;CssParameter name="fill"&gt;#ff0000&lt;/CssParameter&gt;
&lt;/Fill&gt;
&lt;VendorOption name="autoWrap"&gt;60&lt;/VendorOption&gt;
&lt;VendorOption name="maxDisplacement"&gt;150&lt;/VendorOption&gt;
&lt;/TextSymbolizer&gt;
&lt;/Rule&gt;
&lt;/FeatureTypeStyle&gt;
&lt;/UserStyle&gt;
&lt;/NamedLayer&gt;
&lt;/StyledLayerDescriptor&gt;


</pre>
    </blockquote>
    <br>
  </body>
</html>