Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of Tomcat reporting error module-info.class

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly analyzes the relevant knowledge points of how to solve the problem of Tomcat error module-info.class for everyone, the content is detailed and easy to understand, the operation details are reasonable, and has a certain reference value. If you are interested, you might as well follow the editor to have a look, and follow the editor to learn more about "how to solve the problem of Tomcat error reporting module-info.class".

Module-info.class problem

What is a 1.module-info.class? What?

two。 When you look at the name module-info, that is, module information, you naturally think of managing module information. In the jdk9 feature, kill it directly in the decompression software and try to report ok correctly.

Start the error report after importing the 3.pom file into asm and other configurations

Asm asm 3.3.1

Serious:

Unable to process Jar entry [module-info.class] from Jar [Jar Vera fileVera] DJV Unix softUnix repositoryUnix orgUnix asmUnix asmUnix 7.1 for annotations /] Universe

Org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19

Log4j also has, also killed, this level of jar location down to find META-INF/versions/9/module-info.class, the compiler has told you the location, don't be silly and the same as the previous one

Unable to process Jar entry [META-INF/versions/9/module-info.class] from Jar [Jar Vera fileVera] DJV Unix SoftUnix repositoryUnix orgUnix apacheqqloggingLog 4J Log 4J Mui Api Unix 2.12.0 Log 4j Muhammad 2.12.0.jarring /] for annotations

Find the location of the corresponding maven warehouse / DGV Universe, repositor, repositor, Oracle, Apache, Apache, logging, and logging.Log, 4J, Log 4J, ML, API, 2.12.0, log, 4J, color, API, 2.12.0.jar.

Delete the META-INF/versions/9/module-info.class decompression tool (close the IDE tool, delete it and then run it)

Tomcat error module-info.class

Tomcat reported an error [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:

November 11, 2020 10:48:50 org.apache.catalina.startup.ContextConfig processAnnotationsJar

Critical: 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

Org.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. (ConstantPool.java:54)

At org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool (ClassParser.java:174)

At org.apache.tomcat.util.bcel.classfile.ClassParser.parse (ClassParser.java:83)

At org.apache.catalina.startup.ContextConfig.processAnnotationsStream (ContextConfig.java:2053)

At org.apache.catalina.startup.ContextConfig.processAnnotationsJar (ContextConfig.java:2000)

At org.apache.catalina.startup.ContextConfig.processAnnotationsUrl (ContextConfig.java:1970)

At org.apache.catalina.startup.ContextConfig.processAnnotations (ContextConfig.java:1923)

At org.apache.catalina.startup.ContextConfig.webConfig (ContextConfig.java:1163)

At org.apache.catalina.startup.ContextConfig.configureStart (ContextConfig.java:775)

At org.apache.catalina.startup.ContextConfig.lifecycleEvent (ContextConfig.java:299)

At org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (LifecycleBase.java:94)

At org.apache.catalina.core.StandardContext.startInternal (StandardContext.java:5087)

At org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:150)

At org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1419)

At org.apache.catalina.core.ContainerBase$StartChild.call (ContainerBase.java:1409)

At java.util.concurrent.FutureTask.run (FutureTask.java:266)

At java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)

At java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)

At java.lang.Thread.run (Thread.java:748)

November 11, 2020 10:48:51 org.apache.catalina.startup.ContextConfig processAnnotationsJar

Critical: 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 annotations

Org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19

Take the first error report as an example

ProcessAnnotationsJar

Critical: 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

Find the jar package under Maven

View the path where the jar package is located

Find and delete it

On "how to solve the problem of Tomcat error module-info.class" is introduced here, more related content can be searched for previous articles, hope to help you answer questions, please support the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report