在Tomcat中部署WAR文件,部署后的问题 [英] Deploy WAR file in Tomcat, Issue after Deployment

查看:111
本文介绍了在Tomcat中部署WAR文件,部署后的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 JSP& Servlet(IDE:Eclipse,Container:Tomcat7.0)

为了学习部署,我做了 / code>在Tomcat7.0上部署的项目文件。我能够在Tomcat服务器上部署它。后来我还可以从我的电脑和LAN中的其他电脑访问它。

To learn deployment, I have made war file of project to deploy on Tomcat7.0. and I was able to deploy it on Tomcat server. Later on I was also able to access it from My Computer and also from other computers in the LAN.

然后我开始使用Eclipse在该应用程序中进行更改。当在Eclipse中工作时,当我尝试从其他计算机访问Deployed Application时,它显示了我相同的应用程序,但是它正在给我修改的输出,因为我已经在eclipse中修改了同一个项目。我在Eclipse中使用相同的服务器。

Then I started using Eclipse to make changes in that application. While working in Eclipse, and when I try to access Deployed Application from other computers it is showing me the same application, but it is giving me the modified output as I have done changes in eclipse to the same project. I am using the same server in Eclipse.

我的问题是,为什么它显示当前的输出,而不是在Eclipse中的Tomcat服务器上显示部署应用程序的输出是开的。

My question is that why it is showing me the current output, and not showing the output of Deployed Application when Tomcat server in Eclipse is ON.

提前感谢

推荐答案

正处于开发阶段,并且希望在应用程序已经部署在服务器上的同时修改应用程序代码,那么您需要更新对部署应用程序的服务器的更改。如果是类,则必须重新加载类,如果JSP只是更新资源。据我所知,Eclipse的免费版本仅允许重新部署应用程序,而不是随后的任何更改。

If you are in the development stage and want to modify the application code while the application already deployed on the server then you need to update changes to the server where the application is deployed. If it's classes you have to reload classes if it JSP just update resources. As far as I know the free version of Eclipse allows only redeploy the application and not any subsequent changes.

同样,在免费版本的Eclipse中,只要在本地或远程内部或外部运行Eclipse,Tomcat服务器只能配置为远程服务器。如果部署到ROOT,它会修改Tomcat服务器配置以运行应用程序。

Again, in the free version of Eclipse the Tomcat server could only be configured as remote one whenever you run it locally or remotely inside or outside of Eclipse. And it modifies Tomcat server configuration to run your application if you deployed to ROOT.

这篇关于在Tomcat中部署WAR文件,部署后的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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