Re: 20051116:Help getting THREDDS going

Hi Arthur: Im just catching up with email after being sick/on vacation for 10 
days!

Arthur A. Person wrote:
John,

On Fri, 18 Nov 2005, John Caron wrote:



Arthur A. Person wrote:

John,

On Wed, 16 Nov 2005, John Caron wrote:



Unidata Support wrote:

------- Forwarded Message


To: support@xxxxxxxxxxxxxxxx
From: "Arthur A. Person" <person@xxxxxxxxxxxxx>
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


Okay, I put the thredds 3.3 war file in webapps and restarted tomcat, and it seems to have picked it up. Then, after staring at the example catalog.xml file that came with the package for awhile (and which worked), I was able to craft my own additions which also worked. The trick seemed to be in using the "dirLocation" parameter instead of "scanDir" which seemed to not work.

yes, scanDir has been replaced by dirLocation. Are there some examples/docs 
that still use sccanDir ?


also, get Remote Management working by following this page:

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


I set up remote management, but when I try to log on as a tdsConfig user, the page comes up saying "HTTP Status 403 - Access to the requested resource has been denied", and then below that it says "message: Access to the requested resource has been denied" and "description: Access to the specified resource (Access to the requested resource has been denied) has been forbidden." Note: I AM able to log on as admin and do status etc... okay.

Any ideas how to get past this? I believe I've done everything on the remote management setup page referenced above.

its tricky debugging the SSL stuff. If you can give us remote access, we could 
poke around a bit.

is your server public?



                           Thanks.

                             Art.

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:  person@xxxxxxxxxxxxx, phone:  814-863-1563

--
**************************************************************************** Unidata User Support UCAR (303)497-8643 P.O. support@xxxxxxxxxxxxxxxx Boulder,

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

---------------------------------------------------------------------------- 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:  person@xxxxxxxxxxxxx, phone:  814-863-1563




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


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