大家来看看好奇怪!

06-02-03 liuchaoyong
mysql 数据库下出现以下错误!

java.sql.SQLException: Server configuration denies access to data source

	at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:193)

	at org.gjt.mm.mysql.Connection.connectionInit(Connection.java:261)

	at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Connection.java:89)

	at org.gjt.mm.mysql.Driver.connect(Driver.java:167)

	at java.sql.DriverManager.getConnection(DriverManager.java:512)

	at java.sql.DriverManager.getConnection(DriverManager.java:171)

	at com.zheshang.dbcon.ConnectionPool.makeNewConnection(ConnectionPool.java:78)

	at com.zheshang.dbcon.ConnectionPool.<init>(ConnectionPool.java:24)

	at com.zheshang.dbcon.DbCon.getConInstance(DbCon.java:14)

	at com.zheshang.dbcon.DbCon.getConnect(DbCon.java:29)

	at com.zheshang.DAO.ProductClassDao.<init>(ProductClassDao.java:13)

	at org.apache.jsp.index_jsp._jspService(index_jsp.java:64)

	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

	at com.zheshang.servlet.loFilter1.doFilter(loFilter1.java:21)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

	at java.lang.Thread.run(Thread.java:534)

java.sql.SQLException: Server configuration denies access to data source

	at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java:193)

	at org.gjt.mm.mysql.Connection.connectionInit(Connection.java:261)

	at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Connection.java:89)

	at org.gjt.mm.mysql.Driver.connect(Driver.java:167)

	at java.sql.DriverManager.getConnection(DriverManager.java:512)

	at java.sql.DriverManager.getConnection(DriverManager.java:171)

	at com.zheshang.dbcon.ConnectionPool.makeNewConnection(ConnectionPool.java:78)

	at com.zheshang.dbcon.ConnectionPool.<init>(ConnectionPool.java:24)

	at com.zheshang.dbcon.DbCon.getConInstance(DbCon.java:14)

	at com.zheshang.dbcon.DbCon.getConnect(DbCon.java:29)

	at com.zheshang.DAO.ProductClassDao.<init>(ProductClassDao.java:13)

	at org.apache.jsp.index_jsp._jspService(index_jsp.java:64)

	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)

	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

	at com.zheshang.servlet.loFilter1.doFilter(loFilter1.java:21)

	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)

	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

	at java.lang.Thread.run(Thread.java:534)
<p>

是什么原因呢?

猜你喜欢