Java. lang. IllegalStateException: Web app root system propert

Source: Internet
Author: User

WebAppRootKey is used in the web of java web project. the xml configuration file indicates the unique identifier of the Project. When debugging a Web project in Eclipse, the project path is a temporary path, not in the real path, you can print the attribute value in the form of log4j logs to see where the temporary project path is. You can use System. getProperty ("web. sample. root "); if the web. webAppRootKey is not set in xm and is set as default. Therefore, webAppRootKey is the default "webapp. root ". Solution: If two web applications define the same webAppRootKey or none of them, you need to define a webAppRootKey for each web application. ### 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> restart the service, then test it!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.