Skip to main content

Setting up Eclipse and Tomcat Page

r-onlineinformation.blogspot.com 

Setting up Eclipse and Tomcat Page

Setting up Eclipse and Tomcat

NOTE: Please do not download any softwares right now. All softwares are already copied into your desktop.
To create Servlet projects, you need to use a version of Eclipse with J2EE support built in. The default version of Eclipse which you get with Ubuntu does NOT include J2EE support, so you have to download a version of Eclipse with J2EE support. You can get it from the Eclipse download site: http://www.eclipse.org/downloads/    (choose according to your hardware configuration and OS)

Version: We are using Eclipse Juno (4.2) Enterprise Edition in the workshop.  We suggest you also use this version, although an older version should also work fine if you are already familiar with it and using it currently.
After downloading, extract the compressed archive on your local file system. Then eclipse can be started by double-clicking on the eclipse executable file.
Further, to run servlets, you need to use the tomcat server. Even the Eclipse version with J2EE does not include the tomcat server, so you have to download and set up tomcat. Details of how to do so are below.

Creating a Tomcat server and Linking from Eclipse

    1. Install Apache Tomcat (version 6 at least), either by
        • using a package manager on your linux installation,
        • Download from moodle
        • or download Apache Tomcat from http://jakarta.apache.org/tomcat and extract the compressed file containing Apache Tomcat on your local file system.
        • DO NOT use the system tomcat installation which is usually on /usr/share/tomcat, since it is not writable by you. If you do this you will run into trouble later.
    2. Add the Apache Tomcat runtimes to Eclipse.  To do so, open Eclipse and do the following:
    • Using the Preferences page, you can define the server runtime environment definitions for the Apache Tomcat server. To define these definitions, complete the following:
      1. From the Window menu, select Preferences.
      2. In the Preferences window, expand Server and then select Runtime Environments.
      3. On the Server Runtime Environments page, click Add. The New Server Runtime Environment wizard opens.
      4. On the New Server Runtime Environment page, expand Apache.
      5. Select one of the following supported Apache Tomcat servers:
        • Apache Tomcat v6.0
        • Apache Tomcat v7.0
      6. When you add a server runtime environment, by default a server is created and added as an entry in the Servers view. The Create a new local server check box is selected by default; do NOT change this setting.
      7. The Tomcat Server page opens when you click Next.
      8. In the Tomcat installation directory field, type or browse to the directory where you extracted the installation files of Apache Tomcat. For example, x:/apache-tomcat-6.0.13, where x is the installation directory of the Apache Tomcat server. Use a directory which is writable by you, NOT the /usr/share/tomcat directory.
      9. Click Finish.
  1. Configure and Test the Apache Tomcat server:
    1. Select Servers tab (look at the bottom right of the screen, along with other tabs such as Markers and Properties). Now right-click and select New > Server. The Define a New Server wizard opens.
    2. In the Select the server type list, select the Tomcat server defined in the previous step.
      1. Tip: If you did not specify the Tomcat install directory, the Define a New Server wizard will prompt you for this information.
    3. Start the Tomcat server. In the Servers view, right-click the Tomcat server and select Start.
    4. Test your setup of the Tomcat server.
      1. Open a Web browser.
      2. Type the Web addresshttp://localhost:8080/. If you see the Apache Tomcat start page, you have successfully set up your Tomcat server.
      3. If you  see a 404 error message, but at least the message comes from Tomcat. Reason for this issue is Eclipse forgets to copy the default apps (ROOT, examples, etc.) when it creates a Tomcat folder inside the Eclipse workspace.  To resolve this  follow bellow steps.
      4.  This is not mandatory
         (Ref to bellow steps: http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html)
      1. Go to  /webapps/ROOT, copy ROOT folder.
      2. Then go to your Eclipse workspace, go to the  .metadata  folder(press ctrl + h to see this hidden folder) , and search for "wtpwebapps". You should find something like your-eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps (or .../tmp1/wtpwebapps if you already had another server registered in Eclipse).
      3. Go to the wtpwebapps folder,  and paste ROOT (say "yes" if it asks for  merge/replace option).
      4. Then reload http://localhost:8080/ to see the Tomcat welcome page.

      reference: iitb.ac.in/moodle
 

Comments

Popular posts from this blog

Create Custom ScreenTips for Shapes (MSOffice-word-2007)

r-onlineinformation.blogspot.com Create Custom ScreenTips for Shapes Shape ScreenTips in Microsoft Office Visio are the boxed text that appears when you point to a shape. Some Visio shapes have built-in ScreenTips—usually the name of the shape (such as the name of a workflow step). However, you can edit existing ScreenTip text or create new ScreenTip text for shapes that don’t have a built-in ScreenTip. To create or edit a ScreenTip: 1. Select the shape. 2. On the Insert menu, click either Shape ScreenTip or Edit Shape ScreenTip, as applicable. 3. In the Shape ScreenTip dialog box, type or edit the ScreenTip text. 4. Click OK.

For Searching CSS Template (Free)

r-onlineinformation.blogspot.com   For Searching CSS Template  http://www.freecsstemplates.org/ http://www.bestfreetemplates.info/ http://www.freecsstemplates.com/ http://www.free-css-templates.com/ http://www.freecsstemplates.in/ http://www.free-css.com/free-css-templates/page1.php http://www.csstemplatesfree.org/ http://csstemplatesmarket.com/ http://csstemplatesfree.net/ http://www.templatemo.com/page/1 http://www.csstemplatesforfree.com/csstemplates.aspx http://all-free-download.com/free-website-templates/ http://www.template4all.com/css/ http://www.csstemplatesforfree.org/ http://www.mediavolo.com/?d=1  you may also search free css template for educational purpose from any famous search engine..  

Some tips in creating a strong password

r-onlineinformation.blogspot.com * Avoid using any words that you can look up in a dictionary. These include common misspellings of words. * If you follow good security practices and try to change your password every say 6 months, do not just increment a digit or the digit in your current password * Avoid creating a password that begins or ends with a number because they can be easily guessed that passwords which have a number in the middle. * Avoid creating a password which someone can easily guess by knowing a little bit about you. This includes names of pets or family members or sports teams. * Avoid creating a password which includes words for popular culture. * Always create a password that requires the usage of both hands on the keyboard. Why is this important? So someone who may be looking over your shoulder don't need to worry about just looking on one side of the keyboard. Again much easier to guess. * Always have a password that uses uppercase and lowercase letters, has n...