Различия
Здесь показаны различия между двумя версиями данной страницы.
| Следующая версия | Предыдущая версия | ||
|
dev:java:tomcat:install [2013/05/07 19:40] jamis7005 создано |
dev:java:tomcat:install [2013/05/11 19:24] (текущий) jamis7005 [JSF] |
||
|---|---|---|---|
| Строка 1: | Строка 1: | ||
| ====== Apache Tomcat installation ====== | ====== Apache Tomcat installation ====== | ||
| - | ===== Download ===== | + | ===== Download and setup ===== |
| http://tomcat.apache.org/download-70.cgi | http://tomcat.apache.org/download-70.cgi | ||
| Строка 7: | Строка 7: | ||
| http://www.sai.msu.su/apache/tomcat/tomcat-7/v7.0.39/bin/apache-tomcat-7.0.39.tar.gz | http://www.sai.msu.su/apache/tomcat/tomcat-7/v7.0.39/bin/apache-tomcat-7.0.39.tar.gz | ||
| - | ===== Unpack ===== | + | |
| + | Set port in ''conf/server.xml'': | ||
| + | <Connector port="8081" protocol="HTTP/1.1" | ||
| + | |||
| + | Add admin user in ''conf/tomcat-users.xml'': <code xml> | ||
| + | <tomcat-users> | ||
| + | <role rolename="manager-gui"/> | ||
| + | <role rolename="admin-gui"/> | ||
| + | <user username="admin" password="admin" roles="manager-gui,admin-gui"/> | ||
| + | </tomcat-users> | ||
| + | </code> | ||
| + | |||
| ===== Add libs ===== | ===== Add libs ===== | ||
| Строка 13: | Строка 25: | ||
| https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/ | https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/ | ||
| - | cd $TOMCAT_HOME/lib | + | cd lib |
| - | wget https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/2.1.21/javax.faces-2.1.21.jar | + | |
| + | javax.faces-2.1.22.jar | ||
| + | wget https://maven.java.net/content/repositories/releases/org/glassfish/javax.faces/2.1.22/javax.faces-2.1.22.jar | ||
| + | |||
| + | javax.servlet.jsp.jstl-api-1.2.1.jar | ||
| + | wget https://maven.java.net/content/repositories/releases/javax/servlet/jsp/jstl/javax.servlet.jsp.jstl-api/1.2.1/javax.servlet.jsp.jstl-api-1.2.1.jar | ||
| + | |||
| + | jstl-api-1.2.jar | ||
| + | wget https://maven.java.net/content/repositories/releases/javax/servlet/jsp/jstl/jstl-api/1.2/jstl-api-1.2.jar | ||
| + | |||
| + | weld-servlet-1.1.13.Final.jar | ||
| + | wget https://repository.jboss.org/nexus/content/groups/public/org/jboss/weld/servlet/weld-servlet/1.1.13.Final/weld-servlet-1.1.13.Final.jar | ||
| + | |||
| + | |||
| + | ==== Maven ==== | ||
| + | https://maven.java.net/content/repositories/releases/javax/faces/javax.faces-war-archetype/2.1/javax.faces-war-archetype-2.1.pom | ||