Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Architecture & Framework
» Struts
打印话题 寄给朋友 订阅主题 |
作者 | Re:高手sos!!!配置struts数据源(dbcp)的错误 [Re:wilson751] |
wilson751
发贴: 19 积分: 0 |
于 2005-01-25 22:49
我又重新试了一下, 将LogonAction.java的execute()方法中调用 数据源的 dataSource = getDataSource(request,"test"); cnn = dataSource.getConnection(); 去掉,也就是,只配置了struts-config.xml文件, 结果,tomcat5启动时报错: 2005-1-25 19:41:45 org.apache.struts.action.ActionServlet initModuleDataSources 严重: Initializing application data source org.apache.struts.action.DATA_SOURCE org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' ' for connect URL 'jdbc:oracle:thinlocalhost:1521:oradb', cause: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getDriver(DriverManager.java:243) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:743) at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource. java:576) at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionSe rvlet.java:778) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:331) at javax.servlet.GenericServlet.init(GenericServlet.java:211) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. java:1019) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:86 2) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex t.java:3991) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4 335) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase .java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80 7) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep loyer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:613 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431 ) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java :349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl eSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478 ) at org.apache.catalina.core.StandardService.start(StandardService.java:4 76) at org.apache.catalina.core.StandardServer.start(StandardServer.java:229 8) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) 学java的朋友,请一起来投票让sun推出中文jdk文档!!! |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
16913 | 多谢各位,已解决!!!配置struts数据源(dbcp)的错误 | wilson751 | 7541 | 2005-01-24 12:24 |
14715 | Re:高手sos!!!配置struts数据源(dbcp)的错误 | glistar | 19 | 2005-01-24 16:14 |
14698 | Re:高手sos!!!配置struts数据源(dbcp)的错误 | wilson751 | 27 | 2005-01-24 19:41 |
14692 | Re:高手sos!!!配置struts数据源(dbcp)的错误 | glistar | 144 | 2005-01-25 08:40 |
14722 | Re:高手sos!!!配置struts数据源(dbcp)的错误 | wilson751 | 3349 | 2005-01-25 22:49 |
14709 | Re:高手sos!!!配置struts数据源(dbcp)的错误 | glistar | 103 | 2005-01-26 09:27 |
14621 | Re:高手sos!!!配置struts数据源(dbcp)的错误 | wilson751 | 7 | 2005-01-26 10:32 |
15605 | Re:高手sos!!!配置struts数据源(dbcp)的错误 | wilson751 | 81 | 2005-01-26 10:36 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |