An existing resource has been found at location:tomcat 问题的解决办法

1.修改项目名称方法:首先修改项目中.project文件的name属性 
<projectDescription> 
<name>echo1</name> 
.................

.... 
然后在项目部署到tomcat中的时候出现以下错误:
An existing resource has been found at location....

2.修改.mymetdata文件中的context-root="/echo"将其中“echo”修改成你修改后的项目名称,最后记得要重起eclipse,重新布署项目就不会出现上面的错误了。 
.mymetdata内容如下: 
<?xml version="1.0" encoding="UTF-8"?> 
<project-module 
  type="WEB" 
  name="echo" 
  id="myeclipse.1217645899031" 
  context-root="/echo" 
  j2ee-spec="1.4" 
  archive="echo.war"> 
  <attributes> 
    <attribute name="webrootdir" value="WebRoot" /> 
  </attributes> 
</project-module>

-------------------------------转载自网络

时间: 2024-07-30 15:32:25

An existing resource has been found at location:tomcat 问题的解决办法的相关文章

js 利用iframe和location.hash跨域解决办法,java图片上传回调JS函数跨域

奶奶的:折腾了我二天,终于解决了!网上有很多例子. 但跟我的都不太一样,费话不多说了,上图   上代码: IE ,firefix,chrome 测试通过 js :这个主页面,部分代码, function submitUpload(id){ $("#imgSrc" + id +"").attr("alt", "图片上传中--"); var imgID = id; if(id>0){ imgID = 1; } var for

An existing resource has been found at location D:\Tomcat 7\apache-tomcat-7.0.55\webapps\futureOA02.

自己在做项目的时候,在Myeclipse里复制粘贴一个工程,保存当前版本,新复制的进行项目的下一个版本开发.然后在项目发布的时候,出现如下问题: 向同学请教了一下,并且上网找了找解决办法.整理如下: 右击项目名 ---> 点击properties --> 在搜索栏里 输入 WEB -->点击WEB -->修改Web Context-root 里当前项目名称 -->OK  重新发布 即可.如下图所示:

An existing resource has been found at location D:\Tomcat 7\apache-tomcat-7.0.55\webapps。。。

这个错误是说你的资源丢失,就是说tomcat无法解析你的.class文件,需要自己重新配置一下. 解决方法: 右击项目名 ---> 点击properties --> 在搜索栏里 输入 WEB -->点击WEB -->修改Web Context-root 里当前项目名称 -->OK 然后重新部署,重新启动服务器访问就可以了.

SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法

问题起因 最近,项目组的里的同事遇到一个问题,他自己负责的模块,SpringMVC的Controller与其他模块的Controller 类名重名了,导致整个工程都起不来了. 后台报的错误是这样的: ××Controller' for bean class [××ontroller] conflicts with existing, non-compatible bean definition of same name and class 午饭时,他一直和我抱怨这个问题,还说找不到办法. 后面我

Resource is out of sync with the file system 解决办法

出现提示: 在eclipse中搜索.删除文件时,有时候会弹出错误对话框,错误摘录如下:Resource is out of sync with the file system...... 问题分析: 这个问题是由于eclipse中文件不同步引起的.在eclipse中,工程文件是由eclipse自动扫描添加的,如果在外部修改了工程目录中的文件但又关闭了自动刷新功能,则会引起文件不同步, 从而搜索或删除文件时出现Resource is out of sync with the file system

window.location.href 失效的解决办法

第一种:在window.location.href 后面加上 window.event.returnValue = false; 如: <a href="#" onclick="window.location.href='http://www.microsoft.com';   window.event.returnValue=false;"> 第二种: 把window.location.href写成 JavaScript:window.location

jedis 连接 redis:Could not get a resource from the pool——我的出错原因和解决办法

windows 下安装的,本机使用 现象:刚装好开发使用好好的, 重启电脑后就报这个错 网上的所有可能都试过,没有用. 最后,放弃所有包装,用最原始的代码进行连接测试: Jedis jedis=new Jedis("127.0.0.1"); jedis.auth("7777");//password jedis.set("firstKey", "hello redis!"); ERR Client sent AUTH, but

Error: Can&#39;t place multiple pins assigned to pin location……解决办法

转载:http://blog.sina.com.cn/s/blog_6f0eeb3301014pi7.html 今天用DE0做VGA实验,在分配管脚后全编译出现下面这样的错误: Error: Can't place multiple pins assigned to pin location Pin_K22 (IOPAD_X41_Y19_N14) Info: Pin B[0] is assigned to pin location Pin_K22 (IOPAD_X41_Y19_N14) Info

Xcode 7提示App Transport Security has blocked a cleartext HTTP (http://) resource load的解决办法

Xcode 7提示App Transport Security has blocked a cleartext HTTP (http://) resource load的解决办法 今天使用Xcode 7打开用Xcode 6开发的网络请求项目,Xcode 7 控制台提示如下: App TransportSecurity has blocked a cleartext HTTP (http://) resource load since it isinsecure. Temporary except