运行jsp文件时出错 [英] Getting error while running jsp file

查看:198
本文介绍了运行jsp文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



发生问题



'发布到Tomcat v6.0服务器在本地主机'遇到问题
发布失败与多个错误
无法替换为临时文件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工作区,并将服务器也保留在工作区内。现在它正在为我工​​作。解决方案是我们应该在同一个文件系统中的服务器和eclipse工作空间。


I have created a simple Hello.jsp program in my eclipse(juno).When I tried to run this jsp file by run on server,getting below error

problem occurred,

'Publishing to Tomcat v6.0 Server at localhost' has encoured a problem Publishing failed with multiple errors Could not replace with temp file C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30730.jsp. Could not replace with temp file C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30731.MF. Could not replace with temp file C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30732.xml.

In the error log, getting the below details

!ENTRY org.eclipse.jst.server.tomcat.core 4 0 2013-12-11 22:46:11.654 !MESSAGE Publishing failed with multiple errors !SUBENTRY 1 org.eclipse.wst.server.core 4 0 2013-12-11 22:46:11.654 !MESSAGE Could not replace with temp file 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 Could not replace with temp file 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 Could not replace with temp file C:\workspace.metadata.plugins\org.eclipse.wst.server.core\tmp0\temp\tmp30732.xml.

I have deleted eclipse & tomcat server, then reinstalled again. But still getting the same error.I tried by selecting server location as use custom location and giving different workspace path. But nothing works.

I'm using eclipse Juno, apache tomcat-v6.0.37, jdk 1.6

Can anyone please help me on this issue? Thanks in advance

解决方案

I have created a new eclipse workspace in another directory and kept the server also inside the workspace. Now it is working for me.The solution is we should have the server and eclipse workspace in same file system.

这篇关于运行jsp文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