- wget from https://tomcat.apache.org/download-80.cgi
- http port:
file:conf/server.xml XML:Connector@port
- manager application
-
- file:conf/tomcat-users.xml should be able to be readable
-
- file:conf/tomcat-users.xml ( manager-gui, manager-script )
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<user username="root" password="root" roles="manager,manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script" />
-
- file:conf/server.xml XML:GlobalNamingResources/Resource@pathname="conf/tomcat-users.xml"
-
- file:webapps/manager/META-INF/context.xml XML:Context/Valve@allow - maybe need to comment
-
- check {TOMCAT_HOST}:{TOMCAT_PORT}/manager/html with your username/password
see previous post about "manager" application, see documentation
mvn org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:redeploy -Dmaven.test.skip -Dmaven.tomcat.url=http://{host}:8080/manager/text -Dtomcat.username=root -Dtomcat.password=root
update file: setenv.sh
- for linux:
export "JAVA_OPTS=$JAVA_OPTS -Dcatalina.log.level=INFO -Xmx1024m -Duser.timezone=UTC -Dspring.config.location=apache-tomcat-8.0.41-brandserver/conf/application-cherkavi.yml"
export CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9009 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
- for windows:
set "JAVA_OPTS=%JAVA_OPTS% -Dcatalina.log.level=INFO -Xmx1024m -Duser.timezone=UTC -Dspring.config.location=C:\soft\tomcat\apache-tomcat-8.0.41-brandserver\conf\brand-application-cherkavi.yml"
set "CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9009 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
main config file:
- httpd.conf
communication files between Tomcat & Apache ( url route, port to be listen ... )
- mod_jk.conf
- workers.properties
- alias.properties
[INFO] I/O exception (java.net.SocketException) caught when processing request: Connection reset by peer: socket write error
check "manager" application, username/password