Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to load files

 
Yasir Qureshi
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Ranchers
I am having the problem loading the driver file. I am using Oracle as backend database, Kawa as my IDE. My driver files are located in D:\Oracle\JDBC\Driver folder and class path (uner kawa options) pointing to d:\oracle\jdbc\driver, I am using following statements:
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection dbCon = DriverManager.getConnection("jdbc racle:thin:@localhost:1521:local", "scott","tiger");
but still getting the error:
Error: 500
Location: /examples/jsp/Oracle.jsp
Internal Servlet Error:
javax.servlet.ServletException: Unable to load class oracle.jdbc.driver.OracleDriver
at rg.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at jsp._0002fjsp_0002fOracle_0002ejspOracle_jsp_57._jspService(_0002fjsp_0002fOracle_0002ejspOracle_jsp_57.java:116)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
Root cause:
java.lang.ClassNotFoundException: Unable to load class oracle.jdbc.driver.OracleDriver
at org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at jsp._0002fjsp_0002fOracle_0002ejspOracle_jsp_57._jspService(_0002fjsp_0002fOracle_0002ejspOracle_jsp_57.java:64)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
regards
Yasir Qureshi
SCJP2
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic