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