请参考这个 http://www.java2000.net/viewthread.jsp?tid=1906
不同的Tomcat版本,配置数据源的方法是不同的。哈哈!这个造成了许多人的困扰。
不同的Tomcat版本,配置数据源的方法是不同的。哈哈!这个造成了许多人的困扰。
解决方案 »
- 有谁知道什么是javaEE?
- 一道题200分,很急,希望各位高手帮忙下哈!我已经杯具了!问题一:
- Hibernate annotation
- 加入log4j之后,不能编译JAVA源文件了。
- Struts2中如何自动获得页面上的File集合
- String 比较不相等的问题?求解
- 请问如何在Applet中链接JSP或者Servlet
- HIBERNATE 下怎么样调用ORACLE 的存储过程???
- 按JB向导做得BMP,发布成功了,客户测试出错,大家帮我看看
- 关于JDBC连接ORACLE9I的问题~~~~~~~~~~~
- java如何获取SQLServer2005存储过程返回的多张表的结果集,高手指点
- 麻烦前辈们帮我看看这段代码哪里有误呢?
我刚才又回想了一小,是不是common-dbcp.jar,common-pool.jar版本的问题,于是我就下载了最新版本的jar包,在commons-dbcp-1.2.2.tar.gz中的README文件中找到了下面的信息。
Apache Jakarta Commons DBCP
===========================Welcome to the DBCP component of the Apache Jakarta Commons
project (http://jakarta.apache.org/commons). DBCP uses Maven 1 (http://maven.apache.org) for build
process management. It is known to build with Maven 1.0.2,
though other versions may also work. To build DBCP using Maven, type "maven" at a command line prompt
from the top-level directory of the source distribution (the directory
that contains the file named project.xml).DBCP can also be built using Ant from the build.xml file.
Locations of dependent jars for the Ant build need to be specified in
build.properties. There is a build.properties.sample file included in the
source distribution.The binary distribution was built using JDK 1.4.2_10. The Ant build includes
conditional compilation to support building on JDK 1.3. This release of JDBC compiles with and supports JDK 1.3 (JDBC 2.0) and
JDK 1.4-1.5 (JDBC 3.0). JDK 1.6 (JDBC 4.0) is not supported by this release.
See http://jakarta.apache.org/commons/dbcp/ for additional and
up-to-date information on Commons DBCP.
原来是我的JDK版本高了,唉,真郁闷啊!
~~~~~都是版本不一致弄的~~~~~
的 user 改成username试试,
1.2版本里是这么写的