How to use Tomcat 8 in Eclipse?

后端 未结 11 852
广开言路
广开言路 2020-11-29 01:02

EDIT 2014-02-07: Eclipse Luna is here, and support for Tomcat 8 is included in the bundled WTP : ) Happy days!

Tomcat 8 is still in development, but

相关标签:
11条回答
  • 2020-11-29 01:50

    I have tried below and it worked for me.

    1. In eclipse go to Help->Eclipse Marketplace
    2. Type JST extension in search box.
    3. Install JSP Adapters for Luna
    4. Restart the eclispe
    5. You should be able to see Tocmat 8 server while adding new server.
    0 讨论(0)
  • 2020-11-29 01:52

    To add the Tomcat 9.0 (Tomcat build from the trunk) as a server in Eclipse.

    Update the ServerInfo.properties file properties as below.

    server.info=Apache Tomcat/@VERSION@
    server.number=@VERSION_NUMBER@
    server.built=@VERSION_BUILT@
    
    
    server.info=Apache Tomcat/7.0.57
    server.number=7.0.57.0
    server.built=Nov 3 2014 08:39:16 UTC
    

    Build the tomcat server from trunk and add the server as tomcat7 instance in Eclipse.

    ServerInfo.properties file location : \tomcat\java\org\apache\catalina\util\ServerInfo.properties

    0 讨论(0)
  • 2020-11-29 01:52

    The latest version of Springsource STS (3.6) supports Tomcat 8. It is based on eclipse Luna 4.4 and supports Java 8. Have at it!

    0 讨论(0)
  • 2020-11-29 01:52

    Alternatively we can use eclipse update site (Help -> Install New Features -> Add Site (urls below) -> Select desired Features).

    For Luna: http://download.eclipse.org/webtools/repository/luna

    For Kepler: http://download.eclipse.org/webtools/repository/kepler

    For Helios: http://download.eclipse.org/webtools/repository/helios

    For older version: http://download.eclipse.org/webtools/updates/

    0 讨论(0)
  • 2020-11-29 01:54

    In addition to @Jason's answer I had to do a bit more to get my app to run.

    • Download & unzip Eclipse IDE for Java EE Developers (Note the EE edition)
    • Download & unzip Eclipse's Web Tools Platform Stable (Milestone) 3.6+
    • Overwrite the two folders in the Eclipse IDE, with the WTP folder(s) (features & plugins folders)
    • Download and unzip Tomcat 8
    • In eclipse new -> other -> server -> Tomcat 8 (choose the unzipped location)
    • If you get a 404, click the Tomcat 8 in the Servers view -> Server Locations -> Change to Use Tomcat installation, and change the Deploy path: to webapps * (If you can't edit this, delete any published webapps)
    0 讨论(0)
提交回复
热议问题