At times, you may see an error like this:

java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.setFileSizeMax

Cause: The Java classpath has another module (jar) somewhere that overrides the one shipped with Confluence.

Solution:

  1. Please run the following to list all modules available to the class loader:
    http://path-to-confluence/admin/classpath.action
  2. Check for and resolve duplicate jars.