SEVERE: Unable to process Jar entry [module-info.class] in Tomcat 7 && Java 8

前端 未结 1 1839
清酒与你
清酒与你 2020-12-18 01:13

I deployed war files in tomcat 7 , java 8 && Eclipse Version: Luna Service Release 1 (4.4.1)

While running it is showing following error.

相关标签:
1条回答
  • 2020-12-18 01:40

    Try to upgrade the version of TomCat. This is fixed in:

    - trunk for 9.0.0.M18 onwards
    - 8.5.x for 8.5.12 onwards
    - 8.0.x for 8.0.42 onwards
    - 7.0.x for 7.0.76 onwards
    

    The reason it doesn't work is because you use modularized (with module-info.class file) dependencies with old TomCat versions. TomCat (bcel library) tries to scan class files attempting to find annotations like @WebServlet and others, but encounters unknown byte code.

    If one is using org.apache.tomcat.maven:tomcat7-maven-plugin to start embedded TomCat, you can follow this instruction.

    0 讨论(0)
提交回复
热议问题