[thredds] Trouble configuring WMS

Hi,

I am having some trouble configuring WMS on my THREDDS server, using THREDDS 
4.6.4. The relevant config file sections are:


threddsConfig.xml:

  <WMS>
    <allow>true</allow>
    <allowRemote>false</allowRemote>
    <maxImageWidth>2048</maxImageWidth>
    <maxImageHeight>2048</maxImageHeight>
  </WMS>


wmsConfig.xml:

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE wmsConfig SYSTEM 
"http://www.unidata.ucar.edu/schemas/thredds/dtd/ncwms/wmsConfig.dtd";>
  <!--
  Detailed configuration of the WMS service.  This config file can be used to
  set default styling parameters for each dataset/variable, and to enable or 
disable
  the GetFeatureInfo operation.

  See 
http://www.resc.reading.ac.uk/trac/myocean-tools/wiki/WmsDetailedConfiguration
  for more information.
  -->
  <wmsConfig>
    <global>
        <!-- These settings apply to all datasets unless overridden below -->

        <defaults>
            <!-- The global defaults. All elements are mandatory -->
            <allowFeatureInfo>true</allowFeatureInfo>
            <defaultColorScaleRange>-50 50</defaultColorScaleRange>
            <defaultPaletteName>rainbow</defaultPaletteName>
            <defaultNumColorBands>20</defaultNumColorBands>
            <logScaling>false</logScaling>
            <intervalTime>false</intervalTime>
        </defaults>
    </global>
  </wmsConfig>


catalog.xml:

  <service name="all" base="" serviceType="compound">
      <service name="odap" serviceType="OpenDAP" base="/thredds/dodsC/" />
      <service name="http" serviceType="HTTPServer" base="/thredds/fileServer/" 
/>
      <service name="wcs" serviceType="WCS" base="/thredds/wcs/" />
      <service name="wms" serviceType="WMS" base="/thredds/wms/" />
  </service>
  

The error I am getting appears in content/thredds/logs/serverStartup.log:

  2016-03-18T12:16:17.005+0000 [   1033633][        ] ERROR 
org.springframework.web.servlet.DispatcherServlet: Context initialization 
failed org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'wmsController' defined in ServletContext resource 
[/WEB-INF/wms-servlet.xml]: Invocation of i
nit method failed; nested exception is java.net.SocketException: Connection 
reset
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
 ~[spring-beans-4.1.6.RELEASE.jar
:4.1.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
 ~[spring-beans-4.1.6.RELEASE.jar:4.
1.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
 ~[spring-beans-4.1.6.RELEASE.jar:4.1.
6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
 ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
 ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
 ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
 ~[spring-beans-4.1.6.RELEASE.jar:4.1.6.
RELEASE]
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
 ~[spring-context-4.1.6.RELEASE.jar:4.1
.6.RELEASE]
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
 ~[spring-context-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:663)
 ~[spring-webmvc-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:629)
 ~[spring-webmvc-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:677)
 ~[spring-webmvc-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:548)
 ~[spring-webmvc-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:489)
 [spring-webmvc-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at 
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136) 
[spring-webmvc-4.1.6.RELEASE.jar:4.1.6.RELEASE]
        at javax.servlet.GenericServlet.init(GenericServlet.java:158) 
[servlet-api.jar:3.1.FR]
        at 
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1238) 
[catalina.jar:8.0.32]
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1151) 
[catalina.jar:8.0.32]
        at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:828) 
[catalina.jar:8.0.32]
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135)
 [catalina.jar:8.0.32]
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
 [catalina.jar:8.0.32]
        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
 [catalina.jar:8.0.32]
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) 
[catalina.jar:8.0.32]
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) 
[catalina.jar:8.0.32]
        at 
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
 [catalina.jar:8.0.32]
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
 [catalina.jar:8.0.32]
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522) 
[catalina.jar:8.0.32]
        ...


I am really struggling to work out what is causing this, so any ideas would be 
welcome!

Cheers,
Matt



  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: