|
HTTP Status 500 -type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: An exception occurred processing JSP page /fin/yhtio/tiedotteet.jsp at line 42
39: ds.setUser("tomcat");
40: ds.setPassword("wij58nS");
41:
42: conn = ds.getConnection();
43: stmt = conn.createStatement();
44:
45: ///// listaa kaikki tiedotteet /////
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause javax.servlet.ServletException: java.sql.SQLException: Access denied for user 'tomcat'@'localhost' (using password: YES) org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.fin.yhtio.tiedotteet_jsp._jspService(tiedotteet_jsp.java:203) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) root cause java.sql.SQLException: Access denied for user 'tomcat'@'localhost' (using password: YES) com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055) com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3558) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3490) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:919) com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3996) com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1284) com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2142) com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:781) com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46) sun.reflect.GeneratedConstructorAccessor94.newInstance(Unknown Source) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) java.lang.reflect.Constructor.newInstance(Constructor.java:513) com.mysql.jdbc.Util.handleNewInstance(Util.java:406) com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352) com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:284) com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:439) com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:137) com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:107) org.apache.jsp.fin.yhtio.tiedotteet_jsp._jspService(tiedotteet_jsp.java:97) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.24 logs. Apache Tomcat/6.0.24[an error occurred while processing this directive] |
||||||||||||||
|
|||||||||||||||