• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How going from .java to a deployment

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Greetings everyone,

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.

Thanks,
Joe

 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joseph Arceneaux wrote:Tomcat docs, for example, apparently say nothing about Eclipse.


Why on earth would they? Look for IDE documentation with the IDE.

As this is about Eclipse, it's been moved to the IDEs forum.
 
Joseph Arceneaux
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter, thanks, that's a pretty good tutorial. It does not mention a build.xml file, however - is this perhaps unnecessary for web projects in Eclipse? Will it just build the thing properly?
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
How do they get the deer to cross at the signs? Or to read this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic