部署TomCat报错:class javax.activation.SecuritySupport12 cannot access its superclass

严重: Error deploying web application directory ls
java.lang.IllegalAccessError: class javax.activation.SecuritySupport12 cannot access its superclass javax.activation.SecuritySupport
解决办法:
在web.xml文件中添加如下代码: metadata-complete="true"
例如:
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"    metadata-complete="true">
</web-app>

你可能感兴趣的:(Security)