java.lang.IllegalAccessError

来源:互联网 发布:东阿南湖行知学校 编辑:程序博客网 时间:2024/06/07 12:19

报错:java.lang.IllegalAccessError: class org.xml.sax.helpers.SecuritySupport12 cannot access its superclass org.xml.sax.helpers.SecuritySupport


servlet 2.5版本是不支持注解的

解决办法: 在web.xml中头部加上红色部分即可

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0"
metadata-complete="true">

0 0
原创粉丝点击