Re: [thredds] Adding custom services to TDS

Greetings!

It looks like the issue is that you haven't setup your content path, a
new requirement for TDS 4.4.0. In order to do this, you need to add the
following, with the proper path, to your setenv.sh script in
$CATALINA_BASE/bin (if the script does not exists, go ahead and create
it - catalina.sh will find and use it):

=======

export JAVA_OPTS=-Dtds.content.root.path=/path/to/contentDir

=======

Note that the content path used to be ${CATALINA_BASE}/content in
previous TDS versions.

Give that a try and let us know if that fixes things on your end.

Cheers!

Sean

On 11/6/13, 2:02 PM, H. Joe Lee wrote:
> Hi, John!
> 
>   I got a strange error on Mac OS X Mavericks with TDS 4.4. I could
> build the 4.4 fine but I cannot start the sever with the following
> springframework error message:
> 
> 2013-11-06T14:40:04.325-0600 [      7596][        ] ERROR
> org.springframework.web.context.ContextLoader: Context initialization
> failed
> 
> org.springframework.beans.factory.BeanCreationException: Error
> creating bean wth name 'collectionController': Injection of autowired
> dependencies failed; nested exception is
> org.springframework.beans.factory.BeanCreationException: Could not
> autowire field: private thredds.server.config.TdsContext
> thredds.server.admin.CollectionController.tdsContext; nested exception
> is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'tdsContext' defined in file
> [/hdfdap/tomcat2/webapps/thredds/WEB-INF/classes/thredds/server/config/TdsContext.class]:
> Invocation of init method failed; nested exception is
> java.lang.IllegalStateException: Content root directory
> [/share/testdata/cdmUnitTest/it/content] not a directory.
> 
>  I don't get such error message during initialization on my Windows 7
> build. I don't have any issue with TDS-4.3 on Mavericks either.
> 
>  Is this related to the change you've documented on the wiki? If so,
> what could be wrong?
> 
>  Please see the attached file for full error log.
> 
> --
> HDF: Software that Powers Science
> 
> 
> On Thu, Oct 3, 2013 at 1:28 PM, John Caron <caron@xxxxxxxxxxxxxxxx> wrote:
>> We have been working in version 4.4 on using Spring annotations for 
>> developing custom services. Some early documentation is here:
>>
>>   
>> https://wiki.ucar.edu/display/unidata/TDS+Servlets+Configuration+%284.4.0-alpha%29
>>
>> feedback is appreciated.
>>
>> _______________________________________________
>> thredds mailing list
>> thredds@xxxxxxxxxxxxxxxx
>> For list information or to unsubscribe,  visit: 
>> http://www.unidata.ucar.edu/mailing_lists/
>>
>>
>> _______________________________________________
>> thredds mailing list
>> thredds@xxxxxxxxxxxxxxxx
>> For list information or to unsubscribe,  visit: 
>> http://www.unidata.ucar.edu/mailing_lists/ 



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