为了账号安全,请及时绑定邮箱和手机立即绑定

spring mvc + jetty + maven = jar

spring mvc + jetty + maven = jar

肥皂起泡泡 2019-03-13 18:15:58
用spring mvc + jetty + maven的方式做项目,最后用maven生成jar,运行报错利用jetty可以直接用jar运行,而不需要tomcat的war,应该如何配置maven?Error: A JNI error has occurred, please check your installation and try againException in thread "main" java.lang.SecurityException: Invalid signature file digest for Manifest main attributes        at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:284)        at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:238)        at java.util.jar.JarVerifier.processEntry(JarVerifier.java:316)        at java.util.jar.JarVerifier.update(JarVerifier.java:228)        at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)        at java.util.jar.JarFile.getInputStream(JarFile.java:450)        at sun.misc.JarIndex.getJarIndex(JarIndex.java:137)        at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:839)        at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:831)        at java.security.AccessController.doPrivileged(Native Method)        at sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:830)        at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:803)        at sun.misc.URLClassPath$3.run(URLClassPath.java:530)        at sun.misc.URLClassPath$3.run(URLClassPath.java:520)        at java.security.AccessController.doPrivileged(Native Method)        at sun.misc.URLClassPath.getLoader(URLClassPath.java:519)        at sun.misc.URLClassPath.getLoader(URLClassPath.java:492)        at sun.misc.URLClassPath.getNextLoader(URLClassPath.java:457)        at sun.misc.URLClassPath.getResource(URLClassPath.java:211)        at java.net.URLClassLoader$1.run(URLClassLoader.java:365)        at java.net.URLClassLoader$1.run(URLClassLoader.java:362)        at java.security.AccessController.doPrivileged(Native Method)        at java.net.URLClassLoader.findClass(URLClassLoader.java:361)        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 489 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信