JS 与 trick 代码的运用及解析全攻略
579
2022-11-05
基于module
目录module-info.class问题Tomcat报错module-info.class
module-info.class问题
1.module-info.class是个什么?干什么?
2.看名字module-info,即模块信息,自然想到是管理模块信息的。jdk9特性里的,在解压软件中直接干掉呗,试试没报错ok就行
3.pom文件导入 asm等配置后启动报错
严重:
Unable to process Jar entry [module-info.class] from Jar [jar:file:/D:/soft/repository/org/ow2/asm/asm/7.1/asm-7.1.jar!/] for annotationsorg.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
log4j中也有,也干掉,这个层次jar位置再往下找META-INF/versions/9/module-info.class,编译器都告诉你位置了,别傻傻的和前面那个一样
Unable to process Jar entry [META-INF/versions/9/module-info.class] from Jar [jar:file:/D:/soft/repository/org/apache/logging/log4j/log4j-api/2.12.0/log4j-api-2.12.0.jar!/] for annotations
找到对应maven仓库的位置 /D:/soft/repository/org/apache/logging/log4j/log4j-api/2.12.0/log4j-api-2.12.0.jar!/下的
META-INF/versions/9/module-info.class 解压工具删除掉(关掉IDE工具,删完再运行)
Tomcat报错module-info.class
Tomcat报错[module-info.class] from Jar [file:/S:/Environment/apache-tomcat-8.5.11/wtpwebapps/huibang/WEB-INF/lib/jaxb-api-2.3.1.jar] for annotations:
十一月 11, 2020 10:48:50 上午 org.apache.catalina.startup.ContextConfig processAnnotationsJar严重: Unable to process Jar entry [module-info.class] from Jar [file:/SgnBwTJF:/Environment/apache-tomcat-8.5.11/wtpwebapps/huibang/WEB-INF/lib/jaxb-api-2.3.1.jar] for annotationsorg.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19 at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:97) at org.apache.tomcat.util.bcel.classfile.ConstantPool.
十一月 11, 2020 10:48:51 上午 org.apache.catalina.startup.ContextConfig processAnnotationsJar严http://重: Unable to process Jar entry [module-info.class] from Jar [file:/S:/Environment/apache-tomcat-8.5.11/wtpwebapps/huibang/WEB-INF/lib/stax-ex-1.8.jar] for annotationsorg.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
以第一个报错为例
processAnnotationsJar严重: Unable to process Jar entry [module-info.class] from Jar [file:/S:/Environment/apache-tomcat-8.5.11/wtpwebapps/huibang/WEB-INF/lib/jaxb-api-2.3.1.jar] for annotations
找到Maven下的jar包
查看jar包所在路径
找到并删除它
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~