Hi Marcos, you're right, I tried to let my ecplise IDE build the package.For the log: I tried building the webapp from the command line today, which works fine. Compiling/Debugging it inside eclise would be great - I'll test you procedure.
Thanks a lot! Matthias Am 14.12.2012 17:51, schrieb Marcos Hermida:
Hi Matthias, are you getting that error starting from some IDE or deploying the war into tomcat? I also have that error when I try to run the tds from eclipse without doing first a maven build (package) and this is because when eclipse performs the build it doesn't filter the tds.properties file, which is the file where spring is trying to inject the TdsContext properties from so the tds.version.builddate is not set and that causes the error. What I do to run the tds from eclipse is: 1-. Run a maven build 2-. Refresh the tds project (from the package explorer or navigator view) 3-. Publish (or republish) the package in the server (assuming that was already deployed otherwise "Run on server" should do the work) 4-. Start/restart the server. You only need to do this when you perform an eclipse project clean to make sure that the resource files are correctly filtered and all the properties are set. Then eclipse should be able to automatically update the server with the changes you do in the code. Hope this helps, Cheers! On 12/14/2012 03:15 AM, Matthias Müller wrote:Hi Thredds developers, after following the instructions from this site http://www.unidata.ucar.edu/projects/THREDDS/tech/tds4.3/SourceCodeBuild.html I am having difficulies in starting the compiled webapp. There seems to be an issue related to 'maven.build.timestamp'. Full error report is below. Any help/hint is very much appreciated. Thanks, Matthias org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cdmInit': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private thredds.server.config.TdsContext thredds.server.config.CdmInit.tdsContext; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tdsContext': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.lang.String thredds.server.config.TdsContext.webappVersionBuildDate; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'maven.build.timestamp' _______________________________________________ thredds mailing list thredds@xxxxxxxxxxxxxxxx For list information or to unsubscribe, visit:http://www.unidata.ucar.edu/mailing_lists/
-- Matthias Müller Dipl.-Geogr. | Research Associate Technische Universität Dresden Geoinformation Systems 01062 Dresden Phone: +49 351 463-31953 Fax: +49 351 463-35879 Mail: Matthias_Mueller@xxxxxxxxxxxxx www: http://tu-dresden.de/fgh/geo/gis
Description: S/MIME Kryptografische Unterschrift