MyEclipse 10 Tomcat Virtual Machine Environment setup

Source: Internet
Author: User
Tags tomcat server

Mental Haggard ~, tangled all day still failed to configure the Mac system under the mind of the Tomcat virtual machine server ~ ~

The reason, may be I use the MyEclipse version is too new ~, a lot of configuration information is easy to find ~ ~ ~ ~ ~ ~ ~

However, in this process can, it is the win system MyEclipse 10 under the Tomcat configuration basically figure out,,,, as follows when the individual to make a note:

One. Tomcat is set up inside the Myeclipseps program, with a few pictures first:


* * Note: There is really nothing special about Tomcat installation, I would simply say:

First download the . zip package from the Tomcat website (note that not too new 7.0 or 8.0 is enough); then "unzip to the current folder" and put the folder in an easy-to-find place, OK.

Since then, the MyEclipse has been added successfully.

Two. Create a Cat Project

Configure a virtual host, named: www.cat.com, to deploy the cat project to the host.

(1). Configure www.cat.com//Create a new folder under the E-packing directory, named:www.cat.com
Edit the [tomcat]/conf/server.xml file and add a host tag under the <Engine> tab:

(2) Configure the host name and IP address mapping, add the following configuration in the Hosts file://In My Computer C disk directly in the upper right corner of the search hosts;

Select Directory as: */windows32/drivers/etc Hosts file.
127.0.0.1 www.cat.com

(3) Deploy Cat to a virtual host://In the toolbar, click the Manage deployments button
Select item and click Add to add Server--

Drop-down Select <custom location>

Custom location: The default managed directory for CAT hosts, with the final location:
E:\www.cat.com\ROOT

Three. Configure as the default Web app and configure the home page for your web app. Finally access the home page in the Cat app via the "www.cat.com" address

There are two options at this time:

1. In the Server.xml <Host> tag of the internal configuration of a <Context> tag, each configuration will need to restart the server//not recommended

2. Add a file Xxx.xml in the [tomcat]/conf/catalina/[localhost] directory to configure it, no need to restart the server

So choose the second way-directly put the application in the virtual Host Management directory, do not need to restart the server:

Select the second configuration, do not need to repeat the application copy to copy, just configure the configuration file to the application path
In the [Tomcat]/conf/catalina/localhost directory, create a root.xml, add the following <Context> tags to the file to configure the Web App

<context docbase= "D:\softspace\Workspaces\MyEclipse10\Cat\WebRoot"/>

Add. xml file Header <?xml version= "1.0" encoding= "UTF-8"?>

Docbase path is the absolute path to the cat project in MyEclipse

* * * Note : If the Tomcat server is not running, the directory [tomcat]/conf does not have a folder named/catalina ...

So there is a second way to start a Tomcat server at least once!!!

Configuration is complete, and the Cat Project can be served by opening the browser input www.cat.com at this point.

MyEclipse 10 Tomcat Virtual Machine Environment setup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.