当前位置: 首页 > 知识库问答 >
问题:

localhost上的TomcatV9.0服务器遇到了一个问题,原因是:java.io.FileNotFoundException

司徒炎彬
2023-03-14

我正在尝试使用2个jar文件在Eclipse中运行TomcatV9.0服务器:

taglibs-standard-impl-1.2.5.jar taglibs-standard-spec-1.2.5.jar

但我总是遇到这样的错误消息:“localhost的服务器TomcatV9.0服务器未能启动。”而错误日志表明它是由引起的,原因是:java.io.fileNotfoundexception:C:\users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\pm4\web-inf\lib\taglibs-standard-impl-1.2.5.jar(系统找不到指定的路径)

我仔细检查了我的jar文件路径,发现它们与项目的其余部分在正确的位置:

  • C:\users\abdc\desktop\webcontent\web-inf\lib\taglibs-standard-impl-1.2.5.jar C:\users\abdc\desktop\webcontent\web-inf\lib\taglibs-standard-spec-1.2.5.jar

任何洞察力都将非常感谢。这是我的错误日志:

Jul 11, 2020 12:39:50 AM org.apache.catalina.core.StandardContext backgroundProcess
WARNING: Exception processing loader [WebappLoader[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PM4]]] background process
java.lang.IllegalStateException: java.io.FileNotFoundException: C:\Users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (The system cannot find the path specified)
    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:101)
    at org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:256)
    at org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281)
    at org.apache.catalina.webresources.Cache.getResource(Cache.java:62)
    at org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216)
    at org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225)
    at org.apache.catalina.loader.WebappClassLoaderBase.modified(WebappClassLoaderBase.java:740)
    at org.apache.catalina.loader.WebappLoader.modified(WebappLoader.java:350)
    at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:294)
    at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5527)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1353)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1335)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\Users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (The system cannot find the path specified)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:221)
    at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:206)
    at org.apache.catalina.webresources.AbstractArchiveResourceSet.openJarFile(AbstractArchiveResourceSet.java:307)
    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:97)
    ... 21 more

Jul 11, 2020 12:40:00 AM org.apache.catalina.core.StandardContext backgroundProcess
WARNING: Exception processing loader [WebappLoader[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/PM4]]] background process
java.lang.IllegalStateException: java.io.FileNotFoundException: C:\Users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (The system cannot find the path specified)
    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:101)
    at org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:256)
    at org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281)
    at org.apache.catalina.webresources.Cache.getResource(Cache.java:62)
    at org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216)
    at org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225)
    at org.apache.catalina.loader.WebappClassLoaderBase.modified(WebappClassLoaderBase.java:740)
    at org.apache.catalina.loader.WebappLoader.modified(WebappLoader.java:350)
    at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:294)
    at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:5527)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1353)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1357)
    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1335)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\Users\abdc\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\PM4\WEB-INF\lib\taglibs-standard-impl-1.2.5.jar (The system cannot find the path specified)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.zip.ZipFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at java.util.jar.JarFile.<init>(Unknown Source)
    at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:221)
    at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:206)
    at org.apache.catalina.webresources.AbstractArchiveResourceSet.openJarFile(AbstractArchiveResourceSet.java:307)
    at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:97)
    ... 21 more

共有1个答案

谷彦君
2023-03-14

错误的路径,U必须将您的jar文件粘贴在此路径中:

C:\users\abdc\eclipse-workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\pm4\web-inf\lib\

 类似资料:
  • 在react native中遇到问题“无法安装应用程序。请确保您拥有Android开发环境”

  • 我编写了一个maven web服务,它引用了另一个项目。web服务本身仅包含2个pom条目: jersey容器servlet:2.13 web服务POM: 项目1也是一个maven项目,只有一个pom条目,另一个本地项目(我们称之为项目2)。 项目2又是一个maven项目,其pom文件包含5个条目: lang-猜测: 0.0.7 Stanford-corenlp: 3.5.2 斯坦福-科伦坡: 3

  • 我试图使用Maven作为服务器在Tomcat8上运行。我对这两个是新手,所以我有一个示例文件,我没有做,应该打印‘欢迎’。但是,我收到这个错误 请求的资源不可用。 提前致谢:)

  • 运行一段时间服务占内存会很大 在本地telnet服务端口都不通 telnet 127.0.0.1 8082 重启服务之后问题会消失,但是运行一段时间又会重现

  • 我创建并尝试使用构建项目,但它不工作。不是这个项目,我试着构建我的所有项目,但在我的ubuntu笔记本电脑上不工作 [信息]扫描项目...从中心下载:https://repo . maven . Apache . org/maven 2/org/spring framework/boot/spring-boot-starter-parent/2 . 6 . 11/spring-boot-start

  • 当我试图在调试模式下运行eclipse时,我遇到了一个问题。我在eclipse中将app jar添加到Tomcat6.0中,当我试图调试或启动tomcat服务器时,它会一次又一次地抛出这个错误。我尝试在管理模式下运行eclipse,但即使这样也没有帮助。PFB错误详细信息! 正在发布配置...将文件复制到C:/software/software/apache-tomcat-6.0.41/backu