Reputation: 2716
I have tomcat setup from eclipse, so I don't have to copy the war over every time to the server. I followed some online tutorial (don't recollect which one) to set it up. I see the below issue when I click on publish -
I clicked on add and remove of my project, and published again. No change. Its still grayed out. I have set it up in such a way, that all the logs I'd typically see on the server can now be viewed on my local machine. I can't recollect how I did the setup, but as of now, I see the logs aren't getting populated either. Can anyone please help me with both these issues?
Upvotes: 1
Views: 75
Reputation: 14164
You can deploy a Tomcat application "in-place", by putting a custom <Context>
element in your server.xml. This context can refer to a /www
folder within your project, with your project output-path set to compile into /www/WEB-INF/classes
.
For example:
<!-- JobRoute; run from within Eclipse project.
-->
<Context docBase="C:/WS/jobRoute/www" path="/jr" reloadable="true">
</Context>
Tomcat will then automatically run & reload from the /www folder within your project, can reload automatically when you recompile (if you want), and no deployment whatsoever is necessary.
Typically we use this technique & add a shortcut to start Tomcat (in debug mode) under "External Tools" in Eclipse.
As for your "Eclipse - Tomcat" builtin integration, I've never found them to work well (always difficult to configure, and generally either didn't work or awkward & slow) and gave up on those long ago. So no tips from me there.
Upvotes: 1