The classloader code magically fixed itself. Also changed the
rebuild-database and import-schema tasks to different phases.