java web项目导入问题

J2EE 码拜 9年前 (2015-04-09) 1302次浏览 0个评论

这个项目是以前用myeclipse8.5做的,那时没问题,但最近更新了10.7版本,然后导入就出现如下错误,java web项目导入问题
请问如何解决啊?按redeploy就出现如下错误.
java web项目导入问题
用外置tomcat和内置的tomcat都出现同样错误.
他貌似提示是有些文件被锁定了??还有他说需要停止什么服务啊?部署jxzlpjxt这个项目时我还没有开始tomcat服务的.
在10.7运行刚新建的web项目是完全没问题的.麻烦知道的帮忙解决一下,谢谢!
对了.以前是用win7写的,现在是win8.1.jdk是6.几,现在这个jdk是7.几.不过应该是没关系吧?

java web项目导入问题
看下进程里面是不是有个tomcat在运行
java web项目导入问题
先去tomcat的里面把webapp中的工程给删掉。。。
java web项目导入问题
这是因为这个项目已经存在tomcat了 
进入你安装的tomcat目录下面webapps文件夹的jxzlpjxt项目,然后导入试试吧!
java web项目导入问题
引用 1 楼 a470577391 的回复:

看下进程里面是不是有个tomcat在运行

没有呀,而且我没装外置tomcat的时候也是没部署成功的

java web项目导入问题
引用 2 楼 AA5279AA 的回复:

先去tomcat的里面把webapp中的工程给删掉。。。

试过了,还是不行,导入其他以前的项目也是出现那样的错误
Deployment failure on Tomcat  7.x. Could not copy all resources to G:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jxzlpjxt. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at G:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jxzlpjxt

java web项目导入问题
引用 3 楼 hh7551035 的回复:

这是因为这个项目已经存在tomcat了 
进入你安装的tomcat目录下面webapps文件夹的jxzlpjxt项目,然后导入试试吧!

试过了,还是不行,导入其他以前的项目也是出现那样的错误
Deployment failure on Tomcat  7.x. Could not copy all resources to G:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jxzlpjxt. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at G:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jxzlpjxt

java web项目导入问题
15分
引用 5 楼 hxckalven 的回复:
Quote: 引用 2 楼 AA5279AA 的回复:

先去tomcat的里面把webapp中的工程给删掉。。。

试过了,还是不行,导入其他以前的项目也是出现那样的错误
Deployment failure on Tomcat  7.x. Could not copy all resources to G:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jxzlpjxt. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at G:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jxzlpjxt

这段翻译一下的话就是这个文件夹被锁不可用,所以工程部署补上。。
两个建议吧,第一个查看一下这个文件夹的权限,或者直接chmod 777 file 。
第二就是换一个tomcat的安装路径看看。。
挺怪的,tomcat文件夹怎么会被锁呢

java web项目导入问题
项目在另外的tomcat中运行着
java web项目导入问题
引用 7 楼 AA5279AA 的回复:
Quote: 引用 5 楼 hxckalven 的回复:
Quote: 引用 2 楼 AA5279AA 的回复:

先去tomcat的里面把webapp中的工程给删掉。。。

试过了,还是不行,导入其他以前的项目也是出现那样的错误
Deployment failure on Tomcat  7.x. Could not copy all resources to G:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jxzlpjxt. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at G:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\jxzlpjxt

这段翻译一下的话就是这个文件夹被锁不可用,所以工程部署补上。。
两个建议吧,第一个查看一下这个文件夹的权限,或者直接chmod 777 file 。
第二就是换一个tomcat的安装路径看看。。
挺怪的,tomcat文件夹怎么会被锁呢

我用自带的tomcat都提示同样的错误啊..对了.你的workspaces文件属性是有勾选只读的吗?我的是,而且改变了,关闭还是恢复成只读.是myeclipse本来这样还是?

java web项目导入问题
10分
是不是用了SVN呢,把LOCK文件删掉
java web项目导入问题
引用 10 楼 yulongde77 的回复:

是不是用了SVN呢,把LOCK文件删掉

没用SVN啊.只是单纯的将8.5开发的项目导入到10.7版本上..难道是win8.1系统的缘故?

java web项目导入问题
应该是那个项目在运行的时候我是直接复制出来的,有些文件当时是tomcat运行着不能拉出来,所以就出现了这样的错误.下次不能犯了..

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明java web项目导入问题
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!