gpt4 book ai didi

java - 谁能告诉我们是什么!方法? "java.io.FileNotFoundException: JAR entry WEB-INF/lib/antlr-runtime-3.5.2.jar!/not found"

转载 作者:行者123 更新时间:2023-11-30 02:45:40 24 4
gpt4 key购买 nike

我正在尝试运行 Tapestry Atmosphere 来为学校项目编写聊天应用程序。在此期间我遇到了一个连我的教授都无法理解的错误。

java.io.FileNotFoundException: JAR entry WEB-INF/lib/antlr-runtime-3.5.2.jar!/ not found

没有人知道“!”是什么意思。代表。如果有人知道,请让我们所有人都知道,以便将来和现在的新学生能够想到这个错误。

这是在 UkLance 的演示框架上完成的:tapestry-atmosphere https://github.com/uklance/tapestry-atmosphere

下面是来自(intellij)的错误日志

<小时/>
2016-10-27 10:26:26.980:WARN:oejw.WebAppContext:Scanner-1: Failed startup of context o.e.j.w.WebAppContext@71a39e83{/tapestry-atmosphere-demo,jar:file:///C:("locationToRoot")/tapestry-atmosphere-master/tapestry-atmosphere-demo/target/tapestry-atmosphere-demo.war!/,null}{C:\("locationToRoot")\tapestry-atmosphere-master\tapestry-atmosphere-demo\target\tapestry-atmosphere-demo.war}java.io.FileNotFoundException: JAR entry WEB-INF/lib/antlr-runtime-3.5.2.jar!/ not found in C:/("locationToRoot")\tapestry-atmosphere-master\tapestry-atmosphere-demo\target\tapestry-atmosphere-demo.war at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:142) at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:89) at org.eclipse.jetty.webapp.MetaInfConfiguration.getTlds(MetaInfConfiguration.java:409) at org.eclipse.jetty.webapp.MetaInfConfiguration.scanForTlds(MetaInfConfiguration.java:326) at org.eclipse.jetty.webapp.MetaInfConfiguration.scanJars(MetaInfConfiguration.java:143) at org.eclipse.jetty.webapp.MetaInfConfiguration.preConfigure(MetaInfConfiguration.java:94) at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:483) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:519) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41) at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188) at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:499) at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:147) at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:180) at org.eclipse.jetty.deploy.providers.WebAppProvider.fileAdded(WebAppProvider.java:458) at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:64) at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:610) at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:529) at org.eclipse.jetty.util.Scanner.scan(Scanner.java:392) at org.eclipse.jetty.util.Scanner$1.run(Scanner.java:329) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)[2016-10-27 10:26:27,252] Artifact tapestry-atmosphere-demo:war: Artifact is deployed successfully[2016-10-27 10:26:27,252] Artifact tapestry-atmosphere-demo:war: Deploy took 2,079 millisecondsDisconnected from the target VM, address: '127.0.0.1:57612', transport: 'socket'

感谢您花时间阅读/思考这个问题。

最佳答案

xxx.jar!/yyy 表示您正在尝试从 xxx.jar 加载资源 /yyy。这是到资源的绝对路径。

通常,会调用类似 MyClass.class.getResource("/yyy") 的内容。

在这种特殊情况下,您正在从 jar 中加载资源 "" (空字符串),并且该资源显然不存在。可能资源名称未正确传播。

关于java - 谁能告诉我们是什么!方法? "java.io.FileNotFoundException: JAR entry WEB-INF/lib/antlr-runtime-3.5.2.jar!/not found",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40280107/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com