Integrated Tomcat8 in Eclipse

Source: Internet
Author: User
Tags tomcat apache tomcat

First the JDK is determined to be configured.
I. Follow your own system selection tomcat8 download: (http://tomcat.apache.org/download-80.cgi)
Download the decompression.

Two. In Eclipse
File–>new–>other–>server (see the last article without Server) –>server,next–apache, This is only supported to TOMCAT7 and requires some changes to the downloaded Tomcat8 content (refer to address: http://blog.csdn.net/bz151531223/article/details/48767689,http:// blog.csdn.net/yuzhiyuxia/article/details/26282767):
Tomcat–>lib–>catalina.jar (Right-click with winrar) –>org– >apache–>catalina–>util–>serverinfo.properties (double-click to open) –:
The original configuration was modified to:
Server.info=apache Tomcat/ 7.0.47
server.number=7.0.47.0
Three. Configure environment variables, and configure JDK similar to
1, new variable name: catalina_base,
Variable value: F:\Users\Mascot001\ tomcat\apache-tomcat-8.5.15
Here the value of the variable enter the installation location of your tomcat, as follows
2. New variable name: catalina_home,
Variable value: F:\Users\Mascot001\ tomcat\apache-tomcat-8.5.15
3, open path, add variable value:%catalina_home%\lib;%catalina_home%\bin
need to check the front and back do not copy more space, Otherwise the configuration will go wrong
Four, the DOS command entered startup, and Tomcat will be started.

Last question: see if your installation of Eclipse is a Java EE version, it may be installed in a version, there are a lot less plug-ins, resulting in no service, it is recommended to install Java EE version.
If the Java EE version is installed or the service is not found, use the solution: there is no service solution in eclipse (the method for adding plug-ins is similar):
Find Help->installnew Software->work with in: Kepler-http://download.eclipse.org/releases/kepler (enter here to wait a while below resources will appear), looking for Web,xml, The Java EE and OSGi Enterprise development->jst Server adaptersextensions (ticked on the item) –> completed.

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.