<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=Generator content="Microsoft Word 12 (filtered medium)">
<STYLE>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
h4
        {mso-style-priority:9;
        mso-style-link:"Heading 4 Char";
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.Heading4Char
        {mso-style-name:"Heading 4 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 4";
        font-family:"Times New Roman","serif";
        font-weight:bold;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY dir=ltr lang=EN-US vLink=purple link=blue>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Arial'; COLOR: #000000; FONT-SIZE: 10pt">
<DIV>You can use gwc’s wms, just not as a single tile layer:</DIV>
<DIV>tileSize: new OpenLayers.Size(256,256)</DIV>
<DIV>is a _required_ config property of the layer(s) you are trying to
print.</DIV>
<DIV> </DIV>
<DIV>Your other option is to use an XYZ layer type with your gwc layers.</DIV>
<DIV> </DIV>
<DIV style="FONT-FAMILY: 'Arial'; COLOR: #000000; FONT-SIZE: 10pt">Matt
Priour<BR>Kestrel Computer Consulting</DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV><FONT face=Arial></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=RDell@CatawbaCountyNC.gov
href="mailto:RDell@CatawbaCountyNC.gov">Ralph Dell</A> </DIV>
<DIV><B>Sent:</B> Wednesday, August 24, 2011 2:22 PM</DIV>
<DIV><B>To:</B> <A title=users@geoext.org
href="mailto:users@geoext.org">users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> [Users] geoext Printprovider bad request</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV class=Section1>
<P class=MsoNormal>I did not know if this list or the geoserver list would be a
better forum for this question. I decided to start here.<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal>After adding layers to my map from geowebcache and generating
a pdf with the Printprovider the gwc layers were not showing up in the
generated pdf.<o:p></o:p></P>
<P class=MsoNormal>My straight up wms layes etc, were printing fine as
usual.<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal>In my geoserver logs I found the following information that
indicated a bad request. <o:p></o:p></P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal>2011-08-24 13:27:21,287 WARN [org.mapfish.print.PDFUtils] -
<o:p></o:p></P>
<P class=MsoNormal>Server returned an error for
http://gis.catawbacountync.gov/geoserver/gwc/service/wms?<o:p></o:p></P>
<P
class=MsoNormal>BBOX=-9079690.0%2C4218281.5%2C-9006310.0%2C4294718.5&HEIGHT=694&WIDTH=667&TRANSPARENT=true&<o:p></o:p></P>
<P
class=MsoNormal>map_resolution=100&VERSION=1.1.1&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&format_options=dpi%3A100&<o:p></o:p></P>
<P
class=MsoNormal>LAYERS=ncgroup&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913:<o:p></o:p></P>
<P class=MsoNormal>Error (status=400) while reading the image from
http://gis.catawbacountync.gov/geoserver/gwc/service/wms?<o:p></o:p></P>
<P
class=MsoNormal>BBOX=-9079690.0%2C4218281.5%2C-9006310.0%2C4294718.5&HEIGHT=694&WIDTH=667&TRANSPARENT=true&<o:p></o:p></P>
<P
class=MsoNormal>map_resolution=100&VERSION=1.1.1&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&format_options=dpi%3A100&<o:p></o:p></P>
<P
class=MsoNormal>LAYERS=ncgroup&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913:
Bad Request<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal>2011-08-24 13:27:21,287 WARN
[org.mapfish.print.PDFCustomBlocks] - <o:p></o:p></P>
<P class=MsoNormal>Error while adding a PDF elementjava.io.IOException:
<o:p></o:p></P>
<P class=MsoNormal>Error (status=400) while reading the image from
http://gis.catawbacountync.gov/geoserver/gwc/service/wms?<o:p></o:p></P>
<P
class=MsoNormal>BBOX=-9079690.0%2C4218281.5%2C-9006310.0%2C4294718.5&HEIGHT=694&WIDTH=667&TRANSPARENT=true&<o:p></o:p></P>
<P
class=MsoNormal>map_resolution=100&VERSION=1.1.1&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&format_options=dpi%3A100&<o:p></o:p></P>
<P
class=MsoNormal>LAYERS=ncgroup&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913:
Bad Request<o:p></o:p></P>
<P class=MsoNormal><o:p><FONT size=2 face=Arial></FONT></o:p> </P>
<P class=MsoNormal>I did not know why it was a bad request but I was suspicious
of the HEIGHT and WIDTH<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal>Pasting the url into my browser confirmed that by returning
the error<o:p></o:p></P>
<P style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"
class=MsoNormal><B><SPAN
style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt">400: The
requested tile dimensions 694x667 do not match those of the grid set
(256x256)<o:p></o:p></SPAN></B></P>
<P class=MsoNormal><A
href="http://gis.catawbacountync.gov/geoserver/gwc/service/wms?BBOX=-9079690.0%2C4218281.5%2C-9006310.0%2C4294718.5&HEIGHT=694&WIDTH=667&TRANSPARENT=true&map_resolution=100&VERSION=1.1.1&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&format_options=dpi%3A100&LAYERS=ncgroup&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913">http://gis.catawbacountync.gov/geoserver/gwc/service/wms?BBOX=-9079690.0%2C4218281.5%2C-9006310.0%2C4294718.5&HEIGHT=694&WIDTH=667&TRANSPARENT=true&map_resolution=100&VERSION=1.1.1&FORMAT=image%2Fpng&TILED=true&SERVICE=WMS&format_options=dpi%3A100&LAYERS=ncgroup&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913</A><o:p></o:p></P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal>OK great. What can I do to resolve the issue? Can I use my
gwc layers with the printProvider? Do I have deeper issues?<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p> </P>
<P class=MsoNormal>Ralph Dell<o:p></o:p></P>
<P class=MsoNormal><o:p></o:p> </P></DIV>
<P>
<HR>
_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></DIV></DIV></DIV></BODY></HTML>