启动Tomcat报错 Unable to load class[xxx xxx] to check against the @HandlesTypes annotation
来源:互联网 发布:小米4屏幕多少钱淘宝 编辑:程序博客网 时间:2024/05/22 12:43
启动Tomcat时出现以下告警信息:
WARNING: Unable to load class [org.codehaus.jackson.map.ser.impl.UnwrappingBeanPropertyWriter] to check against the @HandlesTypes annotation of one or more ServletContentInitializers.
java.lang.VerifyError: class org.codehaus.jackson.map.ser.impl.UnwrappingBeanPropertyWriter overrides final method _findAndAddDynamic.(Lorg/codehaus/jackson/map/ser/impl/PropertySerializerMap;Ljava/lang/Class;Lorg/codehaus/jackson/map/SerializerProvider;)Lorg/codehaus/jackson/map/JsonSerializer;
不知道大家有没有遇到这样的情况
查阅资料以后,网上有两个说法很接地气
第一种是由于Tomcat版本引起的,大家可以试试7.0.23以上的Tomcat版本,看看告警信息是不是还存在。
第二种是修改web.xml配置文件,新增 metadata-complete="true" 的配置。
另外说明一下
关于metadata-complete="true"这个配置
当它为true时,意味着/WEB-INF/lib 下面的jar包不需要按照Servlet 3.0 specific annotations的标准去扫描,而项目webapps下的类还是会被扫描,当然,这也能提高tomcat的启动速度,如果你依赖的Jar包很多的话,这会十分明显!
- 启动Tomcat报错 Unable to load class[xxx xxx] to check against the @HandlesTypes annotation
- Unable to load class[xxx xxx] to check against the @HandlesTypes annotation
- Unable to load class [javax.xml.parsers.SecuritySupport12] to check against the @HandlesTypes annota
- Swift使用CoreData报错:CoreData: warning: Unable to load class named 'xxx' for entity 'xxx'.
- 启动Tomcat出现“Bad version number in .class file (unable to load class XXX)”解决
- 启动Tomcat出现“Bad version number in .class file (unable to load class XXX)”解决
- 2Unable to load class [org.apache.xml.resolver.tools.ResolvingXMLReader] to check against the @Handl
- Tomcat启动web项目报Bad version number in .class file (unable to load class ...)错
- Tomcat启动web项目报Bad version number in .class file (unable to load class ...)错
- Unsupported major.minor version 52.0 (unable to load class XXX
- tomcat报错Unable to load class for JSP
- SSH整合时,tomcat启动报错(unable to load class com.mysql.jdbc.Driver)
- php:win iis下move_uploaded_file报错unable to move file xxx to xxx
- 【VS2013】报错:Unable to start program 'xxx.dll'
- Swift教程_swift常见问题(0001)_CoreData: warning: Unable to load class named 'xxx' for entity 'xxx'
- Unable to install "XXX"
- SSH报错Unable to load configuration. - Class: java.net.SocketInputStream Unable to load configuratio
- 启动cloudera-scm-server报错:unable to load class [com.mysql.jdbc.Driver]
- Dubbo 学习入门(一)
- 一个计算机专业学生几年的编程经验汇总(转)(一)
- 一个计算机专业学生几年的编程经验汇总(转)(二)
- 手把手教你webpack3(5)babel-loader详细使用说明
- 一个计算机专业学生几年的编程经验汇总(转)(三)
- 启动Tomcat报错 Unable to load class[xxx xxx] to check against the @HandlesTypes annotation
- 一个计算机专业学生几年的编程经验汇总(转)(四)
- 一个计算机专业学生几年的编程经验汇总(转)(五)
- 职业程序员必看之文章
- mysql数据表的约束及操作
- linux 下maven安装
- JAVA多线程程序设计23个要点
- Kafka scala客户端在broker宕机对发送请求超时问题分析与方案
- B 树、B+ 树、B* 树