惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
J
Java Code Geeks
I
InfoQ
V
Visual Studio Blog
M
MIT News - Artificial intelligence
H
Help Net Security
博客园_首页
Blog — PlanetScale
Blog — PlanetScale
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理
G
Google Developers Blog
A
About on SuperTechFans
腾讯CDC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
WordPress大学
WordPress大学

博客园 - Squall

Spring2.5中基于注释的IoC struts2登录拦截器 Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AU hibernate.current_session_context_class 错误 - Squall - 博客园 Lucene中使用Paoding中文分词 ibatis VS hibernate 经典论述 超越传统软件开发技术 ASP 缩略图 (纠错版) persits.jpeg 破解版下载 The hibernate core class ------ ExportToDB Struts+spring使用随机验证码 SSH 异常 解决 方案 总结 Struts-Logic 标签库 structs - 标签库(html) spring2.0 事务管理以及异常处理之体会 Could not open ServletContext resource [/WEB-INF/applicationContext.xml] myeclipse tomcat 部署错误 ASP 通过正则提取信息内容种的图片 div+css 绝对定位和相对定位
Cant connect to SQL server with jtds 1.2.2 - Squall
Squall · 2009-02-24 · via 博客园 - Squall

What i did was to add

commons-dbcp-1.2.2.jar
commons-pool-1.4.jar
commons-collections-3.2.1.jar - already added initially

to the class path of the application and tomcat

and add factory="org.apache.commons.dbcp.BasicDataSourceFactory" as can be seen below

  1.     <Resource name="jdbc/PooledDS2" auth="Container" type="javax.sql.DataSource"    
  2.         factory="org.apache.commons.dbcp.BasicDataSourceFactory"  
  3.        maxActive="100" maxIdle="30" maxWait="10000"  
  4.        username="***" password="***" driverClassName="net.sourceforge.jtds.jdbc.Driver"  
  5.        url="jdbc:jtds:sqlserver://<>:1433/<>"/>  

to the context.

I got the solution thanks to the 2 topics below

http://www.coderanch.com/t/87782/Tomcat/One-resources-defined-context-xml#470239
http://forums.sun.com/thread.jspa?threadID=635640