Webapprootkey is in Java The Web project's XML configuration file represents a unique indication of the project, and when you debug the Web project, the path to the project is a temporary path, not the true path, and you can print out the property values by log4j the log, to see where the temporary project path is, and to use System.getpropert Y ("Web.sample.root"), if the Webapprootkey item is not set in Web.xm, then Webapprootkey is the default "Webapp.root".
Workaround: Two Web Apps with the same webapprootkey defined or none defined, you now need to define a webapprootkey for each web. # # # app1:<context-param> <param-name>webAppRootKey</param-name> <param-value>app1.root </param-value></context-param> # # App2:<context-param> <param-name>webapprootkey</ Param-name> <param-value>app2.root</param-value></context-param> re-enable the service and then test!
Java.lang.IllegalStateException:Web App root system property already set to different value