javax.naming.NamingException:无法加载资源工厂类 [根异常是 java.lang.ClassNotFoundException:org.apache.tomcat.dbcp.DataSourceConnectionFactory]
我正在使用 apache-tomcat-6.0.16,操作系统:Ubuntu,数据库 Posrgresql9.1
我的 context.xml 代码
<Resource name="jdbc/GisProject" scope="Shareable" type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.DataSourceConnectionFactory"
url="jdbc:postgresql://localhost:5432/postgres?zeroDateTimeBehavior=convertToNull"
driverClassName="org.postgresql.Driver"
username="khushi"
password="ispl12345"
maxIdle="5"
maxActive="50"
/>