[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20051116:Help getting THREDDS going





Arthur A. Person wrote:
John,

On Wed, 16 Nov 2005, John Caron wrote:



Unidata Support wrote:

------- Forwarded Message


To: address@hidden
From: "Arthur A. Person" <address@hidden>
Subject: Help getting THREDDS going
Organization: UCAR/Unidata
Keywords: 200511162245.jAGMjh7s018557



Hi...

I'm trying to get a basic thredds server going using a simple configuration but am having trouble. Here's my $tomcat_home/content/thredds/catalog.xml:


<?xml version="1.0" encoding="UTF-8"?>
<catalog name="PSU Meteorology Department Data Archives"

xmlns="http://www.unidata.ucar.edu/namespaces/thredds/InvCatalog/v1.0";
         xmlns:xlink="http://www.w3.org/1999/xlink";>

   <service name="Test" serviceType="HTTPServer" base="" />
<datasetScan name="Model Data" path="model_archive" scanDir="/data/test/" />

</catalog>


You need to tell datasetScan which service to use:

<datasetScan name="Model Data" path="model_archive" scanDir="/data/test/"


     <metadata inherited="true">
       <serviceName>Test</serviceName>
     </metadata>
  </datasetScan>


Okay, I stuck the "metadata" section you show above into my file and restarted tomcat, but it's still failing with the same errors. Any other ideas? I'm using tomcat 5.0.28 and j2sdk1.4.2_10. Also, I tried running the catalog.xml file without the "service name" and "dataseetScan" elements (i.e. essentially empty file) for testing, and the catalog.html page then comes up properly, although empty (as would be expected).

                            Thanks.

                              Art.


What I would do next is to download and run the development version (3.3), 
which will give you an error message instead of throwing an exception. A number 
of other bugs are fixed and we are on the verge of making it the stable release.

get latest thredds.war from 
http://www.unidata.ucar.edu/projects/THREDDS/tech/index.html#TDS

also, get Remote Management working by following this page:

 http://motherlode.ucar.edu:8080/thredds/docs/RemoteManagement.html

there are various debugging things that will help. If you give us a password, 
we can help you debug remotely. (but i will be gone all next week).



/data/test/model_archive contains:

-rw-r--r-- 1 ldm ldmsys 72148302 Nov 28 2004 AVN_20041128_002.00Z -rw-r--r-- 1 ldm ldmsys 71951716 Nov 29 2004 AVN_20041129_002.00Z -rw-r--r-- 1 ldm ldmsys 72199382 Nov 30 2004 AVN_20041130_002.00Z -rw-r--r-- 1 ldm ldmsys 72004292 Dec 1 2004 AVN_20041201_002.00Z -rw-r--r-- 1 ldm ldmsys 72119872 Dec 2 2004 AVN_20041202_002.00Z




In $tomcat_home/logs/catalina.out, I see:

INFO thredds.servlet.ServletUtil : thredds.servlet.ThreddsDefault.init() 2005-11-16 17:26:19.542 [ 0] INFO thredds.servlet.ThreddsDefault : --- initialized thredds.servlet.ThreddsDefault 2005-11-16 17:26:19.564 [ 22] 2005-11-16T17:26:19.968 -0500 [ 426][ 1] ERROR - thredds.servlet.ThreddsDefault - Error initializing catalog catalog.xml; null
java.lang.NullPointerException
at thredds.servlet.CatalogHandler.findDatasetScans(CatalogHandler.java:329) at thredds.servlet.CatalogHandler._initCatalog(CatalogHandler.java:301) at thredds.servlet.CatalogHandler._initCatalog(CatalogHandler.java:239)
   .
   .
   .





http://server.meteo.psu.edu:8080/thredds/catalog.html gives:

Catalog http://server.meteo.psu.edu:8080/thredds/catalog.xml has fatal errors:
----Catalog Validation version 1.0.01

**Fatal: InvCatalogFactory.readXML failed

Exception= java.io.FileNotFoundException http://server.meteo.psu.edu:8080/thredds/catalog.xml

fatalMessages=

errMessages=

warnMessages=

** Cant open URL <http://server.meteo.psu.edu:8080/thredds/catalog.xml>

Response code = 404

Not Found


One question I have is whether I need some other server running besides tomcat/thredds to get this going (e.g. apache or DODS)...? I guess I'm just expecting thredds to list the data files when I give it the above catalog.xml file... What am I doing wrong?


                                  Art.

Arthur A. Person
Research Assistant, System Administrator
Penn State Department of Meteorology
email:  address@hidden, phone:  814-863-1563

--
**************************************************************************** Unidata User Support UCAR Unidata (303)497-8643 P.O. address@hidden Boulder, ---------------------------------------------------------------------------- Unidata WWW Service ---------------------------------------------------------------------------- NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.

------- End of Forwarded Message




Arthur A. Person
Research Assistant, System Administrator
Penn State Department of Meteorology
email:  address@hidden, phone:  814-863-1563