Struts2 Tomcat deployment permission problems

Source: Internet
Author: User

Deploy it in tomcat5.5. Start the server. The error message is:

 

Caught exception while loading file struts-default.xml-class: Java. Security. accesscontrolcontext
File: accesscontrolcontext. Java
Method: checkpermission
Line: 264-Java/security/accesscontrolcontext. Java: 264:-1

...... ......

......

Caused by: Java. Security. accesscontrolexception: Access Denied (Java. Io. filepermission file:/E:/host/002/devbar.org/root/web-inf/lib/struts2-core-2.0.11.jar! Struts-default.xml read)

 

Add the following content to the comf/Catalina. Policy file under Tomcat:

Grant codebase "file :$ {Catalina. Home}/root //-"{
Permission java. Security. allpermission;
};

In addition, it is possible that all jar packages of struts2 are not put into the application.

Or, it seems that two struts2 projects under the same application also have this problem?

 

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.