I am just beginning my first Java/Eclipse 3.4/Tomcat project and not finding much instructive documentation. Tomcat docs, for example, apparently say nothing about Eclipse.
I have now got Tomcat running under Eclipse, and created a new "Dynamic Web" project, and even a servlet through the Eclipse menu. But I now have no idea how to compile/deploy it. Where does an ant build script go? How is it invoked by ant? How should a build get deployed to Tomcat?
If anyone knows of a good tutorial on this, I'd appreciate a pointer.
Um, they would do it in order to help people use their product? I recently did a Google Android project, and the start up documentation - including how to create, deploy and debug in Eclipse - is awesome. I didn't have to ask a single question to get my first application running.
I was hoping that the Eclipse help would provide a nice web app tutorial (it has a decent Java SE app tutorial), but no such luck. I googled for such a tutorial and found the usual problems with the hits I got - almost every tutorial was hopelessly out of date. But I found one that was fairly recent: http://www.windofkeltia.com/j2ee/wtp-tutorial.html
Disclaimer: I haven't tried out the tutorial so don't know how good it is.
Joseph Arceneaux wrote:But I now have no idea how to compile/deploy it. Where does an ant build script go? How is it invoked by ant? How should a build get deployed to Tomcat?
Personally, I use Eclipse as an editor (a very powerful one, of course). I follow the Tomcat Developer's Guide on how to arrange, build and deploy my application. In other words, I don't use Eclipse to compile and deploy, I use Ant at the command line. This way my deployment process is the same for my development and production environments.