Eclipse integrated debugging for Web apps under Tomcat __web

Source: Internet
Author: User
Tags tomcat

The effect that can be achieved

1. Use MVN to develop Web application, without packaging release, instant debugging;

2. Tomcat launches within the Eclipse container



Operation Steps:

1. Install Eclipse-tomcat plugin

Download the plugin to the Http://www.sysdeo.com/eclipse/tomcatplugin website, copy it to \eclipse\dropins, then restart Eclipse, and the Tomcat control icon will appear on the toolbar.

Then configure Prefrence, which has more than one tomcat root node, first of all, select the path of the tomcat that has been installed,

Then in the configuration of the advance is very important, here to choose to debug the project to join the Tomcat classpath, otherwise, can not debug

Next, be sure to tick the corresponding sourcepath, so that debugging can be located to the source code


2. Configure the context of Tomcat (this can be seen in my other article).

Add a WebApp context configuration to Tomcat, such as

Abc.xml, store to C:\Tomcat 6.0\conf\catalina\localhost

Content:

<?xml version= "1.0" encoding= "UTF-8"?>
<context
Docbase= "D:\del\workspace\testWeb\src\main\webapp"
Reloadable= "true" >
</Context>

In this way, access to HTTP://127.0.0.1/ABC, entered the TestWeb this project site, and can be debugged!



Related Article

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.