Unable to import oracle.jdbc.oracleresultset package

hai
I had a problem importing oracle.jdbc.oracleresultset package to my jsp page.
I am using oracle 10g, and tomcat 5 as web server.
I did set the classpath
to these
C:\Documents and Settings\MULLAPUDI>set CLASSPATH=C:\oracle\product\10.2.0\db_1\
jdbc\lib\ojdbc14.jar;C:\oracle\product\10.2.0\db_1\ord\jlib\ordim.jar;C:\oracle\
product\10.2.0\db_1\sqlj\lib\runtime12.jar;
when i am executing it is saying that package not available.

1) If you are using a "thin" connection ("thin" is in your DD URL), then you probably only need ojdbc14.jar
2) J2EE applications don't respect the external CLASSPATH, and aren't supposed to; instead, you normally copy the jar to the right location.
http://tomcat.apache.org/tomcat-5.0-doc/appdev/deployment.html

Similar Messages

  • Package (import oracle.jdbc.driver.*) not found -----URGENT--------

    Hi All,
    i've been using oracle thin driver for oracle 9i server since a long. but now it gives error like
    package import oracle.jdbc.driver.* not found
    it seems some problem in classpath.
    but i've inludeed classes111.zip/classes12.zip to classpath and with this was working fine. dunno what's the problem . kindly mail me at the earliest to:[email protected]
    also i'm working with Tomcat server.
    to run the servlet i don't want to type the absolute url like
    http://localhost:8080/servlet/test rather http://localhost/test .so how to config it . can ne one tell me asap.
    with thanx abd rgds
    Sayed
    so can u tell me

    1. Copy classes12.zip to %TOMCAT_HOME\common\lib
    2. Go to %TOMCAT_HOME\common\lib dir, rename classes12.zip to classes12.jar
    I think someone else has reply same problem before, next time you can do a search before post your problem.

  • Import oracle.jdbc.driver.* problem.

    I've got classes111b.zip from this site, and put it into my $ORACLE_HOME/jdbc/lib; add this: "$ORACLE_HOME/jdbc/lib/classes111b.zip" to my CLASSPATH; use env command, I can see it, but when I visit my jsp page, there occured an error:
    Error: 500
    Location: /tmp/connectdb.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile class for JSP/jakarta-tomcat/work/localhost_8080/_0002ftmp_0002fconnectdb_0002ejspconnectdb_jsp_7.java:20: Package oracle.jdbc.driver not found in import.
    import oracle.jdbc.driver.*;
    And jdbc readme file says:
    The Oracle installer installs the JDBC Drivers in the
    [ORACLE_HOME]/jdbc directory.
    Where is the Oracle installer? How could I do?
    Thanks in advance.

    Hello
    here is the modified code
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class Oracle_Test
    public static void main(String args[])
    String sql = "";
    String strdisp = "";
    Connection con = null;
    //Statement cs = null;
    CallableStatement cs = null;
    ResultSet rs = null;
    try
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("Hello 1");
    //con = DriverManager.getConnection("jdbc:oracle:thin:@192.1.1.70:1521:epatra","kamna_local","kamna");
    con = DriverManager.getConnection("jdbc:oracle:thin:@10.8.51.182:1521:DEVPG","RINGERS","RINGERS");
    System.out.println("Hello 2");
    try
    CallableStatement proc = con.prepareCall("{ call PHONEGEN.HOME_MDN_SEARCH_RINGER(?, ?, ?, ?, ?, ?) }");
    proc.setString(1, "2231015897");
    proc.setString(2, "1071706417");
    proc.registerOutParameter(3, OracleTypes.VARCHAR);
    proc.registerOutParameter(4, OracleTypes.VARCHAR);
    proc.registerOutParameter(5, OracleTypes.VARCHAR);
    proc.registerOutParameter(6, OracleTypes.VARCHAR);
    System.out.println("Hello 3");
    boolean x = cs.execute();
    String homemin = proc.getString(3);
    String homemdn = proc.getString(4);
    String phoneType = proc.getString(5);
    String outStatus= proc.getString(6);
    System.out.println("Hello 3");
    proc = null;
    con.close();
    con = null;
    catch(NullPointerException sqle)
    sqle.printStackTrace();
    catch(Exception ex)
    ex.printStackTrace();
    System.out.println("error in finding class "+ex);
    The Exception comes at this
    CallableStatement proc = con.prepareCall("{ call PHONEGEN.HOME_MDN_SEARCH_RINGER(?, ?, ?, ?, ?, ?) }");
    And here is the output when the rpogram runs....
    Hello 1
    Hello 2
    Hello 3
    java.lang.NullPointerException
    at Oracle_Test.main(Oracle_Test.java:31)
    Thanks for your help.....
    Looking for a solution soon
    Regards
    Abhinav

  • A sign Applet unable to load "oracle.jdbc.OracleDriver" class

    hi,
    i am chiranjit , i am now working in a web based ERP. where i am using a signed applet which unable to load "oracle.jdbc.OracleDriver" class but it easily loading "sun.jdbc.odbc.JdbcOdbcDriver", i am also giving my code:
    import java.sql.*;
    import java.math.*;
    import java.io.*;
    import java.awt.*;
    class JdbcTest extends Applet{
    public static void main (String args[]) throws SQLException {
    // Load Oracle driver
    DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
    // Connect to the local database
    Connection conn =
    DriverManager.getConnection
    ("jdbc:oracle:thin:@192.168.16.7:1521:kris",
    "plsql", "oracle");
    // Query the employee names
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("SELECT FIRST_NAME FROM
    AUTHORS");
    // Print the name out
    while (rset.next ())
    System.out.println (rset.getString (1));
    // Close the result set, statement, and the connection
    rset.close();
    stmt.close();
    conn.close();
    }

    Hint: The sun.jdbc.odbc.JdbcOdbcDriver is available in any JRE distribution. The Oracle driver is not.

  • Error message when using "import oracle.jdbc.pool.OracleDataSource;" stmt

    hello Guys I have Written a Servlet program. It contains Some JDBC Code. When I try to import a Package "import oracle.jdbc.pool.OracleDataSource;" It was showing an error message saying that that particuler package does not exist.Could you please tell me what shall I do to import that package?

    Add classes12.jar in your classpath S
    --Balaji S                                                                                                                                                                                                               

  • How to import oracle.jdbc.OracleConnection

    I'm sure this is something I'm supposed to know but it has been about a year since I have worked with JDeveloper and I have forgotten a few things.
    I am looking at some code that includes import oracle.jdbc.OracleConnection with a wavy red line that gives the message "import oracle.jdbc.OracleConnection not found."
    Where should I start to look for how to repair this?
    Thanks,
    Gregory

    In your project properties, in the libraries and classpath section, add the library "Oracle JDBC".

  • How can I import oracle.jdbc.pool. ???

    where can I find the package oracle.jdbc.pool
    null

    Hi,
    You can find it in [JDEV_HOME]/jdbc/lib/oracle8.1.7/classes12.zip
    Thanks,
    -JDev Team

  • Unable to load oracle.jdbc.driver.OracleDriver class

    i want to connect my java application with oracle database but i m getting an error -"class not found exception oracle.jdbc.driver.OracleDriver " which is written in Class.forName() to register the driver for DriverManager.
    plz help me..

    This is an old class, not included with the JDK anymore. It was made obsolete by
    DataSource which is a connection pool and not a single connection.

  • Unable to import Oracle Enterprise Linux iso

    Hi ,
    Does anybody was able to import Oracle Enterprise Linux iso image on Oracle Enterprise manager ops center , OC 11 g R1
    I'm getting the following error
    ISOImage Task : Result : Only Solaris , Red Gat or SUSE OS images are supported for OS provisionning
    Spreadsheet available here http://wikis.sun.com/display/EMOC11g1/Supported+Systems , show that Oracle Enterprise Linux is certified with OC 11g R1
    If you have any workaround , you're welcome
    Cheers

    Discard ... working with OEL 5.5

  • Unable to import oracle 9.2 data to oracle 10.2

    Dear all,
      part of the upgrade project i am facing this problem.
    I have taken DBEXPORT from 4.6C(EXT kernel),oracle 9.2.7 and the same i want to import it on 4.6C,oracle10.2.2.(already 4.6C on oracle 10.2.2 is there on another system)
    when i try to import through DBRELOAD it's showing list of supported database versions as Oracle 8.1.7 and oracle 9.2 only. it's not showing oracle 10.2 (both in DBRELOAD as well DBMIG).
    I want to import the oracle 9.2 databse into existing 10.2 datbase.
    how to proceed on this.. kindly help me on this
    Thanks & regards
    Subbu

    Hi Markus,
    I have raised the same question, that if I want to do the import with the same version of oracle, how can I carry the procedure. I have exported the database, through GUI-- Newinst--> Export Database...( 4th option of the main installation)
    Export is done. Created some 9 folder adn 1 LABEL.ASC file..
    Now as suggested by you in my thread of " Export/import" I am trying to import with the option u suggested( standard install..and then 2 option of System Copy/Migration". But after following all that, when the installation is asking for " Migration CD. LABEL.ASC, I have given what was exported. But gives the error.SAying DBSIZE.XML could find in ORA folder. When checked the export folders, there is only 1 DBSIZE.XML folder, that to ADA folder....
    Please suggest??
    Regards
    Prash

  • Unable to access oracle 10g DB package from 8i using DB link

    Hi,
    We have two oracle 8174 database A and B. One of the package in A calls an package in B using db link. The database B was upgraded to 10g (10.2.0.4). After the upgrade, the package in A got invalid. When tried to compile system hangs. No error is encountered.
    In UAT there was no issues. But only in production we face above problem. Can you please advise what went wrong. Is it due to incompatibiity?

    Can You logon that user an recompile?
    I hope you will see error something...
    Pacakages on B(10g) database.. invalid or not???
    Anyway Can you recreate your packages? ... (create or replace...)
    By the way, you might check something from Oracle Support
    Good Luck

  • Unable to import core flash, fl packages

    I recenlty installed Flash CS3, and yesterday, everything was
    working beautifully.
    I'm not sure what happened, but I can no longer import any
    package starting from "flash" or "fl". Here's what I'm trying:
    1) New Flash Document (AS3).
    2) Create an action for Layer 1, Frame 1.
    3) In the action, write "import fl.controls.ComboBox;"
    4) Test the movie.
    I'm getting an error:
    1172: Definition fl.controls:ComboBox could not be found.
    I've checked my ActionScript 3 Classpaths, and both "." and
    "$(AppConfig)/ActionScript 3.0/Classes" are listed.
    What's really driving me nuts is that FLA files that I wrote
    yesterday that do the same thing will work--I just can't make any
    new ones that do!
    I might be missing something obvious, but any help would be
    greatly appreciated.

    Gah, no. And adding one (by double-clicking in the component
    pane and then deleting the instance from the stage) clears up the
    issue. I haven't touched Flash in about 2 versions or so, I assumed
    the verbosity of and updates to ActionScript 3.0 negated the need
    to manually manage native assets (like components) within the
    library. (It'd be lovely if the "import fl.controls.ComboBox" took
    care of adding the necessary assets to the library at compile time,
    or, at the very least, if the Help examples and the "Using
    examples" section mentioned this requirement. *Glares in Adobe's
    direction.*)
    Thanks for the suggestion kglad.

  • Unable to import oralce.apps.xdo package

    Hi all
    I've just copied oracle.apps.xdo.XDOException and oracle.apps.xdo.oa.schema.server.TemplateHelper as Binary to my myclasses folder but i cont Jdev cont seem to find them when im tring to import them.
    pls advice if i',m messing anything.
    Thanks

    Refer this thread
    cannot access class oracle.apps.xdo.flowgenerator.CellAttribute
    Thanks
    AJ

  • Location of 'oracle.jdbc.OracleDriver'

    Hi everyone,
    I am starting out learning JDBC and am trying to compile and run this sample Java program:
    package project1;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import oracle.jdbc.OracleDriver;
    public class jdbc_test1 {
    * @param args
    * @throws SQLException
    public static void main (String[] args) throws SQLException {
    try {
    DriverManager.registerDriver(new OracleDriver());
    catch (SQLException e) {
    e.printStackTrace();
    Runtime.getRuntime().exit(1);
    When I 'make' the project, I get the error 'OracleDriver not found' on the 'import' line.
    My environment:
    Windows Vista
    Oracle 10.2.0.3.0
    JDeveloper 10.1.3.3 and 11.1.1
    CLASSPATH: .;d:\App\Oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar;d:\App\Oracle\product\10.2.0\db_1\jlib\orai
    18n.jar
    I searched both jar files looking for OracelDriver, but found nothing. What am I missing?
    Thanks.
    rr

    I get the error 'OracleDriver not found' Note that this kind of driver to be imported is depreciated.....
    http://forums.oracle.com/forums/ann.jspa?annID=201
    As a substitution for this use....the following packages....
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.pool.OracleDataSource;
    and make then the appropriate changes in your main() method... such as:
    public static void main(String args[]) throws Exception
       Connection con =null;
       try
         OracleDataSource ods = new OracleDataSource();    
         ods.setURL("jdbc:oracle:thin:scott/tiger@//<host_name>:<listener_port>/<your_tns>");
         con = ods.getConnection();
       catch (Exception ex)
         //System.out.println("Unable to connect..."+ex.printStackTrace());
         System.out.println("Unable to connect..."+ex);
         System.exit(-1);
       }Greetings...
    Sim

  • Re : Error java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDrive

    Hello All,
    I am writing this simple program which connects to Oracle DB ( 10.2 ). The Java version I have is 1.5.0_13 . I do have oracle client installed. When I run the below code ...I get error
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
            at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:164)
            at OraThin.main(OraThin.java:13)The code I have is :
    import java.io.*;
    import java.sql.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    } Please suggest as to what am I missing, I am not that well versed with Java.
    Thanks in advance,
    Sam

    Hello Paul,
    Thanks for you suggestion. Based on it , I did add the exact jar file in the PATH environmental variable in XP.
    Path=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;C:\oraclexe\a
    pp\oracle\product\10.2.0\server\bin;C:\oracle\product\10.2.0\client_1\bin;C:\Ora
    cle\product\10.1.0\Client_1\bin;C:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\
    client;C:\j2sdk1.4.2_06\bin;Even after adding the specific jar file *("C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar")* ..I am getting the exact same error. moreover, to verify this I also tried to import import oracle.jdbc.driver.*.....and now my code would not even complie and I get error *(c:\Program Files\Java\jdk1.5.0_13\bin\OraThin.java:3: package oracle.jdbc.driver*
    does not exist ) . I also rebooted my machine just to make sure ...that didnt work either. Also, I changed these jar to be first in the PATH varibale ..to avoid conflict with any later .jar's classes. The code is :
    import java.io.*;
    import java.sql.*;
    import oracle.jdbc.driver.*;
    public class OraThin {
      public static void main(String[] args) {
        try {
    System.out.println(System.getProperty ("java.class.path") );
          Connection con=null;
          Class.forName("oracle.jdbc.driver.OracleDriver");
          con=DriverManager.getConnection(
            "jdbc:oracle:thin:@hostname:15282:ServiceName",
            "scott",
            "tiger");
          Statement s=con.createStatement();
          s.execute("SELECT SYSDATE FROM DUAL");
          s.close();
          con.close();
      } catch(Exception e){e.printStackTrace();}
    }What am I missing here!! ?
    Thanks again,
    Sam

Maybe you are looking for

  • Why is VI not executable using Labview 7.1 Run-Time Engine?

    Hi, In our Teststand sequence, we have a Labview Action step which is returning an error: "The VI is not executable", along with the error code: -18002. This error occurs on a Production PC using the L.V. 7.1 Run-Time Engine. I'm aware of Mass Compil

  • How to write Stored Procedures in JDBC

    Hello EveryBody, I have written the following code. String str="create procedure info @tempdate varchar(15),@tfno varchar(10)" + "as" + "begin" + "if exists ( select * from details where tdate=@tempdate,fno=@fno" ......is there any error...i am getti

  • Proper settings for smartphone TAG videos

    Does anyone have experience creating videos to be viewed using the Microsoft Tag system. I understand that it will be viewed through a URL, but I don't know what format is best for compressing the video? And is there a specific way the video is forma

  • Skype for Sony Playstation 3 ( PS3 ) and for Sony ...

    There is a huge amount of Sony Playstation users who would like to have Skype available for their consoles. The client is already available for PSP and PS Vita. There are ton of thread with this request, but none of them has received a clear answer a

  • Pcard integration in Classic Scenario

    Hi All I learnt that it is possible to use pCard in Classic Scenario if a few customizations are made. These customizations include adding a few custom fields in the shopping cart & ECC PO for Pcard Company, Pcard Number and Validity date. However on