JSP连接Oracle数据库中出的错
org.apache.jasper.JasperException:AnexceptionoccurredprocessingJSPpage/dddl.jspatline...
org.apache.jasper.JasperException: An exception occurred processing JSP page /dddl.jsp at line 23
20: </div>
21: <%
22: Class.forName("oracle.jdbc.driver.OracleDriver");
23: Connection con = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:8080:orcl" , "system" , "zhangxu");
24: Statement stmt = con.createStatement();
25: ResultSet rs = stmt.executeQuery("select * from EMP");
26: %>
具体是怎么回事啊?谢谢大家了!我是一个菜鸟希望解释的清楚点!orcl是我安装Oracle时的默认数据库名!
tomcat的主页是http://localhohst:8080 总说在第23行那里出错,到底是怎么回事?试了试端口1251也不行! 展开
20: </div>
21: <%
22: Class.forName("oracle.jdbc.driver.OracleDriver");
23: Connection con = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:8080:orcl" , "system" , "zhangxu");
24: Statement stmt = con.createStatement();
25: ResultSet rs = stmt.executeQuery("select * from EMP");
26: %>
具体是怎么回事啊?谢谢大家了!我是一个菜鸟希望解释的清楚点!orcl是我安装Oracle时的默认数据库名!
tomcat的主页是http://localhohst:8080 总说在第23行那里出错,到底是怎么回事?试了试端口1251也不行! 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询