环境:win2000+tomcat+mysql5.0+mysql-connector-java-5.1.6-bin.jar
错误:09:44:05,717 ERROR JDBCExceptionReporter:72 - Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish the connection)
请问以上问题最有可能出现在什么地方,,以一种什么方式解决,我已将所有防火墙关闭,效果也是一样,高手都看奥运去了吗?
server.xml文件配置
<Context path="/amis" docBase="amis" debug="0" reloadable="true" crossContext="true">
<Resource
name="jdbc/amis"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
factory="org.apache.commons.dbcp.BasicDataSourceFactory"
username="amis"
password="amis"
maxIdle="10"
url="jdbc:mysql://127.0.0.1:3306/amis"
maxActive="20"
maxWait="5000"
removeAbandoned="true"
removeAbandonedTimeout="60"
/>
</Context>
web.xml文件配置
<resource-ref>
<description>DB connection</description>
<res-ref-name>jdbc/amis</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
--转自