maven遇坑

  1. 使用JDK9运行tomcat:run命令报错,运行tomcat7:run则正常,原因应该是maven内置的tomcat插件版本太低。
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
  • 关键字
  • 严重: Compilation error
    org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException

  • 严重: Servlet.service() for servlet jsp threw exception

    org.apache.jasper.JasperException: Unable to compile class for JSP:

    An error occurred at line: 1 in the generated java file
    The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

    An error occurred at line: 1 in the generated java file
    The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files

    An error occurred at line: 23 in the generated java file
    The method getName() is undefined for the type Class


  • 严重: Compilation error
    org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
发布了94 篇原创文章 · 获赞 0 · 访问量 2097

猜你喜欢

转载自blog.csdn.net/qq_16836791/article/details/104723029