[Geoserver-users] GeoServer 2.8.5 WCS 2.0 exception

I am running GeoServer 2.8.5 on Windows 2008 R2, Tomcat 8.5.4, JDK 1.8.0_102. On the Welcome screen WCS 2.0.1 is listed as one of the service capabilities. However when I run a GetCapabilities request on version 2.0 I get an exception. Is WCS 2.0 not supported or is there a problem with my GeoServer configuration?

Thanks for any assistance,

Mike Sharp
State Geographic Information Coordinator
Office of Geographic Information
OGI & Technical Services Director
Assistant Director AML Program
Oklahoma Conservation Commission
4545 N. Lincoln Blvd., Suite 11A
Oklahoma City, OK 73105
405-521-4813 Office
405-833-0648 Cell
405-522-4770 FAX
mike.sharp@anonymised.com

Mike,

WCS 2.0.1 is supported.

- What is the request (full URL please)?

- What is the content of the exception?

- Do you have the full stack trace and request from the logs?

Kind regards,
Ben.

On 26/09/16 04:58, Mike Sharp wrote:

I am running GeoServer 2.8.5 on Windows 2008 R2, Tomcat 8.5.4, JDK 1.8.0_102. On the Welcome screen WCS 2.0.1 is listed as one of the service capabilities. However when I run a GetCapabilities request on version 2.0 I get an exception. Is WCS 2.0 not supported or is there a problem with my GeoServer configuration?

Thanks for any assistance,

Mike Sharp
State Geographic Information Coordinator
Office of Geographic Information
OGI & Technical Services Director
Assistant Director AML Program
Oklahoma Conservation Commission
4545 N. Lincoln Blvd., Suite 11A
Oklahoma City, OK 73105
405-521-4813 Office
405-833-0648 Cell
405-522-4770 FAX
mike.sharp@anonymised.com<mailto:mike.sharp@anonymised.com>

------------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

[Please keep discussions on-list for the benefit of the community]

Mike,

please try again with "service=WCS" (note uppercase "WCS"); this works for me:

http://okmaps.org/geoserver/wcs?request=GetCapabilities&service=WCS&version=2.0.1

For OGC web service URLs, keys (like "service") are case-insensitive, but values (like "WCS") are case sensitive. GeoServer is often permissive, but apparently not in this case.

Kind regards,
Ben.

On 26/09/16 12:34, Mike Sharp wrote:

Ben,

The GetCapablilities request:

http://okmaps.org/geoserver/wcs?request=GetCapabilities&service=wcs&version=2.0.1

returns:

<ows:ExceptionReport version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd&quot;&gt;&lt;ows:Exception exceptionCode="InvalidParameterValue" locator="wcs"><ows:ExceptionText>Error in service name, epected value: WCS
</ows:ExceptionText></ows:Exception></ows:ExceptionReport>

Extract from logs:

2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/web/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/gwc/rest/web/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/j_spring_security_check'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/j_spring_security_check/'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/j_spring_security_logout'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/j_spring_security_logout/'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/rest/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/gwc/rest/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Request matched by universal pattern '/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Matched Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1 with /**
2016-09-25 18:27:00,170 TRACE [ows.OWSHandlerMapping] - No handler mapping found for [/wcs]
2016-09-25 18:27:00,170 DEBUG [ows.OWSHandlerMapping] - Mapping [/wcs] to HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@anonymised.com] and 1 interceptor
2016-09-25 18:27:00,170 INFO [geoserver.wcs] -
Request: getServiceInfo
2016-09-25 18:27:00,170 ERROR [geoserver.ows] -
org.geoserver.wcs2_0.exception.WCS20Exception: Error in service name, epected value: WCS
HTTPcode:400
  at org.geoserver.wcs2_0.util.RequestUtils.checkService(RequestUtils.java:376)
  at org.geoserver.wcs2_0.DefaultWebCoverageService20.getCapabilities(DefaultWebCoverageService20.java:86)
  at sun.reflect.GeneratedMethodAccessor15454.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  at org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:55)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  at com.sun.proxy.$Proxy64.getCapabilities(Unknown Source)
  at sun.reflect.GeneratedMethodAccessor19949.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Thanks,

Mike

________________________________________
From: Ben Caradoc-Davies [ben@anonymised.com]
Sent: Sunday, September 25, 2016 2:43 PM
To: Mike Sharp
Cc: GeoServer Mailing List
Subject: Re: [Geoserver-users] GeoServer 2.8.5 WCS 2.0 exception

Mike,

WCS 2.0.1 is supported.

- What is the request (full URL please)?

- What is the content of the exception?

- Do you have the full stack trace and request from the logs?

Kind regards,
Ben.

On 26/09/16 04:58, Mike Sharp wrote:

I am running GeoServer 2.8.5 on Windows 2008 R2, Tomcat 8.5.4, JDK 1.8.0_102. On the Welcome screen WCS 2.0.1 is listed as one of the service capabilities. However when I run a GetCapabilities request on version 2.0 I get an exception. Is WCS 2.0 not supported or is there a problem with my GeoServer configuration?

Thanks for any assistance,

