如博文摘要,新下载的Eclipse,配置好Tomcat后,启动居然报错:
警告: Unable to load class [javax.xml.parsers.SecuritySupport12] to check against the @HandlesTypes annotation of one or more ServletContentInitializers.
在网上找了半天,各种坑,有的说版本问题,要升级,有的说包冲突,有的说要删activation.jar,我压根没找到这个包....
最后找到个自称为java新手的朋友,给了个让人意想不到的解决方案:
修改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" id="WebApp_ID" version="3.0" metadata-complete="true" >
添加一句:metadata-complete="true" 就搞定了,我猜想由于项目是原来的项目,web.xml是原来项目的,和原来的什么版本可能有冲突,具体的也不清楚了