【问题标题】:Getting error while running jsp file运行jsp文件时出错
【发布时间】:2013-12-29 19:56:02
【问题描述】:

我在我的 eclipse(juno) 中创建了一个简单的 Hello.jsp 程序。当我尝试通过在服务器上运行这个 jsp 文件时,出现以下错误

出现问题,

'Publishing to Tomcat v6.0 Server at localhost' 遇到了问题 发布失败,出现多个错误 无法用临时文件 C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30730.jsp 替换。 无法用临时文件 C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30731.MF 替换。 无法用临时文件 C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30732.xml 替换。

在错误日志中,获取以下详细信息

!ENTRY org.eclipse.jst.server.tomcat.core 4 0 2013-12-11 22:46:11.654 !MESSAGE 发布失败,出现多个错误 !SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-12-11 22:46:11.654 !MESSAGE 无法替换为临时文件 C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30730.jsp。 !SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-12-11 22:46:11.654 !MESSAGE 无法替换为临时文件 C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30731.MF。 !SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-12-11 22:46:11.654 !MESSAGE 无法替换为临时文件 C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30732.xml。

我已经删除了eclipse和tomcat服务器,然后重新安装了。但仍然得到相同的错误。我尝试选择服务器位置作为使用自定义位置并提供不同的工作区路径。但没有任何效果。

我正在使用 eclipse Juno、apache tomcat-v6.0.37、jdk 1.6

谁能帮我解决这个问题?提前致谢

【问题讨论】:

  • 您确定没有文件系统错误或权限问题?

标签: eclipse jsp tomcat6


【解决方案1】:

我在另一个目录中创建了一个新的 eclipse 工作区,并将服务器也在工作区中。现在它对我有用。解决方案是我们应该将服务器和 eclipse 工作区放在同一个文件系统中。

【讨论】:

    【解决方案2】:

    其中任何一个都对我有用。我从我的 tomcat 安装中删除了 temp 文件夹,并从 wtpweapps 文件夹中删除了项目文件夹(导致问题的文件夹),它工作正常。

    【讨论】:

      猜你喜欢
      • 2014-07-21
      • 1970-01-01
      • 1970-01-01
      • 2011-02-02
      • 2014-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多