When upgrading OpenMRS versions before 1.10 to 2.x, you get this error message:
???There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: Migration failed for change set liquibase-update-to-latest.xml::201401101647-TRUNK-4187::wyclif:???
??? liquibase-update-to-latest.xml : Service not found: interface org.openmrs.messagesource.MessageSourceService???
Unable to update the database. See server error logs for the full stacktrace.
??? Caused By: Precondition Error???
??? Reason: ???
Which is caused by the fact that UpgradeUtil uses an APIException constructor that calls Context.getMessageSourceService().getMessage() which fails because spring is not yet set up.