tomcat的页面连接池无法使用 (急,在线等)
打开tomcat4.1的admin页面,添加数据库时,没法添加,出错显示:
Message:Error invoking operation addResource
description :The server encountered an internal error (Error invoking operation addResource) that prevented it from fulfilling this request.
[解决办法]
这样的错误,,,,,
2007-9-5 16:09:26 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2007-9-5 16:09:26 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1937 ms
2007-9-5 16:09:27 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2007-9-5 16:09:27 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/5.0.28
2007-9-5 16:09:27 org.apache.catalina.core.StandardHost start
信息: XML validation disabled
2007-9-5 16:09:27 org.apache.catalina.core.StandardHost getDeployer
信息: Create Host deployer for direct deployment ( non-jmx )
2007-9-5 16:09:27 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:D:\tomcat-5.0.28\conf\Catalina\localhost\admin.xml
2007-9-5 16:09:28 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config= 'org.apache.struts.util.LocalStrings ', returnNull=true
2007-9-5 16:09:28 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config= 'org.apache.struts.action.ActionResources ', returnNull=true
2007-9-5 16:09:29 org.apache.struts.util.PropertyMessageResources <init>
信息: Initializing, config= 'org.apache.webapp.admin.ApplicationResources ', returnNull=true
2007-9-5 16:09:31 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:D:\tomcat-5.0.28\conf\Catalina\localhost\balancer.xml
2007-9-5 16:09:32 org.apache.catalina.core.StandardHostDeployer install
信息: Processing Context configuration file URL file:D:\tomcat-5.0.28\conf\Catalina\localhost\manager.xml
2007-9-5 16:09:32 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path from URL file:D:\tomcat-5.0.28\webapps\ROOT
2007-9-5 16:09:32 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /jsp-examples from URL file:D:\tomcat-5.0.28\webapps\jsp-examples
2007-9-5 16:09:32 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /servlets-examples from URL file:D:\tomcat-5.0.28\webapps\servlets-examples
2007-9-5 16:09:33 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /tomcat-docs from URL file:D:\tomcat-5.0.28\webapps\tomcat-docs
2007-9-5 16:09:33 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /webdav from URL file:D:\tomcat-5.0.28\webapps\webdav
2007-9-5 16:09:33 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /Machine.myeclipse.bak from URL file:D:\tomcat-5.0.28\webapps\Machine.myeclipse.bak
2007-9-5 16:09:35 org.apache.struts.action.ActionServlet initModuleDataSources
严重: Initializing application data source conn
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class ' ' for connect URL 'jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=demo '
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:598)
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:808)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:335)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.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:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
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(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
... 31 more
2007-9-5 16:09:35 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path /Machine from URL file:D:\tomcat-5.0.28\webapps\Machine
2007-9-5 16:09:37 org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
信息: Tiles definition factory loaded for module ' '.
2007-9-5 16:09:37 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2007-9-5 16:09:38 org.apache.jk.common.ChannelSocket init
信息: JK2: ajp13 listening on /0.0.0.0:8009
2007-9-5 16:09:38 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/63 config=D:\tomcat-5.0.28\conf\jk2.properties
2007-9-5 16:09:38 org.apache.catalina.startup.Catalina start
信息: Server startup in 11672 ms
[解决办法]
应该是你的配置问题,把代码放出来看看
[解决办法]
jdbc driver 有吗?1433 打开吗,密码真确吗?
它提示你根本就没连上数据库
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html