java.lang.IllegalStateException: Cannot set web app root system property when WAR file is not expanded

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by DSD, 1 year ago
Cannot set web app root system property when WAR file is not expanded
via blogspot.com by Unknown author, 2 years ago
Web app root system property already set to different value: 'webapp.root' = [MyPath\EclipseProjects\.metadata\.plugins\com.genuitec.eclipse.easie.tomcat.myeclipse\tomcat\webapps\app1Name\] instead of [MyPath\EclipseProjects\.metadata\.plugins\com.genuitec.eclipse.easie.tomcat.myeclipse\tomcat\webapps\app2Name\] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
via nabble.com by Unknown author, 1 year ago
Cannot set web app root system property when WAR file is not expanded
via Oracle Community by 537622, 1 year ago
Cannot set web app root system property when WAR file is not expanded. java.lang.IllegalStateException: Cannot set web app root system property when WAR file is not expanded
via Stack Overflow by Sushant Bhoite
, 1 month ago
Cannot set web app root system property when WAR file is not expanded
via GitHub by tdipisa
, 9 months ago
Web app root system property already set to different value: 'webapp.root' = [/home/nurc/nurc-gliders/webapps/geobatch-gliders/] instead of [/home/nurc/nurc-gliders/webapps/g eostore-gliders/] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
java.lang.IllegalStateException: Cannot set web app root system property when WAR file is not expanded
at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:139)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.