Mike Sharp
State Geographic Information Coordinator
Office of Geographic Information
OGI & Technical Services Director
Assistant Director AML Program
Oklahoma Conservation Commission
4545 N. Lincoln Blvd., Suite 11A
Oklahoma City, OK 73105
405-521-4813 Office
405-833-0648 Cell
405-522-4770 FAX
mike.sharp@anonymised.com<mailto:mike.sharp@anonymised.com>

------------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

Thank you Ben for that tip. Yes it does work for me too.

Have a good day,

Mike

________________________________________
From: Ben Caradoc-Davies [ben@anonymised.com]
Sent: Sunday, September 25, 2016 6:47 PM
To: Mike Sharp
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GeoServer 2.8.5 WCS 2.0 exception

[Please keep discussions on-list for the benefit of the community]

Mike,

please try again with "service=WCS" (note uppercase "WCS"); this works
for me:

http://okmaps.org/geoserver/wcs?request=GetCapabilities&service=WCS&version=2.0.1

For OGC web service URLs, keys (like "service") are case-insensitive,
but values (like "WCS") are case sensitive. GeoServer is often
permissive, but apparently not in this case.

Kind regards,
Ben.

On 26/09/16 12:34, Mike Sharp wrote:

Ben,

The GetCapablilities request:

http://okmaps.org/geoserver/wcs?request=GetCapabilities&service=wcs&version=2.0.1

returns:

<ows:ExceptionReport version="2.0.0" xsi:schemaLocation="http://www.opengis.net/ows/2.0 http://schemas.opengis.net/ows/2.0/owsExceptionReport.xsd&quot;&gt;&lt;ows:Exception exceptionCode="InvalidParameterValue" locator="wcs"><ows:ExceptionText>Error in service name, epected value: WCS
</ows:ExceptionText></ows:Exception></ows:ExceptionReport>

Extract from logs:

2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/web/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/gwc/rest/web/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/j_spring_security_check'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/j_spring_security_check/'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/j_spring_security_logout'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/j_spring_security_logout/'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/rest/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/gwc/rest/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Checking match of request : 'Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1'; against '/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Request matched by universal pattern '/**'
2016-09-25 18:27:00,170 DEBUG [security.IncludeQueryStringAntPathRequestMatcher] - Matched Path: /wcs, QueryString: request=GetCapabilities&service=wcs&version=2.0.1 with /**
2016-09-25 18:27:00,170 TRACE [ows.OWSHandlerMapping] - No handler mapping found for [/wcs]
2016-09-25 18:27:00,170 TRACE [ows.OWSHandlerMapping] - No handler mapping found for [/wcs]
2016-09-25 18:27:00,170 TRACE [ows.OWSHandlerMapping] - No handler mapping found for [/wcs]
2016-09-25 18:27:00,170 DEBUG [ows.OWSHandlerMapping] - Mapping [/wcs] to HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@anonymised.com.] and 1 interceptor
2016-09-25 18:27:00,170 INFO [geoserver.wcs] -
Request: getServiceInfo
2016-09-25 18:27:00,170 ERROR [geoserver.ows] -
org.geoserver.wcs2_0.exception.WCS20Exception: Error in service name, epected value: WCS
HTTPcode:400
      at org.geoserver.wcs2_0.util.RequestUtils.checkService(RequestUtils.java:376)
      at org.geoserver.wcs2_0.DefaultWebCoverageService20.getCapabilities(DefaultWebCoverageService20.java:86)
      at sun.reflect.GeneratedMethodAccessor15454.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      at org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:55)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      at com.sun.proxy.$Proxy64.getCapabilities(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor19949.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Thanks,

Mike

________________________________________
From: Ben Caradoc-Davies [ben@anonymised.com]
Sent: Sunday, September 25, 2016 2:43 PM
To: Mike Sharp
Cc: GeoServer Mailing List
Subject: Re: [Geoserver-users] GeoServer 2.8.5 WCS 2.0 exception

Mike,

WCS 2.0.1 is supported.

- What is the request (full URL please)?

- What is the content of the exception?

- Do you have the full stack trace and request from the logs?

Kind regards,
Ben.

On 26/09/16 04:58, Mike Sharp wrote:

I am running GeoServer 2.8.5 on Windows 2008 R2, Tomcat 8.5.4, JDK 1.8.0_102. On the Welcome screen WCS 2.0.1 is listed as one of the service capabilities. However when I run a GetCapabilities request on version 2.0 I get an exception. Is WCS 2.0 not supported or is there a problem with my GeoServer configuration?

Thanks for any assistance,

Mike Sharp
State Geographic Information Coordinator
Office of Geographic Information
OGI & Technical Services Director
Assistant Director AML Program
Oklahoma Conservation Commission
4545 N. Lincoln Blvd., Suite 11A
Oklahoma City, OK 73105
405-521-4813 Office
405-833-0648 Cell
405-522-4770 FAX
mike.sharp@anonymised.com<mailto:mike.sharp@anonymised.com>

------------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand

--
Ben Caradoc-Davies <ben@anonymised.com>
Director
Transient Software Limited <http://transient.nz/&gt;
New Zealand