1, install tomcat6 as service of Windows
walk into TOMCAT_PATH\bin, there is service.bat.
[install service]
service install tomcat6
[start service]
net start tomcat6
[stop service]
net stop tomcat6
[remove service]
service remove tomcat6
other:
1. For apache-tomcat-6.0.16\conf\Catalina\localhost\xxx.xml, file name should be same as application name in apache-tomcat-6.0.16\webapps
2. server.xml (set root app in tomcat)
<Context path="" docBase="xxx" debug="0" reloadable="true" crossContext="true">
</Context>
3. put ojdbc14.jar into TOMCAT_HOME/common/lib to address issue that oracle.jdbc class etc can not be found.
4. 端口冲突问题。 IIS占用80端口
java.lang.Exception: Socket bind failed: [730013] An attempt was made to access
a socket in a way forbidden by its access permissions.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:646)