Eclipse继续运行我的旧Web应用程序 [英] Eclipse keeps running my old web application

查看:84
本文介绍了Eclipse继续运行我的旧Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OMG - Eclipse(3.3欧罗巴)正在发生什么 - 有人来到这个问题(记住卸载不同的Tomat容器和安装其他的东西 - 但是无论如何这是另一个故事)



当我更改一行代码或删除我的项目中的一个类 - 当我来调试 - 它实际上是一条被注释掉的行,并运行该行不管! !例如



// System.out.println(你不能读这个!);



更新:这可以通过设置Project - >自动构建来解决(见下面的回答)。






剩余问题:



Eclipse没有将我的热部署文件夹保持最新,并且对我的项目进行了最新的更改:



我发现我的恐惧是,我的项目的一些旧的消费者在我认为Eclipse用于热部署或某些东西的文件夹中悬挂了。

C:\ myJavaCode.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\myWebApp



基本上它实际上并不是复制在我的工作目录中的任何更改都会发生变化!????



...无论如何 - 为了保持我的项目最新 - 我必须修改这个文件夹也是 - 完全不认可 - 因为你不能以这种方式开发 - 这将需要你们!无论如何,如果有人可以帮助我解释一下我做了什么愚蠢的事情,让我在这个混乱,我可以摆脱这个混乱 - 我真的很感激。

解决方案

看看:


Windows>首选项>服务器>启动...


和:


项目>自动构建


也许你不小心禁用了自动部署功能。


OMG - what is going on with Eclipse (3.3 Europa) - has anyone come accross this problem (bearing in mind I have been messing about with uninstalling different Tomat containers and installing others - but anyway thats another story)

When I change a line of code or remove a class within my project - when I come to debug - it actually goes to a line that is commented out and runs that line regardless!!!! e.g.

//System.out.println("you should not be able to read this!");

UPDATE: This can be solved by setting Project -> Build Automatically (see answer below).


REMAINING PROBLEM:

Eclipse is not keeping my hot deploy folder current with the latest changes to my project:

I found out to my horror that some old remenants of my project are 'hanging around' in the folder that I think Eclipse uses for hot deploys or something

C:\myJavaCode.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\myWebApp

basically it is not actually copying accross any changes made in the classes of my working dir!?!??

...anyway - in order to keep my project up to date - I have to modify this folder too - TOTALLY UNACCEPTABLE - as you can't develop in this way - it would take you eons! Anyway, if anyone can help explain to me what stupid thing I have done to get me in this mess and how I can get out of this mess - I would really appreciate it.

解决方案

Have a look at:

Windows>Preferences>Server>Launching...

and:

Project>Build Automatically

maybe you accidentally disabled the auto-deploy features.

这篇关于Eclipse继续运行我的旧Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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