100 likes | 294 Views
Tomcat & Eclipse. Seamless integration. Content. What is Tomcat? Tomcat integration in Eclipse How to create a project?. What is Tomcat?. Open Source, funded by the Apache Project Servlet container Runs both Java Servlets and Java Server Pages (jsp) Allows hotcode replacement.
E N D
Tomcat & Eclipse Seamless integration (c) 2003 B. de Bruin, chainsoftware
Content • What is Tomcat? • Tomcat integration in Eclipse • How to create a project? (c) 2003 B. de Bruin, chainsoftware
What is Tomcat? • Open Source, funded by the Apache Project • Servlet container • Runs both Java Servlets and Java Server Pages (jsp) • Allows hotcode replacement (c) 2003 B. de Bruin, chainsoftware
Tomcat integration in Eclipse • Plugin handles updating XML / deploying WAR files (c) 2003 B. de Bruin, chainsoftware
How to create a project? • Create a new “Tomcat Project” • Allow the plugin to update XML files: • This '.XML' file refers to the 'server.xml' file in the Tomcat 'conf' folder. The context ist entered in this file.The root URI ist the part of the URL after the host name under which a Web Application can be accessed. (c) 2003 B. de Bruin, chainsoftware
How to create a project? • After finish a structure like this exists: (c) 2003 B. de Bruin, chainsoftware
How to create a project? • Open the 'New Class' wizard and enter the following: (c) 2003 B. de Bruin, chainsoftware
How to create a Project? • Overwrite* the doGet() method, so for example 'Hello World' will be printed out • Select the project and choose 'Tomcat Project -> Update context in 'server.xml' from its context menu (right mouse click on project) • Start Tomcat with the icon in the toolbar or via the menu 'Tomcat -> Start Tomcat'. • *Tip: Select the servlet in the Outline view and choose 'Override Methods...' from its context menu. (c) 2003 B. de Bruin, chainsoftware
Additional Information • http://jakarta.apache.org/tomcat/ • http://www.3plus4software.de/eclipse/tomcat1_en.html (tutorial) • http://www.sysdeo.com/eclipse/tomcatPlugin.html (c) 2003 B. de Bruin, chainsoftware