1 Reply Latest reply: Jun 19, 2013 7:25 AM by jwenting Branched from an earlier discussion. RSS

    Re: OracleDriver cannot be resolved to a type

    ab4bb7cf-72fa-4125-bfea-a310fed53d3a

      I still have the same problem which was reported in the first post.

      I tried all the changes mentioned above but doesn't help as I am totally new to jsp please suggest me a way out in detail.

       

       

      An error occurred at line: 6 in the jsp file: /one.jsp

      oracle.jdbc.driver.OracleDriver cannot be resolved to a type

        <%

       

        try{  

        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());

        Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@10.145.2.142:1521:MESNEW","MESAPUSER", "mesdev");

        String query1="Select OWNER,TABLE_NAME FROM ALL_TAB_PRIVS_MADE ";

       

      Stacktrace:

        org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)

        org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)

        org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:468)

        org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)

        org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)

        org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)

        org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)

        org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)

        org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)

        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)

        javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

       

       

      Thanking you in advance.