- Make the changes listed in Changes in the section entitled "Things ERDDAP™ Administrators Need to Know and Do" for all of the ERDDAP™ versions since the version you were using.
- If you are upgrading from ERDDAP™ version 2.18 or below, you need to switch to Java 21 (or newer) and the related Tomcat 10. See the regular ERDDAP™ installation instructions for Java and Tomcat. You'll also have to copy your tomcat/content/erddap directory from your old Tomcat installation to your new Tomcat installation.
- Download erddap.war into tomcat/webapps .
(version 2.25_1, 592,292,039 bytes, MD5=652AFC9D1421F00B5F789DA2C4732D4C, dated 2024-11-07) - messages.xml
- Common: If you are upgrading from ERDDAP™ version 1.46 (or above) and you just use the standard messages, the new standard messages.xml will be installed automatically (amongst the .class files via erddap.war).
- Rare: If you are upgrading from ERDDAP™ version 1.44 (or below),
you MUST delete the old messages.xml file:
tomcat/content/erddap/messages.xml .
The new standard messages.xml will be installed automatically (amongst the .class files via erddap.war).
- Rare: If you always make changes to the standard messages.xml file (in place),
you need to make those changes to the new messages.xml file (which is
WEB-INF/classes/gov/noaa/pfel/erddap/util/messages.xml after erddap.war is decompressed by Tomcat).
- Rare: If you maintain a custom messages.xml file in tomcat/content/erddap/,
you need to figure out (via diff) what changes have been made to the default messages.xml (which are in the new erddap.war as
WEB-INF/classes/gov/noaa/pfel/erddap/util/messages.xml) and modify your custom messages.xml file accordingly.
- Common: If you are upgrading from ERDDAP™ version 1.46 (or above) and you just use the standard messages, the new standard messages.xml will be installed automatically (amongst the .class files via erddap.war).
- Install the new ERDDAP™ in Tomcat:
* Don't use Tomcat Manager. Sooner or later there will be PermGen memory issues. It is better to actually shutdown and startup Tomcat.
* Replace references to tomcat below with the actual Tomcat directory on your computer.
- For Linux and Macs:
- Shutdown Tomcat: From a command line, use: tomcat/bin/shutdown.sh
And use ps -ef | grep tomcat to see if/when the process has been stopped. (It may take a minute or two.) - Remove the decompressed ERDDAP™ installation: In tomcat/webapps, use
rm -rf erddap - Delete the old erddap.war file: In tomcat/webapps, use rm erddap.war
- Copy the new erddap.war file from the temporary directory to tomcat/webapps
- Restart Tomcat and ERDDAP: use tomcat/bin/startup.sh
- View ERDDAP™ in your browser to check that the restart succeeded.
(Often, you have to try a few times and wait a minute before you see ERDDAP™.)
- Shutdown Tomcat: From a command line, use: tomcat/bin/shutdown.sh
- For Windows:
- Shutdown Tomcat: From a command line, use: tomcat\bin\shutdown.bat
- Remove the decompressed ERDDAP™ installation: In tomcat/webapps, use
del /S/Q erddap - Delete the old erddap.war file: In tomcat\webapps, use del erddap.war
- Copy the new erddap.war file from the temporary directory to tomcat\webapps
- Restart Tomcat and ERDDAP: use tomcat\bin\startup.bat
- View ERDDAP™ in your browser to check that the restart succeeded.
(Often, you have to try a few times and wait a minute before you see ERDDAP™.)
- For Linux and Macs:
Troubles updating ERDDAP?
Email me at erd dot data at noaa dot gov . I will help you.
Or, you can join the ERDDAP™ Google Group / Mailing List and post your question there.