SEVERE: Unable to process Jar entry[javassist/bytecode/DoubleInfo.class] from Jar[jar:file:/C:/Users/admin/.m2/repository/org/javassist/javassist/3.15.0-GA/javassist-3.15.0-GA.jar!/]for annotations
java.util.zip.ZipException: invalid LOC header (bad signature)
atjava.util.zip.ZipFile.read(Native Method)
atjava.util.zip.ZipFile.access$1400(ZipFile.java:56)
atjava.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:677)
atjava.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:413)
解决方法: 报错点很明确 就是对应JAR包有问题,打开这个文件夹,
有记事本打开第三个文件,里面会有groupId artifactId version 更改一个版本。或者去maven的仓库搜索javaassist。在pom.xml中加入dependence。
2.
SEVERE: Servlet.service() for servlet[jsp] in context with path [/GrabFilms] threw exception [java.lang.LinkageError:loader constraint violation: loader (instance oforg/apache/jasper/servlet/JasperLoader) previously initiated loading for adifferent type with name "javax/servlet/http/HttpServletRequest"]with root cause
java.lang.LinkageError: loaderconstraint violation: loader (instance oforg/apache/jasper/servlet/JasperLoader) previously initiated loading for adifferent type with name "javax/servlet/http/HttpServletRequest"
atjava.lang.Class.getDeclaredMethods0(NativeMethod)
atjava.lang.Class.privateGetDeclaredMethods(Class.java:2442)
atjava.lang.Class.getDeclaredMethods(Class.java:1808)
解决思路:严重:Servlet.service() for servlet jsp threw exception
就是你不能在项目的lib目录中再包含服务器类提供过jar 比如jsp-api.jar
, el-api.jar
, servlet-api.jar
, 等等。本次问题在servlet上,注释掉