gpt4 book ai didi

java - tomcat没有运行eclipse应用程序

转载 作者:行者123 更新时间:2023-11-30 11:08:22 26 4
gpt4 key购买 nike

直到昨天,我一直在为所有 Web 应用程序使用 eclipse 和 tomcat 7.0,但不幸的是,我丢失了我的 eclipse 文件夹(这是我正在运行的 exe)和临时文件夹(这是工作区目录),所以我尝试在新项目中添加新项目workspace(home/xx/newtemp) 并尝试通过 tomcat 7.0 运行,但我收到“无法清除过时文件的服务器:nulljava.lang.NullPointerException"。这里我用图片展示我的问题,

enter image description here

即使我试过了,

1 stop server

2 project -> clean

3 project build (I had automatic build disabled)

4 delete server

5 delete Servers folder

6 restart Eclipse

还有,

Click on Servers tab and Stop the server in use if it's running
Right click on the server again and select Clean...
Right click again and select Clean Tomcat Work Directory...

当我执行清理 Tomcat 工作目录时,出现如下图所示的错误,

并且 服务器仅在 tomcat 7.0 中切换位置。

enter image description here

如何解决这个问题?

最佳答案

您必须删除目录中的 .snap 文件:

<workspace-directory>\.metadata\.plugins\org.eclipse.core.resources

删除该文件后,就可以正常启动Eclipse了。

Source

关于java - tomcat没有运行eclipse应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28578170/

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