eclipse问题,请求帮助..

来源:百度知道 编辑:UC知道 时间:2024/06/18 05:03:53
我的eclipse在修改接口的时候会报错,也就是说在接口中添加方法和在实现类中添加方法的实现就会出现提示框,必须重启服务器,提示内容如下:
标题
Hot code replace failed
提示信息:
org.apache.catalina.startup.Bootstrap at localhost:3039(may be out of
synch) was unable to replace the running code with the code in the workspace.
Reason:
Hot code replace failed - Scheme change not implemented

补充:我是用的myeclipse登陆,版本是MyEclipse 5.1.1 GA
工程没有部署到tomcat中,是在tomcat中将路径指向我的工程目录。

困扰我几天了,每天重启服务器很浪费时间,在网上也没找到可行的解决方法。烦请相告,谢谢..

版本低,换5.5 或 6.5或7.0吧
另:如不想换,Tomcat文件夹conf/server.xml中加:
<Context
crossContext="true"
docBase="D:\workspace\xxxx\WebRoot"
path="/" reloadable="true">
</Context>
即:加上reloadable="true"这个属性

你在编程时,你的tomcate处于运行状态,既然你直接将tomcate指向你的工作目录,建议在编程时将tomcate关闭。

修改类或接口是必须重起服务器的

有些类的修改必须重启,服务器