myeclipse部署问题看不到变化
我尝试在我的项目中工作,当我更改文件时,它会更改我将项目导入工作区的目录内的文件。但是这些更改没有显示在服务器上,因为服务器正在使用 .metadata/webapps/myapp 等内部的文件夹,
我在这里做错了什么?
Im trying to work in my project, when I change files it changes the file inside the directory that I imported the projects into my workspace. But the changes aren't showing up on the server because the server is using the folder inside .metadata/webapps/myapp etc
what have I done wrong here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来您正在部署到集成 Tomcat 服务器。通常部署到 .metadata/.me_tcat/webapps/myapp 文件夹。这是你的意思吗?如果没有,那么我建议您删除部署,然后再次部署并让部署位置默认。文件夹 .metadata/.me_tcap 只是集成 Tomcat 安装在启动时查找应用程序的位置。
您可以通过查看服务器视图来检查部署位置。扩展集成 Tomcat 服务器。此处显示了您的项目的部署位置。
部署位置应与您的代码保持同步。如果这种情况没有发生,则可能是您所做的更改需要重新部署。我不确定传播更改的条件是什么,但我想在某些情况下可能无法以这种方式自动获取更改。这些更改应该在重新部署时生效。
要进行检查,请创建一个新的 Web 项目,该项目将创建一些默认配置和默认的 index.jsp 文件。将其部署到集成 Tomcat 服务器。现在在index.jsp 文件中进行更改并保存。检查是否在部署位置进行了更改,或者只需运行服务器并检查是否显示新的 index.jsp。
如需更多帮助,我建议您在论坛上发帖:www.myeclipseide.com/forums
Sounds like you're deploying to the integrated Tomcat server. The deployment is normally to the .metadata/.me_tcat/webapps/myapp folder. Is this what you meant? If not then I suggest you remove the deployment and then deploy again and let the deployment location default. The folder .metadata/.me_tcap is simply where the integrated Tomcat installation looks for applications when it starts up.
You can check the deployment location by looking in the servers view. Expand the integrated Tomcat server. The deployment location for your project is shown there.
The deployed location should be kept in synch with your code. If that's not happening, it may be that the changes you're making are the kind that require a redeployment. I'm not sure what the conditions are for propagating changes but I guess there might be some situations where changes can't be picked up automatically in this way. The changes should be picked up on a redeploy.
To check, create a new web project, which will create some default configuration and a default index.jsp file. Deploy this to the integrated Tomcat server. Now make a change in the index.jsp file and save it. Check if the change is made in the deployment location, or simply run the server and check that your new index.jsp gets displayed.
For more help, I suggest you post to the forums at www.myeclipseide.com/forums