|
APACHE TOMCAT
6
APACHE TOMCAT 5.5 INTERMEDIATE SERVLETS & JSP ADVANCED SERVLETS & JSP SCWCD JAKARTA STRUTS JAVASERVER FACES (JSF) AJAX & GWT (Google Web Toolkit) Tutorial PROTOTYPE SCRIPTACULOUS JAVA 5 & 6 PROGRAMMING TUTORIALS IN CHINESE TUTORIALS IN JAPANESE
ABOUT THE INSTRUCTOR COURSE REVIEWS JSF & APACHE MYFACES AJAX & GWT (Google Web Toolkit) Training INTERMEDIATE SERVLETS & JSP ADVANCED SERVLETS & JSP SCWCD JAKARTA STRUTS JAVA 5 & 6 PROGRAMMING CUSTOMIZED ON-SITE PUBLIC COURSE 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 • More Information Using Tomcat 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. I personally feel that the extra features of MyEclipse more than justify the very small cost vs. the totally free regular Eclipse IDE described here, but this is definitely a matter of taste, and both versions are widely used. Here is a quick summary of use; see the next sections for details.
Unzip TomcatUnzip tomcat-6.0.16-preconfigured.zip into the top level of the C drive. This should result in C:\apache-tomcat-6.0.16\. 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. Iinstall 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. Unfortunately, Eclipse (unlike MyEclipse) does not copy
all of the Tomcat configuration files when you set up a new Tomcat version.
So, you have to do this by hand.
This step is critical!
Copy web.xml, server.xml, and context.xml from
tomcat-dir/conf (e.g., C:\tomcat-6.0.16\conf) to workspace/Servers/Tomcat v6.0 Server. You can copy to the filesystem or directly to the Eclipse
interface as shown below. 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).
Import a Sample App and Test
Grab
intro-app-eclipse.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 inEclipseFollow 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. If so, R-click server and choose "Restart".) More InformationOnline documentation
|
announcements
The following public
Rich Internet Apps October 20-24, 2008
Web App Development October 13-17, 2008
Java Programming: August 18-22, 2008 Courses at CEU's Now Available
|
||||||||||||
| © 2008 coreservlets.com | Original design by TBIQ Technologies | ||||||||||||||







