中行网银 用的是TOMCAT6,所以要指定对应JDK1.5
在catalina.bat文件和setclasspath.bat文件开头的空白处加上如下两句(指定JDK):
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_43
set JRE_HOME=C:\Program Files\Java\jdk1.6.0_43\jre
如果需要启动多个tomcat,则需要修改server.xml文件,比如访问端口 如:
<Server port="8005" shutdown="SHUTDOWN"> ----> <Server port="8195" shutdown="SHUTDOWN">
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> ----> <Connector port="8091" protocol="HTTP/1.1" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> ----> <Connector port="8199" protocol="AJP/1.3" redirectPort="8443" />
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> ----> <Host name="10.10.3.54" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false" ><Context path="" docBase="ROOT" reloadable="true"></Context></Host>