|
APACHE TOMCAT
6 (6.0.18)
APACHE TOMCAT 5.5 INTERMEDIATE SERVLETS & JSP ADVANCED SERVLETS & JSP JAVASERVER FACES (JSF) JSF 1.x JSF 2.0 AJAX & GWT JAVASCRIPT & AJAX BASICS PROTOTYPE SCRIPTACULOUS JQUERY DOJO GWT 2.0 SPRING HIBERNATE & JPA JAVA 6 PROGRAMMING JAKARTA STRUTS EJB3 WEB SERVICES WITH AXIS2 SCWCD TUTORIALS IN CHINESE TUTORIALS IN JAPANESE
ABOUT THE INSTRUCTOR COURSE REVIEWS JSF 2.0, JSF 1.x, & MYFACES AJAX (w/ JQUERY, DOJO, EXT...) GWT 2.0 INTERMEDIATE SERVLETS & JSP SPRING FRAMEWORK HIBERNATE & JPA ADVANCED SERVLETS & JSP JAVA 6 PROGRAMMING JAKARTA STRUTS 1.x & STRUTS 2 SCWCD CUSTOMIZED ON-SITE PUBLIC TRAINING SCHEDULE
|
table of contents• Executive Summary• Unzipping Tomcat • Installing Eclipse • Telling Eclipse about Tomcat • Running Tomcat • Importing and Testing a Sample App • Making a New Blank App • Adding Code to a New App • Testing New Apps • Tomcat/JSP Web Hosting Providers • More Information Tutorial: Using Tomcat 6 with Eclipse
Executive SummaryThe time it takes to download an IDE and learn the barebones basics of use will be very quickly recouped by the savings in development, debugging, and deployment times. To get started with web apps in Eclipse, you only need to know a very small number of features. You can gradually learn the advanced capabilities at your leisure. Here is a quick summary of basic use; see the next sections for details on these core features.
If you find these free tutorials helpful, we would appreciate it if you would link to us. For information on commercial Web hosting providers that support Tomcat, see the JSP hosting page. Unzip TomcatUnzip tomcat-6.0.18-preconfigured.zip into the top level of the C drive. This should result in C:\apache-tomcat-6.0.18\. This version of Tomcat has the following settings already in place. For details on customizing this configuration, please see the detailed configuration guide.
Install EclipseGo to http://www.eclipse.org/downloads/. Choose "Eclipse IDE for Java EE Developers", download, and unzip. Install with all the default settings. Start it and select "Workbench". Tell Eclipse about TomcatClick on Servers tab at bottom. R-click, New, Server, Apache,
Tomcat v6.0, navigate to folder, OK. Run Tomcat
Click on Servers tab at bottom. R-click on Tomcat v6.0, choose "Start".
Open http://localhost/ in a browser: you should see
an empty page showing a blank directory listing (but not
a 404 error). Eclipse incorrectly fails to copy the welcome pages when
it sets up Tomcat, so if you want the friendlier welcome page, go to
your-eclipse-workspace\.metadata and search for "ROOT". Copy all of the files from
C:\apache-tomcat-6.0.18\webapps\ROOT into the ROOT folder inside
your-eclipse-workspace\.metadata\...\ROOT.
Import a Sample App and Test
Grab
intro.zip, save it, and import it into Eclipse.
Use File, Import, General, Existing Projects, Select archive file.
Then click Browse and navigate to intro-app-eclipse.zip.
Making New Apps in Eclipse
Adding Code to New Apps in Eclipse
Testing New Apps in EclipseFollow same procedure as given in example above with "intro" app: Click on Servers tab at bottom. R-click on Tomcat v6.0 Server, choose "Add and Remove Projects". Choose app. Start Tomcat if not already running. Open http://localhost/appName/ in browser. (Unlike with MyEclipse, sometimes you have to restart server after adding a new project. To do so, R-click server and choose "Restart".) |
announcements
Too few developers for Feb 17-19: CA (SF)
Rich Internet Apps Feb 22-26: CA (SF) JSF 2.0 (JSF2 at last!) March 1-5: CA (SF)
Java EE with Apr 26-30: CA (SF)
Java 6 Programming: May 3-7: MD (JHU)
Web App Development May 10-14: MD (JHU) Courses at CEU's Now Available
|
||||||||||||
| © 2009 coreservlets.com | Original design by TBIQ | Hosting from Kattare | ||||||||||||||





