Install Tomcat on Mac

Source: Internet
Author: User
Install Tomcat with eclipse

Howto install Tomcat with Eclipse IDE on MacOS X.

What we need:

Tomcat

Eclipse Jee

1. Extract eclipse into your applicationfolder and tomcat to your prefered location for example into your home directory.

2. Change into the Apache-Tomcat-6.0.20/bin directory and make all. Sh files executeable

cd <pathtoyourtomcat>/apache-tomcat-6.0.20/binchmod +x *.sh

3. test if it starts

./setclasspath.sh./startup.sh

Something like this shoshould appear:

./Startup. Sh
Using catalina_base: APACHE-Tomcat-6.0.20.
Using catalina_home: APACHE-Tomcat-6.0.20.
Using catalina_tmpdir: APACHE-Tomcat-6.0.20/temp
Using jre_home:/system/library/frameworks/JavaVM. Framework/home

4. Test you tomcat installation via your browser

http://localhost:8080/

If everything works like expected shut the Tomcat instance down

./shutdown.sh

5. Now we add tomcat to our eclipse Environment

 

Double click on the server and select "use tomcat installation (take control of Tomcat installation )":

Set Tomcat preference to use installation directory Parameters

 

6. Modify the tomcat-users.xml file located in/<pathtotomcat>/Apache-Tomcat-6.0.20/conf directory and add:

<Role rolename = "admin"/>
<Role rolename = "manager"/>
<User Username = "user" Password = "password" roles = "Admin, Manager"/>

With your username and password for administration.

Download the latest version of eclipse. If the latest version of Tomcat is 7.04, an error may occur:

Project facet Java version 1.7 is not supported solution: select project properties, select project facets, right-click and select Java, change version

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.