惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学
小众软件
小众软件
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
U
Unit 42
H
Hackread – Cybersecurity News, Data Breaches, AI and More
云风的 BLOG
云风的 BLOG
IT之家
IT之家
MyScale Blog
MyScale Blog
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
InfoQ
博客园 - 司徒正美

博客园 - Squall

Spring2.5中基于注释的IoC struts2登录拦截器 Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AU hibernate.current_session_context_class 错误 - Squall - 博客园 Lucene中使用Paoding中文分词 ibatis VS hibernate 经典论述 超越传统软件开发技术 ASP 缩略图 (纠错版) persits.jpeg 破解版下载 Cant connect to SQL server with jtds 1.2.2 - Squall The hibernate core class ------ ExportToDB Struts+spring使用随机验证码 SSH 异常 解决 方案 总结 Struts-Logic 标签库 structs - 标签库(html) spring2.0 事务管理以及异常处理之体会 Could not open ServletContext resource [/WEB-INF/applicationContext.xml] ASP 通过正则提取信息内容种的图片 div+css 绝对定位和相对定位
myeclipse tomcat 部署错误
Squall · 2009-01-05 · via 博客园 - Squall

myeclipse tomcat 部署错误:
Deployment failure on Tomcat 6.x. Could not copy all resources to C:\tomcat6\webapps\OAPMS. 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 C:\tomcat6\webapps\OAPMS

问题已解决,记得之前遇到过一次,但这次和前一次又不一样,解决办法:
1. 查看工程下的.mymetadata 看是否少了一个context-root=“” 属性,少的话,加上,值和前边的name属性一样,比如我的:
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="OAPMS"
id="myeclipse.1191910938406"
context-root="/OAPMS"
j2ee-spec="1.4"
archive="OAPMS.war">
<attributes>
    <attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>

2. 查看.classpath 看 classpathentry 属性是否有工程lib没有的jar文件,删掉部署即可。
参考:http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-16783.html

在用MyEclipse6.5做项目时发现这样的问题:

Deployment failure on Tomcat 6.x. Could not copy all resources to E:\tomcat6\tomcat6\webapps\xxx. 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 E:\tomcat6\tomcat6\webapps\xxx

后来经过查找问题发现:我在web-inf/lib目录中替换了一个jar包,而这个jar包并没有在lib库中注册,所以才出现以上的问题!

解决方法:在工程的属性中加入这个包就可以了。