uDIG
  1. uDIG
  2. UDIG-1705

uDIG does not open geowebcache- wms-c urls

    Details

    • Type: Bug Bug
    • Status: Reopened Reopened
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: UDIG 1.2.RC3
    • Fix Version/s: UDIG 1.2.0
    • Component/s: webservices
    • Labels:
      None
    • Environment:
      Windows 7, GWC- Geowebcache NIGHTLY, built 2010-03-03 (included in Geoserver 2.0.2), uDIG Version: 1.2-SNAPSHOT

      Description

      When I insert a url like "http://linux:8080/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true" uDIG is not able to open it. It throws an exception in the log.

      !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-07-27 07:07:11.027
      !MESSAGE WMSC GetCapabilities: http://linux:8080/geoserver/gwc/service/wms?REQUEST=GetCapabilities&SERVICE=WMS

      !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-07-27 07:07:11.105
      !MESSAGE Cannot convert string to url:
      !STACK 0
      java.net.MalformedURLException: no protocol:
      at java.net.URL.<init>(Unknown Source)
      at java.net.URL.<init>(Unknown Source)
      at java.net.URL.<init>(Unknown Source)
      at net.refractions.udig.catalog.wmsc.server.WMSCComplexTypes$_ServiceType.getValue(WMSCComplexTypes.java:739)
      at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:186)
      at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:266)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at javax.xml.parsers.SAXParser.parse(Unknown Source)
      at javax.xml.parsers.SAXParser.parse(Unknown Source)
      at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:140)
      at net.refractions.udig.catalog.wmsc.server.WMSCCapabilitiesResponse.<init>(WMSCCapabilitiesResponse.java:70)
      at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer$CapabilitiesRequest.createResponse(TiledWebMapServer.java:247)
      at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.issueRequest(TiledWebMapServer.java:315)
      at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.readCapabilities(TiledWebMapServer.java:174)
      at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilities(TiledWebMapServer.java:139)
      at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilitiesXml(TiledWebMapServer.java:216)
      at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.getWMSC(WMSCServiceImpl.java:204)

      1. capabilities.esrimap
        4 kB
        Georg Weickelt
      2. capabilities.xml
        5 kB
        Georg Weickelt
      3. tiledVendorSpecificNested.sld
        59 kB
        Mat Balmer
      4. udig1705.log
        7 kB
        Jody Garnett
      5. wmscCapabilities.xml
        270 kB
        Jody Garnett
      6. wmscCapabilities2.xml
        10 kB
        Jody Garnett
      7. wmscCapabilities3.xml
        10 kB
        Arne Kepp

        Issue Links

          Activity

          Hide
          Jody Garnett added a comment -
          We test against a number of public instances of WMS-C and have not changed anything on our side.

          We have had trouble reports in the past because are using the WMS-C protocol and you need to configure geowebcache correctly
          for that to work out and produce a valid capabilities document for us to parse.

          A couple additional steps:
          - can you attach the capabilities document produced?
          - can you raise the issue with geowebcache bug tracker as well (although it looks like you are using it as part of geoserver?)
          Show
          Jody Garnett added a comment - We test against a number of public instances of WMS-C and have not changed anything on our side. We have had trouble reports in the past because are using the WMS-C protocol and you need to configure geowebcache correctly for that to work out and produce a valid capabilities document for us to parse. A couple additional steps: - can you attach the capabilities document produced? - can you raise the issue with geowebcache bug tracker as well (although it looks like you are using it as part of geoserver?)
          Georg Weickelt made changes -
          Field Original Value New Value
          Attachment capabilities.xml [ 50357 ]
          Jody Garnett made changes -
          Attachment udig1705.log [ 50424 ]
          Jody Garnett made changes -
          Description When I insert a url like "http://linux:8080/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true" uDIG is not able to open it. It throws an exception in the log:

          !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-07-27 07:07:11.027
          !MESSAGE WMSC GetCapabilities: http://linux:8080/geoserver/gwc/service/wms?REQUEST=GetCapabilities&SERVICE=WMS

          !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-07-27 07:07:11.105
          !MESSAGE Cannot convert string to url:
          !STACK 0
          java.net.MalformedURLException: no protocol:
          at java.net.URL.<init>(Unknown Source)
          at java.net.URL.<init>(Unknown Source)
          at java.net.URL.<init>(Unknown Source)
          at net.refractions.udig.catalog.wmsc.server.WMSCComplexTypes$_ServiceType.getValue(WMSCComplexTypes.java:739)
          at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:186)
          at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:266)
          at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
          at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source)
          at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
          at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
          at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
          at javax.xml.parsers.SAXParser.parse(Unknown Source)
          at javax.xml.parsers.SAXParser.parse(Unknown Source)
          at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:140)
          at net.refractions.udig.catalog.wmsc.server.WMSCCapabilitiesResponse.<init>(WMSCCapabilitiesResponse.java:70)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer$CapabilitiesRequest.createResponse(TiledWebMapServer.java:247)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.issueRequest(TiledWebMapServer.java:315)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.readCapabilities(TiledWebMapServer.java:174)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilities(TiledWebMapServer.java:139)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilitiesXml(TiledWebMapServer.java:216)
          at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.getWMSC(WMSCServiceImpl.java:204)
          at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.createInfo(WMSCServiceImpl.java:88)
          at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.createInfo(WMSCServiceImpl.java:1)
          at net.refractions.udig.catalog.IService.getInfo(IService.java:328)
          at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.getInfo(WMSCServiceImpl.java:84)
          at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.getInfo(WMSCServiceImpl.java:1)
          at net.refractions.udig.catalog.ui.ResolveLabelProviderSimple.getText(ResolveLabelProviderSimple.java:121)
          at org.eclipse.jface.viewers.DecoratingLabelProvider.getText(DecoratingLabelProvider.java:129)
          at org.eclipse.jface.viewers.ViewerComparator.compare(ViewerComparator.java:136)
          at org.eclipse.jface.viewers.ViewerComparator$1.compare(ViewerComparator.java:187)
          at java.util.Arrays.mergeSort(Unknown Source)
          at java.util.Arrays.mergeSort(Unknown Source)
          at java.util.Arrays.mergeSort(Unknown Source)
          at java.util.Arrays.sort(Unknown Source)
          at org.eclipse.jface.viewers.ViewerComparator.sort(ViewerComparator.java:185)
          at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:624)
          at org.eclipse.jface.viewers.AbstractTreeViewer.updateChildren(AbstractTreeViewer.java:2581)
          at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefreshStruct(AbstractTreeViewer.java:1867)
          at org.eclipse.jface.viewers.TreeViewer.internalRefreshStruct(TreeViewer.java:721)
          at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1842)
          at org.eclipse.jface.viewers.AbstractTreeViewer.internalRefresh(AbstractTreeViewer.java:1799)
          at org.eclipse.jface.viewers.StructuredViewer$8.run(StructuredViewer.java:1514)
          at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1422)
          at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403)
          at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1383)
          at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1512)
          at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:548)
          at net.refractions.udig.catalog.ui.AbstractResolveContentProvider$1.run(AbstractResolveContentProvider.java:113)
          at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
          at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
          at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
          at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
          at org.eclipse.jface.window.Window.open(Window.java:801)
          at net.refractions.udig.catalog.ui.workflow.WorkflowWizardDialog.open(WorkflowWizardDialog.java:210)
          at net.refractions.udig.project.ui.internal.actions.AddLayersAction.runWithEvent(AddLayersAction.java:51)
          at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)
          at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
          at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
          at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
          at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
          at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
          at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
          at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
          at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
          at net.refractions.udig.internal.ui.UDIGApplication.start(UDIGApplication.java:136)
          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
          at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
          When I insert a url like "http://linux:8080/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true" uDIG is not able to open it. It throws an exception in the log.

          {panel}
          !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-07-27 07:07:11.027
          !MESSAGE WMSC GetCapabilities: http://linux:8080/geoserver/gwc/service/wms?REQUEST=GetCapabilities&SERVICE=WMS

          !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-07-27 07:07:11.105
          !MESSAGE Cannot convert string to url:
          !STACK 0
          java.net.MalformedURLException: no protocol:
          at java.net.URL.<init>(Unknown Source)
          at java.net.URL.<init>(Unknown Source)
          at java.net.URL.<init>(Unknown Source)
          at net.refractions.udig.catalog.wmsc.server.WMSCComplexTypes$_ServiceType.getValue(WMSCComplexTypes.java:739)
          at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:186)
          at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:266)
          at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
          at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source)
          at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
          at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
          at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
          at javax.xml.parsers.SAXParser.parse(Unknown Source)
          at javax.xml.parsers.SAXParser.parse(Unknown Source)
          at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:140)
          at net.refractions.udig.catalog.wmsc.server.WMSCCapabilitiesResponse.<init>(WMSCCapabilitiesResponse.java:70)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer$CapabilitiesRequest.createResponse(TiledWebMapServer.java:247)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.issueRequest(TiledWebMapServer.java:315)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.readCapabilities(TiledWebMapServer.java:174)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilities(TiledWebMapServer.java:139)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilitiesXml(TiledWebMapServer.java:216)
          at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.getWMSC(WMSCServiceImpl.java:204)
          {panel}
          Hide
          Jody Garnett added a comment -
          The attached capabilities document does not contains the WMS-C information to describe the tileset (see http://wiki.osgeo.org/wiki/WMS_Tiling_Client_Recommendation).

          <WMT_MS_Capabilities>
            ...
            <VendorSpecificCapabilities>
              <TileSet>
                <SRS>EPSG:4326</SRS>
                <BoundingBox srs="EPSG:4326" minx="-180" miny="-90" maxx="180" maxy="90" />
                <Resolutions>0.703125 0.3515625 0.17578125 0.087890625 0.04394531250</Resolutions>
                <Width>256</Width>
                <Height>256</Height>
                <Format>image/png</Format>
                <Layers>coastline</Layers>
                <Styles></Styles>
              </TileSet>
              <TileSet>
                <SRS>OSGEO:41001</SRS>
                <BoundingBox srs="OSGEO:41001" minx="-20037508.34" miny="-20037508.34"
                                               maxx="20037508.34" maxy="20037508.34" />
                <Resolutions>
                   156543.03 78271.52 39135.76 19567.88 9783.94 4891.97
                </Resolutions>
                <Width>256</Width>
                <Height>256</Height>
                <Format>image/png</Format>
                <Layers>coastline</Layers>
                <Styles></Styles>
              </TileSet>
             </VendorSpecificCapabilities>
             ...
          </WMT_MS_Capabilities>

          Show
          Jody Garnett added a comment - The attached capabilities document does not contains the WMS-C information to describe the tileset (see http://wiki.osgeo.org/wiki/WMS_Tiling_Client_Recommendation) . <WMT_MS_Capabilities>   ...   <VendorSpecificCapabilities>     <TileSet>       <SRS>EPSG:4326</SRS>       <BoundingBox srs="EPSG:4326" minx="-180" miny="-90" maxx="180" maxy="90" />       <Resolutions>0.703125 0.3515625 0.17578125 0.087890625 0.04394531250</Resolutions>       <Width>256</Width>       <Height>256</Height>       <Format>image/png</Format>       <Layers>coastline</Layers>       <Styles></Styles>     </TileSet>     <TileSet>       <SRS>OSGEO:41001</SRS>       <BoundingBox srs="OSGEO:41001" minx="-20037508.34" miny="-20037508.34"                                      maxx="20037508.34" maxy="20037508.34" />       <Resolutions>          156543.03 78271.52 39135.76 19567.88 9783.94 4891.97       </Resolutions>       <Width>256</Width>       <Height>256</Height>       <Format>image/png</Format>       <Layers>coastline</Layers>       <Styles></Styles>     </TileSet>    </VendorSpecificCapabilities>    ... </WMT_MS_Capabilities>
          Jody Garnett made changes -
          Link This issue depends upon GEOS-4076 [ GEOS-4076 ]
          Hide
          Jody Garnett added a comment -
          I went and checked it out for you, GeoWebCache is not producing a wms-c capabilities document; I think this is more a problem with the configuration of the example geoserver application rather then an issue with GeoWebCache itself (but I could be wrong).

          The issue is: http://jira.codehaus.org/browse/GEOS-4076
          Show
          Jody Garnett added a comment - I went and checked it out for you, GeoWebCache is not producing a wms-c capabilities document; I think this is more a problem with the configuration of the example geoserver application rather then an issue with GeoWebCache itself (but I could be wrong). The issue is: http://jira.codehaus.org/browse/GEOS-4076
          Hide
          Jody Garnett added a comment -
          This is not a bug with uDig; but with the configuration/implementation of GeoWebCache.
          I did check against TileCache and the problems does not appear there.
          Show
          Jody Garnett added a comment - This is not a bug with uDig; but with the configuration/implementation of GeoWebCache. I did check against TileCache and the problems does not appear there.
          Jody Garnett made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s UDIG 1.2.0 [ 16264 ]
          Resolution Not A Bug [ 6 ]
          Hide
          Jody Garnett added a comment -
          I did change the error message for you so it is more clear next time:

          WmsPlugin.log("WMS Capabilies document does contain VendorSpecificCapabilities describing WMS-C tileset",null);
          Show
          Jody Garnett added a comment - I did change the error message for you so it is more clear next time: WmsPlugin.log("WMS Capabilies document does contain VendorSpecificCapabilities describing WMS-C tileset",null);
          Hide
          Jody Garnett added a comment -
          So it looks like two issues:
          - out of the box geowebcache WMS-C Capabilities is not configured to produce the VendorCapabilities defining the tileset (the subject of GEOS-4076)
          - the demo server produces a VendorCapabiliies which fails to parse.

          I have re-opened this bug in order to look into what the demo server is doing.

          Note the TileCache capabilities document still parses just fine.
          Show
          Jody Garnett added a comment - So it looks like two issues: - out of the box geowebcache WMS-C Capabilities is not configured to produce the VendorCapabilities defining the tileset (the subject of GEOS-4076 ) - the demo server produces a VendorCapabiliies which fails to parse. I have re-opened this bug in order to look into what the demo server is doing. Note the TileCache capabilities document still parses just fine.
          Jody Garnett made changes -
          Resolution Not A Bug [ 6 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Assignee Jody Garnett [ jgarnett ]
          Jody Garnett made changes -
          Status Reopened [ 4 ] In Progress [ 3 ]
          Show
          Jody Garnett added a comment - Attached caps doc from http://demo.opengeo.org/geoserver/gwc/service/wms?request=getcapabilities&tiled=true
          Jody Garnett made changes -
          Attachment wmscCapabilities.xml [ 50554 ]
          Hide
          Jody Garnett added a comment -
          Arneke was kind enough to stand up a test service what is newer:
          - http://tiledmarble.org/geowebcache/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true

          The attached wmscCapabilities2.xml is from this service
          Show
          Jody Garnett added a comment - Arneke was kind enough to stand up a test service what is newer: - http://tiledmarble.org/geowebcache/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true The attached wmscCapabilities2.xml is from this service
          Jody Garnett made changes -
          Attachment wmscCapabilities2.xml [ 50555 ]
          Hide
          Arne Kepp added a comment -
          Bah,,, just realized I set the Apache proxy up incorrectly when I configured the host. There are references to a protected port in that document, which won't be accessible from the outside.

          The live server is fixed, I'm attaching the new output.
          Show
          Arne Kepp added a comment - Bah,,, just realized I set the Apache proxy up incorrectly when I configured the host. There are references to a protected port in that document, which won't be accessible from the outside. The live server is fixed, I'm attaching the new output.
          Arne Kepp made changes -
          Attachment wmscCapabilities3.xml [ 50556 ]
          Hide
          Jody Garnett added a comment -
          Added a test case; and wmscCapabilities3.xml parses
          Show
          Jody Garnett added a comment - Added a test case; and wmscCapabilities3.xml parses
          Hide
          Jody Garnett added a comment -
          Okay created tests cases; which passed. Ended up the TiledWMSServer code to create a request was deconstructing the request URL; and then putting it back together without the TILED=true entry.

          Fix as of -r31928
          Show
          Jody Garnett added a comment - Okay created tests cases; which passed. Ended up the TiledWMSServer code to create a request was deconstructing the request URL; and then putting it back together without the TILED=true entry. Fix as of -r31928
          Jody Garnett made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Hide
          Jody Garnett added a comment -
          And of course now that I know what to look for we can see the mistake in the log provided by the user.
          Show
          Jody Garnett added a comment - And of course now that I know what to look for we can see the mistake in the log provided by the user.
          Hide
          Georg Weickelt added a comment -
          I afraid, the fix is not complete. I tested with 2 different gwc- servers, none of them works.
          This is the log for http://linux:8080/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true


          !SESSION 2010-08-09 13:19:15.142 -----------------------------------------------
          eclipse.buildId=unknown
          java.version=1.6.0_17
          java.vendor=Sun Microsystems Inc.
          BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de
          Command-line arguments: -os win32 -ws win32 -arch x86

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.576
          !MESSAGE NLS missing message: cancel_description in: net.refractions.udig.ui.internal.messages

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.578
          !MESSAGE NLS missing message: cancel_tooltip in: net.refractions.udig.ui.internal.messages

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.579
          !MESSAGE NLS missing message: orientation_horizontal_description in: net.refractions.udig.ui.internal.messages

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.580
          !MESSAGE NLS missing message: orientation_horizontal_tooltip in: net.refractions.udig.ui.internal.messages

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.582
          !MESSAGE NLS missing message: orientation_vertical_description in: net.refractions.udig.ui.internal.messages

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.583
          !MESSAGE NLS missing message: orientation_vertical_tooltip in: net.refractions.udig.ui.internal.messages

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.585
          !MESSAGE NLS missing message: orientation_single_description in: net.refractions.udig.ui.internal.messages

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.586
          !MESSAGE NLS missing message: orientation_single_tooltip in: net.refractions.udig.ui.internal.messages

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.587
          !MESSAGE NLS missing message: orientation_automatic_description in: net.refractions.udig.ui.internal.messages

          !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.589
          !MESSAGE NLS missing message: orientation_automatic_tooltip in: net.refractions.udig.ui.internal.messages

          !ENTRY net.refractions.udig.ui 1 0 2010-08-09 13:19:21.591
          !MESSAGE net.refractions.udig.ui.WorkbenchConfiguration "net.refractions.udig.internal.ui.UDIGWorkbenchConfiguration" angegeben, aber keine gültige Erweiterung gefunden.
          Bitte prüfen Sie, daß die Erweiterung exisitert und gültig ist.

          !ENTRY net.refractions.udig.ui 1 0 2010-08-09 13:19:21.639
          !MESSAGE net.refractions.udig.ui.MenuBuilder "net.refractions.udig.ui.uDigMenuBuilder" angegeben, aber keine gültige Erweiterung gefunden.
          Bitte prüfen Sie, daß die Erweiterung exisitert und gültig ist.

          !ENTRY net.refractions.udig.ui 1 0 2010-08-09 13:19:21.890
          !MESSAGE EnablementUtil: Expected child of net.refractions.udig.render.wms.basic.operation but didn't find one...

          !ENTRY org.eclipse.ui 4 4 2010-08-09 13:19:22.216
          !MESSAGE Die Komponente ist im Seitenlayout bereits vorhanden: net.refractions.udig.catalog.ui.CatalogView.

          !ENTRY org.eclipse.ui 4 4 2010-08-09 13:19:22.221
          !MESSAGE Unable to find Action Set: net.refractions.udig.tools.edit.mapGraphic.action

          !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-08-09 13:19:48.987
          !MESSAGE WMSC GetCapabilities: http://linux:8080/geoserver/gwc/service/wms?REQUEST=GetCapabilities&SERVICE=WMS

          !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-08-09 13:19:49.884
          !MESSAGE Cannot convert string to url:
          !STACK 0
          java.net.MalformedURLException: no protocol:
          at java.net.URL.<init>(Unknown Source)
          at java.net.URL.<init>(Unknown Source)
          at java.net.URL.<init>(Unknown Source)
          at net.refractions.udig.catalog.wmsc.server.WMSCComplexTypes$_ServiceType.getValue(WMSCComplexTypes.java:739)
          at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:186)
          at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:266)
          at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
          at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source)
          at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
          at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
          at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
          at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
          at javax.xml.parsers.SAXParser.parse(Unknown Source)
          at javax.xml.parsers.SAXParser.parse(Unknown Source)
          at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:140)
          at net.refractions.udig.catalog.wmsc.server.WMSCCapabilitiesResponse.<init>(WMSCCapabilitiesResponse.java:70)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer$CapabilitiesRequest.createResponse(TiledWebMapServer.java:247)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.issueRequest(TiledWebMapServer.java:315)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.readCapabilities(TiledWebMapServer.java:174)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilities(TiledWebMapServer.java:139)
          at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilitiesXml(TiledWebMapServer.java:216)
          at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.getWMSC(WMSCServiceImpl.java:204)
          at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.members(WMSCServiceImpl.java:106)
          at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.resources(WMSCServiceImpl.java:138)
          at net.refractions.udig.catalog.ui.workflow.ResourceSelectionState.init(ResourceSelectionState.java:91)
          at net.refractions.udig.catalog.ui.workflow.Workflow.doNextInternal(Workflow.java:352)
          at net.refractions.udig.catalog.ui.workflow.Workflow.access$4(Workflow.java:300)
          at net.refractions.udig.catalog.ui.workflow.Workflow$2.run(Workflow.java:274)
          at net.refractions.udig.catalog.ui.workflow.DefaultThreading$2.run(DefaultThreading.java:70)
          at net.refractions.udig.catalog.ui.workflow.DefaultThreading$WorkflowThread.run(DefaultThreading.java:112)
          Show
          Georg Weickelt added a comment - I afraid, the fix is not complete. I tested with 2 different gwc- servers, none of them works. This is the log for http://linux:8080/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true !SESSION 2010-08-09 13:19:15.142 ----------------------------------------------- eclipse.buildId=unknown java.version=1.6.0_17 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.576 !MESSAGE NLS missing message: cancel_description in: net.refractions.udig.ui.internal.messages !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.578 !MESSAGE NLS missing message: cancel_tooltip in: net.refractions.udig.ui.internal.messages !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.579 !MESSAGE NLS missing message: orientation_horizontal_description in: net.refractions.udig.ui.internal.messages !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.580 !MESSAGE NLS missing message: orientation_horizontal_tooltip in: net.refractions.udig.ui.internal.messages !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.582 !MESSAGE NLS missing message: orientation_vertical_description in: net.refractions.udig.ui.internal.messages !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.583 !MESSAGE NLS missing message: orientation_vertical_tooltip in: net.refractions.udig.ui.internal.messages !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.585 !MESSAGE NLS missing message: orientation_single_description in: net.refractions.udig.ui.internal.messages !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.586 !MESSAGE NLS missing message: orientation_single_tooltip in: net.refractions.udig.ui.internal.messages !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.587 !MESSAGE NLS missing message: orientation_automatic_description in: net.refractions.udig.ui.internal.messages !ENTRY org.eclipse.osgi 2 1 2010-08-09 13:19:21.589 !MESSAGE NLS missing message: orientation_automatic_tooltip in: net.refractions.udig.ui.internal.messages !ENTRY net.refractions.udig.ui 1 0 2010-08-09 13:19:21.591 !MESSAGE net.refractions.udig.ui.WorkbenchConfiguration "net.refractions.udig.internal.ui.UDIGWorkbenchConfiguration" angegeben, aber keine gültige Erweiterung gefunden. Bitte prüfen Sie, daß die Erweiterung exisitert und gültig ist. !ENTRY net.refractions.udig.ui 1 0 2010-08-09 13:19:21.639 !MESSAGE net.refractions.udig.ui.MenuBuilder "net.refractions.udig.ui.uDigMenuBuilder" angegeben, aber keine gültige Erweiterung gefunden. Bitte prüfen Sie, daß die Erweiterung exisitert und gültig ist. !ENTRY net.refractions.udig.ui 1 0 2010-08-09 13:19:21.890 !MESSAGE EnablementUtil: Expected child of net.refractions.udig.render.wms.basic.operation but didn't find one... !ENTRY org.eclipse.ui 4 4 2010-08-09 13:19:22.216 !MESSAGE Die Komponente ist im Seitenlayout bereits vorhanden: net.refractions.udig.catalog.ui.CatalogView. !ENTRY org.eclipse.ui 4 4 2010-08-09 13:19:22.221 !MESSAGE Unable to find Action Set: net.refractions.udig.tools.edit.mapGraphic.action !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-08-09 13:19:48.987 !MESSAGE WMSC GetCapabilities: http://linux:8080/geoserver/gwc/service/wms?REQUEST=GetCapabilities&SERVICE=WMS !ENTRY net.refractions.udig.catalog.internal.wms 4 0 2010-08-09 13:19:49.884 !MESSAGE Cannot convert string to url: !STACK 0 java.net.MalformedURLException: no protocol: at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at net.refractions.udig.catalog.wmsc.server.WMSCComplexTypes$_ServiceType.getValue(WMSCComplexTypes.java:739) at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:186) at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:266) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:140) at net.refractions.udig.catalog.wmsc.server.WMSCCapabilitiesResponse.<init>(WMSCCapabilitiesResponse.java:70) at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer$CapabilitiesRequest.createResponse(TiledWebMapServer.java:247) at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.issueRequest(TiledWebMapServer.java:315) at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.readCapabilities(TiledWebMapServer.java:174) at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilities(TiledWebMapServer.java:139) at net.refractions.udig.catalog.wmsc.server.TiledWebMapServer.getCapabilitiesXml(TiledWebMapServer.java:216) at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.getWMSC(WMSCServiceImpl.java:204) at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.members(WMSCServiceImpl.java:106) at net.refractions.udig.catalog.internal.wmsc.WMSCServiceImpl.resources(WMSCServiceImpl.java:138) at net.refractions.udig.catalog.ui.workflow.ResourceSelectionState.init(ResourceSelectionState.java:91) at net.refractions.udig.catalog.ui.workflow.Workflow.doNextInternal(Workflow.java:352) at net.refractions.udig.catalog.ui.workflow.Workflow.access$4(Workflow.java:300) at net.refractions.udig.catalog.ui.workflow.Workflow$2.run(Workflow.java:274) at net.refractions.udig.catalog.ui.workflow.DefaultThreading$2.run(DefaultThreading.java:70) at net.refractions.udig.catalog.ui.workflow.DefaultThreading$WorkflowThread.run(DefaultThreading.java:112)
          Georg Weickelt made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Hide
          Arne Kepp added a comment -
          You definitely need to say what version of GeoServer each one of those is running?
          Show
          Arne Kepp added a comment - You definitely need to say what version of GeoServer each one of those is running?
          Hide
          Jody Garnett added a comment -
          Hey Georg: there is *no* chance of getting this to work with geoserver out of the box (see http://jira.codehaus.org/browse/GEOS-4076). It just is not configured correctly.

          Arne Kepp has been kind enough to stand up a GeoWebCache for me to test against that is configured correct.

          Can I ask you to attach your log files (rather then just enter them as comments - just so we can keep track of the conversation. I also need you to attach the capabilities document - since I cannot login to your server remotely).

          On the bright side I set up a test case in uDig - so I can check your capabilities document quickly and let you know if there is a problem (or if there is a problem with the uDig code fix it promptly).
          Show
          Jody Garnett added a comment - Hey Georg: there is *no* chance of getting this to work with geoserver out of the box (see http://jira.codehaus.org/browse/GEOS-4076) . It just is not configured correctly. Arne Kepp has been kind enough to stand up a GeoWebCache for me to test against that is configured correct. Can I ask you to attach your log files (rather then just enter them as comments - just so we can keep track of the conversation. I also need you to attach the capabilities document - since I cannot login to your server remotely). On the bright side I set up a test case in uDig - so I can check your capabilities document quickly and let you know if there is a problem (or if there is a problem with the uDig code fix it promptly).
          Hide
          Georg Weickelt added a comment -
          Sorry for incomplete informations.
          Yesterday, it was GeoWebcache NIGHTLY 2010-07-17.
          Today with GeoWebCache version NIGHTLY, built 2010-08-10.
          Show
          Georg Weickelt added a comment - Sorry for incomplete informations. Yesterday, it was GeoWebcache NIGHTLY 2010-07-17. Today with GeoWebCache version NIGHTLY, built 2010-08-10.
          Show
          Georg Weickelt added a comment - The answer from: http://linux:8080/geowebcache/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true
          Georg Weickelt made changes -
          Attachment capabilities.esrimap [ 50612 ]
          Hide
          Mat Balmer added a comment -
          Hi all,

          Found out the following behaviour of Geo Server:

          http://localhost:8080/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true

          gives a capabillities document without the vendor specific stuff, whereas

          http://localhost:8080/geoserver/gwc/service/wms?request=getcapabilities&tiled=true

          generates them, although nested inside the Capabilities element.

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/capabilities_1_1_1.dtd">
          <WMT_MS_Capabilities version="1.1.1">
          <Service>
            <Name>OGC:WMS</Name>
            <Title>GeoWebCache</Title>
            <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://nrhn506d.nrhi.ch:8080/geoserver/gwc/service/wms?SERVICE=WMS&amp;"/>
          </Service>
          <Capability>
            ...
            <VendorSpecificCapabilities>
              <TileSet>
                <SRS>EPSG:900913</SRS>
                <BoundingBox srs="EPSG:900913" minx="663130.207" miny="5752509.308" maxx="1308387.309" maxy="6397766.41" />
                <Resolutions>1260.2677773437497 630.1338886718748 315.0669443359374 157.5334721679687 78.76673608398436 39.38336804199218 19.69168402099609 9.845842010498044 4.922921005249022 2.461460502624511 1.2307302513122556 0.6153651256561278 0.3076825628280639 0.15384128141403194 0.07692064070701597 0.038460320353507986 0.019230160176753993 0.009615080088376997 0.004807540044188498 0.002403770022094249 0.0012018850110471246 6.009425055235623E-4 3.0047125276178114E-4 1.5023562638089057E-4 7.511781319044529E-5 </Resolutions>
                <Width>256</Width>
                <Height>256</Height>
                <Format>image/png</Format>
                <Layers>picc</Layers>
                <Styles></Styles>
              </TileSet>
              <TileSet>
                <SRS>EPSG:900913</SRS>
                <BoundingBox srs="EPSG:900913" minx="663130.207" miny="5752509.308" maxx="1308387.309" maxy="6397766.41" />
                <Resolutions>1260.2677773437497 630.1338886718748 315.0669443359374 157.5334721679687 78.76673608398436 39.38336804199218 19.69168402099609 9.845842010498044 4.922921005249022 2.461460502624511 1.2307302513122556 0.6153651256561278 0.3076825628280639 0.15384128141403194 0.07692064070701597 0.038460320353507986 0.019230160176753993 0.009615080088376997 0.004807540044188498 0.002403770022094249 0.0012018850110471246 6.009425055235623E-4 3.0047125276178114E-4 1.5023562638089057E-4 7.511781319044529E-5 </Resolutions>
                <Width>256</Width>
                <Height>256</Height>
                <Format>image/gif</Format>
                <Layers>picc</Layers>
                <Styles></Styles>
              </TileSet>
              ...
            </VendorSpecificCapabilities>
            <Layer>
              <Title>GeoWebCache WMS</Title>
              <Abstract>Note that not all GeoWebCache instances provide a full WMS service.</Abstract>
              <LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
              <Layer queryable="1">
                <Name>picc</Name>
                <Title>picc</Title>
                <SRS>EPSG:900913</SRS>
                <SRS>EPSG:4326</SRS>
                <LatLonBoundingBox minx="5.625" miny="45.0" maxx="11.25" maxy="50.625"/>
                <BoundingBox SRS="EPSG:900913" minx="663130.207" miny="5752509.308" maxx="1308387.309" maxy="6397766.41"/>
                <BoundingBox SRS="EPSG:4326" minx="5.625" miny="45.0" maxx="11.25" maxy="50.625"/>
              </Layer>
              ..
            </Layer>
          </Capability>
          </WMT_MS_Capabilities>

          Hope this helps to solve this issue.

          Cheers
          Mat
          Show
          Mat Balmer added a comment - Hi all, Found out the following behaviour of Geo Server: http://localhost:8080/geoserver/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=getcapabilities&TILED=true gives a capabillities document without the vendor specific stuff, whereas http://localhost:8080/geoserver/gwc/service/wms?request=getcapabilities&tiled=true generates them, although nested inside the Capabilities element. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE WMT_MS_Capabilities SYSTEM " http://schemas.opengis.net/wms/1.1.1/capabilities_1_1_1.dtd "> <WMT_MS_Capabilities version="1.1.1"> <Service>   <Name>OGC:WMS</Name>   <Title>GeoWebCache</Title>   <OnlineResource xmlns:xlink=" http://www.w3.org/1999/xlink " xlink:type="simple" xlink:href=" http://nrhn506d.nrhi.ch:8080/geoserver/gwc/service/wms?SERVICE=WMS&amp; "/> </Service> <Capability>   ...   <VendorSpecificCapabilities>     <TileSet>       <SRS>EPSG:900913</SRS>       <BoundingBox srs="EPSG:900913" minx="663130.207" miny="5752509.308" maxx="1308387.309" maxy="6397766.41" />       <Resolutions>1260.2677773437497 630.1338886718748 315.0669443359374 157.5334721679687 78.76673608398436 39.38336804199218 19.69168402099609 9.845842010498044 4.922921005249022 2.461460502624511 1.2307302513122556 0.6153651256561278 0.3076825628280639 0.15384128141403194 0.07692064070701597 0.038460320353507986 0.019230160176753993 0.009615080088376997 0.004807540044188498 0.002403770022094249 0.0012018850110471246 6.009425055235623E-4 3.0047125276178114E-4 1.5023562638089057E-4 7.511781319044529E-5 </Resolutions>       <Width>256</Width>       <Height>256</Height>       <Format>image/png</Format>       <Layers>picc</Layers>       <Styles></Styles>     </TileSet>     <TileSet>       <SRS>EPSG:900913</SRS>       <BoundingBox srs="EPSG:900913" minx="663130.207" miny="5752509.308" maxx="1308387.309" maxy="6397766.41" />       <Resolutions>1260.2677773437497 630.1338886718748 315.0669443359374 157.5334721679687 78.76673608398436 39.38336804199218 19.69168402099609 9.845842010498044 4.922921005249022 2.461460502624511 1.2307302513122556 0.6153651256561278 0.3076825628280639 0.15384128141403194 0.07692064070701597 0.038460320353507986 0.019230160176753993 0.009615080088376997 0.004807540044188498 0.002403770022094249 0.0012018850110471246 6.009425055235623E-4 3.0047125276178114E-4 1.5023562638089057E-4 7.511781319044529E-5 </Resolutions>       <Width>256</Width>       <Height>256</Height>       <Format>image/gif</Format>       <Layers>picc</Layers>       <Styles></Styles>     </TileSet>     ...   </VendorSpecificCapabilities>   <Layer>     <Title>GeoWebCache WMS</Title>     <Abstract>Note that not all GeoWebCache instances provide a full WMS service.</Abstract>     <LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>     <Layer queryable="1">       <Name>picc</Name>       <Title>picc</Title>       <SRS>EPSG:900913</SRS>       <SRS>EPSG:4326</SRS>       <LatLonBoundingBox minx="5.625" miny="45.0" maxx="11.25" maxy="50.625"/>       <BoundingBox SRS="EPSG:900913" minx="663130.207" miny="5752509.308" maxx="1308387.309" maxy="6397766.41"/>       <BoundingBox SRS="EPSG:4326" minx="5.625" miny="45.0" maxx="11.25" maxy="50.625"/>     </Layer>     ..   </Layer> </Capability> </WMT_MS_Capabilities> Hope this helps to solve this issue. Cheers Mat
          Hide
          Georg Weickelt added a comment -
          Today I found, that I used not the latest version of udig- my link to the program was wrong.
          With Version 1.2.0 it works as expected.
          Thanks for your effords.
          Show
          Georg Weickelt added a comment - Today I found, that I used not the latest version of udig- my link to the program was wrong. With Version 1.2.0 it works as expected. Thanks for your effords.
          Hide
          Jody Garnett added a comment -
          Thanks Guys; without your help 1.2.0 would not be reading WMS-C. We should pass on the information mbalmer found to the associated GEOS-4076

          Note that uDig fills in the required parameters if any our missing.
          Show
          Jody Garnett added a comment - Thanks Guys; without your help 1.2.0 would not be reading WMS-C. We should pass on the information mbalmer found to the associated GEOS-4076 Note that uDig fills in the required parameters if any our missing.
          Hide
          Mat Balmer added a comment - - edited
          Ok, but even the newer version doesn't find the vendor capabilities (although the error message is much better). Must probably this has something to do with that nesting. The question is whether this nesting is compliant to the "standard" (is there a standard for that at all? or only the recommendation?) an uDig should accept and read it. Or has this to be corrected on the GeoServer side?
          Show
          Mat Balmer added a comment - - edited Ok, but even the newer version doesn't find the vendor capabilities (although the error message is much better). Must probably this has something to do with that nesting. The question is whether this nesting is compliant to the "standard" (is there a standard for that at all? or only the recommendation?) an uDig should accept and read it. Or has this to be corrected on the GeoServer side?
          Hide
          Jody Garnett added a comment -
          I looked at the code; and it can pick up the nesting in one of two ways. If you would like me to test a specific get capabilities document please attach it to this issue and let me know which one to test.

          Jody
          Show
          Jody Garnett added a comment - I looked at the code; and it can pick up the nesting in one of two ways. If you would like me to test a specific get capabilities document please attach it to this issue and let me know which one to test. Jody
          Hide
          Mat Balmer added a comment - - edited
          The file <<tiledVendorSpecificNested.sld>> contains the VendorSpecificCapabilities. But uDig gives a "VendorSpecificCapabilities not found" error message while loading it.
          Show
          Mat Balmer added a comment - - edited The file <<tiledVendorSpecificNested.sld>> contains the VendorSpecificCapabilities. But uDig gives a "VendorSpecificCapabilities not found" error message while loading it.
          Mat Balmer made changes -
          Attachment tiledVendorSpecificNested.sld [ 50720 ]
          Hide
          Jody Garnett added a comment - - edited
          I added a test case for the two recent attachments:

          tiledVendorSpecificNested.xml
          - appears to work
          - file is parsed
          - has non empty tiles
          - console had:
            
             OnlineResource cannot be empty
             Cannot decode tile epsg code: EPSG:900913
             ...

          - not sure about OnlineResource being empty
          - EPSG:900913 should not occur when run from uDig as we have an extra epsg.properties to define these extra non standard codes

          esrimapCapabilities.xml
          - does not work
          - parses
          - does not result in any tiles
          - console has the same two warnings:

             OnlineResource cannot be empty
             Cannot decode tile epsg code: EPSG:900913

          So I think the OnlineResource definition is actually causing a trouble ...

                          // OnlineResource
                          if (sameName(elems[2], value[i])) {
                              String spec = (String) value[i].getValue();
                              if( spec == null || spec.length() == 0){
                                  // Service not avaialble
                                  System.out.println("OnlineResource cannot be empty");
                              }
                              else {
                                  try {
                                      service.setOnlineResource(new URL( spec ));
                                  } catch (MalformedURLException e) {
                                     System.out.println("OnlineResource cannot string to url: " +spec); //$NON-NLS-1$
                                  }
                              }
                          }

          Looks I expect it does not like the xlink? Still the same warning is produced from the demo geowebcache which works...

          Looked at in in a debugger; the code doing the parsing is org.geotools.xml.xsi.XSISimpleTypes - which is there to parse simple strings rather than xlink. This may be worth a separate bug report.
          Show
          Jody Garnett added a comment - - edited I added a test case for the two recent attachments: tiledVendorSpecificNested.xml - appears to work - file is parsed - has non empty tiles - console had:       OnlineResource cannot be empty    Cannot decode tile epsg code: EPSG:900913    ... - not sure about OnlineResource being empty - EPSG:900913 should not occur when run from uDig as we have an extra epsg.properties to define these extra non standard codes esrimapCapabilities.xml - does not work - parses - does not result in any tiles - console has the same two warnings:    OnlineResource cannot be empty    Cannot decode tile epsg code: EPSG:900913 So I think the OnlineResource definition is actually causing a trouble ...                 // OnlineResource                 if (sameName(elems[2], value[i])) {                     String spec = (String) value[i].getValue();                     if( spec == null || spec.length() == 0){                         // Service not avaialble                         System.out.println("OnlineResource cannot be empty");                     }                     else {                         try {                             service.setOnlineResource(new URL( spec ));                         } catch (MalformedURLException e) {                            System.out.println("OnlineResource cannot string to url: " +spec); //$NON-NLS-1$                         }                     }                 } Looks I expect it does not like the xlink? Still the same warning is produced from the demo geowebcache which works... Looked at in in a debugger; the code doing the parsing is org.geotools.xml.xsi.XSISimpleTypes - which is there to parse simple strings rather than xlink. This may be worth a separate bug report.
          Hide
          Mat Balmer added a comment - - edited
          Changed the OnlineResource manually, moved the link inside the tag:

          <OnlineResource>http://nrhn506d.nrhi.ch:8080/geoserver/gwc/service/wms?SERVICE=WMS&&lt;/OnlineResource>

          This way it is able to parse the document. But somehow this should be fixed that the implementation also takes the href attribute into account (and not only the content of the element).

          Furthermore I observed something interesting about the epsg.properties file:

          If uDig is located in a path containing a whitespace (e.g. c:/program files/uDig) I get an "invalid character" warning upon startup and the additional codes are not loaded at all. When uDig is located on a path without whitespaces, the codes are loaded without any problems. I guess this needs some URL encoding there.
          Show
          Mat Balmer added a comment - - edited Changed the OnlineResource manually, moved the link inside the tag: <OnlineResource> http://nrhn506d.nrhi.ch:8080/geoserver/gwc/service/wms?SERVICE=WMS&&lt;/OnlineResource > This way it is able to parse the document. But somehow this should be fixed that the implementation also takes the href attribute into account (and not only the content of the element). Furthermore I observed something interesting about the epsg.properties file: If uDig is located in a path containing a whitespace (e.g. c:/program files/uDig) I get an "invalid character" warning upon startup and the additional codes are not loaded at all. When uDig is located on a path without whitespaces, the codes are loaded without any problems. I guess this needs some URL encoding there.
          Hide
          Jody Garnett added a comment -
          ah the dreaded white space file / url trouble - a friend we know well. Can we open a separate bug report for that one?
          I am not sure if this version of the parser can handle attributes; we will need to check.
          Show
          Jody Garnett added a comment - ah the dreaded white space file / url trouble - a friend we know well. Can we open a separate bug report for that one? I am not sure if this version of the parser can handle attributes; we will need to check.
          Hide
          Mat Balmer added a comment -
          Opened a new bug http://jira.codehaus.org/browse/UDIG-1722 for the whitespace issue.
          Show
          Mat Balmer added a comment - Opened a new bug http://jira.codehaus.org/browse/UDIG-1722 for the whitespace issue.
          Frank Gasdorf made changes -
          Link This issue relates to UDIG-1997 [ UDIG-1997 ]

            People

            • Assignee:
              Jody Garnett
              Reporter:
              Georg Weickelt
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: