When using tomcat within Eclipse why would I ever not want to use the tomcat installation as checked in the attached image. I always use the "Tomcat Installation" Are there advantages/disadvantages of using the other Tomcat server locations.
In fact, I always Use Workspace Metadata
. When you say Use workspace metadata, Eclipse copies your files (class files, jsps, server.xml, context.xml) to /.metadata/.plugins/org.eclipse.wst.server.core/tmp0. It then starts Tomcat using these files. It does not change the Tomcat installation directory at all. Note that this doesn't copy the tomcat files, just the files which come from your project.
If you choose Use Tomcat Installation
, then it copies your files into the Tomcat installation directory, and boots it from there.
If, like me, you're developing multiple projects from multiple workspaces, then this makes a big difference. With Use Workspace Metadata
you will never get any interference between workspaces. For instance, it's possible that when rebooting Tomcat, one project will be in a bad state and your logs will be filled with stuff from another project. It's better to have two separate locations, and the workspace is a good place for this.
Always try to use use workspace metadata ...
this option delpoys the web app in the workspace directory
~WORKSPACE\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
so you have different work spaces for different projects , you will have applications deployed in different spaces and this solves ambiguity in deployment.
even if you have singe application, this is recommended
if you select
use tomcat installation...
,
you will have to be careful while dealing with multiple applications as the old application will be overridden by the newly deployed web application.
when you select
use custom location ...
then you need to be more careful while handling multiple applications as you manually give the locations for deployment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With