Some problems I encountered when using the Tomcat plug-in eclipse

Source: Internet
Author: User

 

Configure tomcat to eclipse

1. Download and decompress the Tomcat plug-in and copy it to the plugins folder under the eclipse installation directory.

2. Open eclipse-window-preferences to configure the Tomcat plug-in, as shown in

Eclipse3.7 problems encountered when installing Tomcat plug-ins and VSS plug-ins:


After downloading eclipse3.7, you want to add Tomcat plug-ins and VSS plug-ins. Extract the downloaded files in the traditional way, put them in the plugins folder, and start eclipse3.7. However, the Tomcat plug-in icon is not found, test VSS, also failed.

 

Solution:
Put the files decompressed by tomcat or VSS in the dropins folder and restart eclipse. The configuration is successful. (The dropins folder is in the eclipse installation directory)

The dropins folder appears to be something after eclipse3.4 and is mainly used to manually install the plug-in. The plugin added to the dropins file must meet the following directory format:

Note: site-1.6.17 SVN plug-in and Directory

Directory required by ECLIPSE

Features and Plugins are plug-ins.

 

Put site-1.6.17 in the dropins folder under the eclipse installation directory and restart eclipse.

If the directory format is not met, it will not take effect in the dropins folder.

 

The following are some problems I encountered during development:

1. The default Tomcat port is 8080.
[Url] http: // localhost: 8080/index. jsp [/url]
Cause: Tomcat cannot start normally if other resources occupy port 8080.
Solution: 1. Disable applications that use port 8080.
2. Change the HTTP connection port of the Tomcat server (% tomcat_home %/CONF/server. XML)
<Connector Port = "8080" ....../>

2. After Tomcat is started, it is automatically disabled.
Cause: open another tomcat
Solution: Disable another started Tomcat

3. Deploy Web Applications
1. Copy the war file or web application folder to the % tomcat_home %/Server/webapps/directory.
2. Create an XML file for the Web service that contains only the context content and place it in the % tomcat_home %/Server/webapps/directory. Then, the Web application can be placed anywhere on the hard disk.

4. Tomcat restricts access to specific hosts
<Context Path = "...">
<Value classname = "org, Apach. Catalina. Valves. remoteaddrvalve"
Allow = "127.0.0.1"
Deny = ""/>
</Context>

5. Create a New Tomcat project in eclipse and automatically configure Tomcat attributes in eclipse

(1) Add the <context> attribute % to % tomcat_home %/CONF/server. xml

Or

(2) create an XML file named in the project name in the tomcat_home %/CONF/Catalina/localhost directory and only have the <context> attribute.

If a project is deleted in eclipse and Tomcat is started again, an error is reported that the project file cannot be found. The reason may be that the project has been deleted, but it may not be deleted in the tomcat configuration file. For example, if the file in the tomcat_home %/CONF/Catalina/localhost directory is not deleted, delete it.

 

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.