In TDS Spring is set up to scan packages starting by thredds. So
changing the name of the package com.asascience.ncsos.controller to
thredds.server.ncsos.controller we will not need the sos-context.xml
file or editing the TDS web.xml file. Spring will find components and
will set up the mappings automatically and it should work only dropping
the ncSOS jar file into the thredds/WEB-INF/lib directory.
Also, since this way the SosController will be using the Spring
DispatcherServler that is mapped to "/" the servletPath is everything
preceding the query string so the request.getPathInfo() returns an empty
string. To get the right dataset path we have to use the servlet path in
the request and remove the "/sos" part.