早教吧 育儿知识 作业答案 考试题库 百科 知识分享

请问高手org.apache.commons.dbcp.SQLNestedException:CannotcreatePoolableConnectionFactory,cause找了一天了都没有结果,报错原因是:ERROR-Initializingapplicationdatasourceorg.apache.struts.action.DATASOURCEorg.apache.commons

题目详情
请问高手org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, cause
找了一天了都没有结果,报错原因是:
ERROR - Initializing application data source org.apache.struts.action.DATA_SOURCE
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, cause:
java.sql.SQLException: 用户 'sa' 登录失败.
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:368)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2820)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2258)
at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:603)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:357)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:82)
2011-5-9 18:47:45 org.apache.catalina.core.ApplicationContext log
信息: Marking servlet action as unavailable
2011-5-9 18:47:45 org.apache.catalina.core.StandardContext loadOnStartup
严重: Servlet /jpjxproject threw load() exception
javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE
at web.struts.ActionServletExtend.initModuleDataSources(ActionServletExtend.java:55)
求高手帮忙啊...
▼优质解答
答案和解析
这么多代码呀