在学习使用Maven中碰到的报错Unable to process Jar entry[javassist/bytecode/DoubleInfo.class] from

1.   javassist报错

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.jarel-api.jarservlet-api.jar, 等等。本次问题在servlet上,注释掉



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值