Re: [thredds] Unable to initialize WMS server

  • To: David Gil <dgilo@xxxxxxxx>
  • Subject: Re: [thredds] Unable to initialize WMS server
  • From: Antonio S. Cofiño <cofinoa@xxxxxxxxx>
  • Date: Thu, 13 Apr 2017 19:59:02 +0100
David,

I have just discovered that the change from local to remote link for the DTD was made in a commit on the 2012.

https://github.com/Unidata/thredds/commit/abd65ddd3faa5d94b34e3ee591a8b835ecac8175#commitcomment-21754344

Antonio



On 13/04/17 07:59, David Gil wrote:
Hi!

El Tuesday 04 April 2017, a les 15:14:34, Antonio S. Cofiño va escriure:
David,

(...)
The VM has access to internet?
Yes, the VM has internet access, but Tomcat doesn't.

I am behind a proxy and Tomcat doesn't see the system proxy configuration
unless told so in setenv.sh:

-Djava.net.useSystemProxies=true -Dhttps.proxyPort=80 -Dhttp.proxyPort=80 -
Dhttps.proxyHost=proxyserver.mycompany.com -
Dhttp.proxyHost=proxyserver.mycompany.com

More info: 
http://stackoverflow.com/questions/30630330/what-java-properties-to-pass-to-a-java-app-to-authenticate-with-a-http-proxy

With that configuration, the wms server runs without problems.

Cheers,

David Gil

Antonio S. Cofiño

On 04/04/17 14:02, David Gil wrote:
Hi,

I'm deploying a THREDDS server in a virtual machine with Vagrant
(ubuntu server 16.04 with Oracle Java version 1.8.0 and Tomcat 8.5.13).

The problem is that the WMS doesn't initialize. Attached you will find
the serverStartup THREDDS log. Some fragments of it:

2017-04-04T08:35:57.552-0400 [    138537][        ] WARN

  org.springframework.web.context.support.XmlWebApplicationContext:
Exception encountered during context initialization - cancelling
refresh attempt
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'wmsController' defined in ServletCont ext
resource [/WEB-INF/wms-servlet.xml]: Invocation of init method failed;
nested exception is java.net.ConnectException: Con nection timed out
(Connection timed out) (...)

2017-04-04T08:35:57.566-0400 [    138551][        ] ERROR
org.springframework.web.servlet.DispatcherServlet: Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'wmsController' defined in ServletCont ext
resource [/WEB-INF/wms-servlet.xml]: Invocation of init method failed;
nested exception is java.net.ConnectException: Con nection timed out
(Connection timed out)

============================

threddsConfig.xml has WMS allowed:

<WMS><allow>true</allow></WMS>============================

This is the setenv.sh contents:

exportJAVA_HOME="/opt/tds/java/jre"exportJRE_HOME="/opt/tds/java/jre"expor
tCATALINA_HOME="/opt/tds/tomcat"exportCATALINA_BASE="/opt/tds/tomcat"CONTE
NT_ROOT=-Dtds.content.root.path=/opt/tds/tomcat/content NORMAL="-d64
-Xmx4096m -Xms512m -server
-ea"HEAP_DUMP="-XX:+HeapDumpOnOutOfMemoryError"HEADLESS="-Djava.awt.headle
ss=true"JAVA_PREFS_SYSTEM_ROOT="-Djava.util.prefs.systemRoot=/opt/tds/tomc
at/content/thredds/javaUtilPrefs
-Djava.util.prefs.userRoot=/opt/tds/tomcat/content/thredds/javaUtilPrefs"
# Standard
setup.#JAVA_OPTS="$CONTENT_ROOT$NORMAL$MAX_PERM_GEN$HEAP_DUMP$HEADLESS$JAV
A_PREFS_SYSTEM_ROOT"exportJAVA_OPTS============================

This is the tomcat.service file:

[Unit]Description=Apache Tomcat Web Server After=network.target
[Service]Type=forking
Environment=CATALINA_PID=/opt/tds/tomcat/temp/tomcat.pid
ExecStart=/opt/tds/tomcat/bin/startup.sh
ExecStop=/opt/tds/tomcat/bin/shutdown.sh User=tomcat Group=tomcat
UMask=0007RestartSec=15Restart=always
[Install]WantedBy=multi-user.target============================

The whole /opt/tds/tomcat folder tree has tomcat user and group
permissions for reading and writing.

Any hint that could help me?

Thanks in advance,

David Gil Oliva

Teléfono: 93 882 30 58 (50822)

_______________________________________________
NOTE: All exchanges posted to Unidata maintained email lists are
recorded in the Unidata inquiry tracking system and made publicly
available through the web.  Users who post to any of the lists we
maintain are reminded to remove any personal information that they
do not want to be made public.


thredds mailing list
thredds@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit:
http://www.unidata.ucar.edu/mailing_lists/



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