I am developing a web application using JSP & Servlet.(IDE: Eclipse, Container: Tomcat7.0)
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.
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.
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.
Thanks in advance..
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.
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.