I'm trying to deploy geoserver.war on tomcat7 but a message error is shown:

FAIL - Tried to use command /upload via a GET request but POST is required

What should I do?

  • 1
    you need to give use more of a clue as to what you are trying to do. Usually you just copy the war file to the webapps folder. – Ian Turton Sep 8 '14 at 1:45

This problem occurs when your .war is bigger than the value in config file of the tomcat manager. You need to set the config in web.xml from the tomcat manager. The file will normally be in %tomcat installation%\webapps\manager\WEB-INF\web.xml

Look for:

  <!-- 50MB max -->

and change the values.


In addition to Samuel's answer, I searched for a good while until I found it in:


A bit different path, might help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.