gpt4 book ai didi

java - 无法清除过时文件的服务器 : null java. lang.NullPointerException

转载 作者:行者123 更新时间:2023-11-30 06:15:32 25 4
gpt4 key购买 nike

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

注意:即使 tomcat 已启动并且主页在 localhost:8081 中运行,但是当我添加新项目并在 tomcat 中运行时,出现了相同的错误并且没有任何反应。

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...

还有,

you have to delete the .snap file located in the directory :

<workspace-directory>\.metadata\.plugins\org.eclipse.core.resources
After deleting this file, you could start Eclipse with no problem.

还有,

To resolve this issue you have to delete tmp folder in the following directory

<workspace-directory>\.metadata\.plugins\org.eclipse.wst.server.core
If there is any problem on deleting this folder then restart your eclipse then again delete that folder.

我尝试了很多方法,但我找不到解决方法。

我希望有人能帮我解决这个问题。

最佳答案

我正在使用 eclipse Luna 4.4.2

  1. 从 Windows 打开“显示 View ”选项卡 >“显示 View ”>“其他...”
  2. 浏览服务器文件夹 > 服务器并确定
  3. 在服务器选项卡上,右键单击服务器并 > 添加和删除...
  4. 点击<<全部删除>完成
  5. 再次右键单击服务器并清理它。
  6. 再次转到“添加和删除...”并将您的项目添加到“已配置”框中。
  7. 添加项目后单击“完成”。
  8. 然后再次启动您的服务器。

注意:您不需要删除并重新创建您的服务器。

enter image description here

关于java - 无法清除过时文件的服务器 : null java. lang.NullPointerException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28604714/

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