Oracle ojdbc5.jar or tomcat classes12.jar?

Hello.
Running 11g, Java 5, and Tomcat 6 on XP.
CLASSPATH=c:\oracle11g\jdbc\lib\ojdbc5.jar
But I get a Tomcat error: NoClassDefFoundError...
unless I have classes12.jar in c:/tomcat60/lib folder.
Is this correct? Do I still need classes12.jar? How can I get tomcat to follow the classpath setting?
Any suggestions are greatly appreciated.
Logan

Hi,
If you are using LDAP then you have to use the class12.jar files

Similar Messages

  • Oracle jdbc driver class and classes12.jar whether deprecated.?

    Hi All,
    1. In one of the post, it has been told that oracle.jdbc.driver.OracleDriver will be deprecated and also recommended to used oracle.jdbc.OracleDriver.
    According to that post, I changed the driver class name in my code as below:
    Class.forName("oracle.jdbc.OracleDriver");
    Then to check the driver name, I insert the below code:
    Enumeration<Driver> driverEnum = DriverManager.getDrivers();
    +while (driverEnum.hasMoreElements()){+
    System.out.println("driver : "driverEnum.nextElement());+
    +}+
    Below is the output:
    driver : oracle.jdbc.driver.OracleDriver@addbf1
    Even after specifying the driver class name to be used as oracle.jdbc.OracleDriver, why it is taking oracle.jdbc.driver.OracleDriver..?
    INFO : The Oracle JDBC Driver (classes12.jar) version is 10.2.0.4.0.
    2. We are using classes12.jar for developing all JDBC code. In Oracle Database 11g Release 2 (11.2.0.2.0) JDBC Drivers, there is no classes12.jar. Is this deprecated? Which jar can be used instead of classes12.jar?
    Thanks in advance.

    In Oracle Database 11g Release 2 (11.2.0.2.0) JDBC Drivers, there is no classes12.jar. Is this deprecated? Which jar can be used instead of classes12.jar?For JDBC 4.0 features ojdbc6.jar with JDK 6.0.
    For JDBC 3.0 support ojdbc 5.jar with JDK 5.0
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html

  • Tomcat can't find oracle classes12.jar what to do?

    hi,
    i have managed to come this far with my "simple" webapplication under tomcat that i can see the application startpage but when i click browse the following
    exception is thrown:
    java.lang.NoClassDefFoundError: oracle/sql/NUMBER
    since i have tried to put the classes12.jar in every reasonable directory without effect, i have to bother this forum. does anyone know "where the dog is burried"(german saying)?
    greetz
    Selim Keser

    I'm sorry I wasn't clear.
    I have a feeling you might not have to do this because you wouldn't have gotten so far without knowing how.
    "chown" is a command in UNIX like systems to change the owner of a file or directory.
    When I was having problems similar to yours, I noticed that all of the files that I copied onto my server listed the owner as root and the group as root.
    The version of Tomcat I am running on Linux requires that the files be owned by "apache". So by changing to the directory where the files in question are located, you can run the UNIX command "chown apache:apache *" and it will change the owner/group to apache.
    If you're running in some other OS (Windows) I can't really help since I've never successfully installed and invoked Tomcat on Windows.
    HTH.
    Thanks, George

  • Oracle 9 classes12.jar looking for ocijdbc8.dll instead of ocijdbc9.dll?

    Hi,
    I have installed the client portion of Oracle 9 release 2 and written an EJB running in weblogic server 7.0, that uses the oracle oci JDBC driver. I have no other oracle installation on my machine, so I only have the ocijdbc9.dll in my %ORACLE_HOME%\bin directory, not the ocijdbc8.dll.
    The classes12.jar file (installed by the same installation mentioned above) is in my classpath.
    The code throws an "UnsatisfiedLinkError: no ocijdbc8 in java.library.path". This does not make sense to me because it should be trying to load ocijdbc9.dll.
    Does anybody know the solution to this problem??? I have opened the question on Oracle Technology Network with no luck.
    Andreas

    Hi,
    I have found the problem... Even if I put the %ORACLE_HOME%\jdbc\lib\classes12.jar in front of my classpath it did not work... There was no classes12.zip in my classpath, however there was a classes12.zip in the weblogic700\server\lib directory which I renamed. Then it worked.
    Regards,
    Andreas

  • Oracle's classes12.jar

    I would like to know , whether or not the classes12.jar file is downloadable one?
    If yes, from where I can download? I tried oracle's web site, I did not get the correct url.
    appreciate for your help.
    -Karen

    Hi,
    Here is the portal for JDBC driver download
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    You will find classes12.jar as well as other jars in every release.
    Kuassi - blog http://db360.blogspot.com/
    ------ book http://www.amazon.com/gp/product/1555583296/

  • Pointing portal server from classes12.jar to ojdbc14.jar JDBC driver

    Hi,
         Some time ago we upgraded our portal landscape from Oracle 9.2.0.7 to Oracle 10.2.0.2. Using OSS Notes 867176 and 915079, we pointed our portal servers to use the newer and recommended ojdbc14.jar driver. This included using Config manager to  change the rdbms.driverLocation parameter to point to the new driver.
         A few months later (last week), thinking that we had our bases covered, we removed the old ORACLE_HOME, /oracle/<SID>/920_32. Upon restarting the portal we got quite a shock- it would NOT come up! The first problem was the bootstrap.properties in the /usr/sap/<SID>/JC00/j2ee/cluster/bootstrap directory which had the same dbms.driverLocation parameter pointed to the old driver in the old ORACLE_HOME. After correcting this, we ran into further problems with neither the dispatcher or the servers (2 per system) coming up. Find this curious, we ran the following unix  commands and identified more *.properties files with the same rdbms.driverLocation parameter-
    cd /usr/sap/<SID>/JC00/j2ee
    find . -name '*.properties' -exec grep -H 920_32 {} \;
    ./deploying/rdb.properties -
                rdbms.driverLocation=/usr/sap/EPP/JC00/j2ee/classes12.jar
    ./cluster/server0/cfg/kernel/ConfigurationManager.properties -
                rdbms.driverLocation=/usr/sap/EPP/JC00/j2ee/classes12.jar
    ./cluster/server0/cfg/kernel/ConfigurationManager.properties -
                rdbms.driverLocation=/usr/sap/EPP/JC00/j2ee/classes12.jar
    ./cluster/dispatcher/cfg/kernel/ConfigurationManager.properties -
                rdbms.driverLocation=/usr/sap/EPP/JC00/j2ee/classes12.jar
    ./templateconfigurator.properties -
               $=/usr/sap/EPP/JC00/j2ee/classes12.jar
    We then proceeded to manually edit each of the files to use the newer ojdbc14.jar driver. Surprisingly, it turns out that editing the ConfigurationManager properties files for the 2 servers and the dispatcher had no effect- upon recycling the portal the entire cfg/kernel directory gets wiped out and replaced.
    So what's the problem here? I don't have an issue with directories being recreated- but why is the ojdbc14.jar driver setting not being picked up from the change made for each server and dispatcher in the Configuration Manager?   I have examined all the services listed in the Configuration Manager and the Visual Administrator and can find no more references to the old ORACLE_HOME.
    Oh, incidently, curiously enough, for single portal systems, the JDBC driver is obtained from the /oracle/<SID>/102_64/jdbc/lib directory and not from the /usr/sap/<SID>/JC00/j2ee directory which is the case for portal servers involving more than 1 server.
    Hoping for help here ...
    Sincerely,
    Steven McElwee, Duke University

    right click ur project and select properties. In Java Build Path add the ojdbc14.jar in the librariies tab.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html
    Edited by: user7361177 on Aug 1, 2009 10:19 PM

  • Stored Proc output being truncated with latest ojdbc14 and classes12.jar

    Hello,
    I downloaded the latest ojdbc14.jar from Oracle website and used it with my Java program. I noticed a peculiar behavior. If my stored proc is returning a VARCHAR with large number of characters, the output is being truncated. This worked fine with the older ojdbc14.jar (and the older classes12.jar). It does not work properly with the new ojdbc14 and classes12.jar. Is there something that I am missing here?
    My Oracle Server version is - Oracle Database 10g Enterprise Edition Release 10.2.0.1.0.
    Below is the sample stored proc and the Java file to execute the same.
    Am I missing something here?
    CREATE OR REPLACE PROCEDURE TestOracleDriver (returnVal OUT VARCHAR2) IS
    BEGIN
    returnVal := '';
    FOR tmpVar in 1..2000
    Loop
              returnVal := returnVal || to_char(tmpVar) || ',';          
    END LOOP;
    END;
    import java.sql.*;
    import java.util.*;
    import java.util.Hashtable;
    import oracle.jdbc.driver.OracleTypes;
    public class OracleDriverTest
         public static void main(String argv[]) throws Exception
              Connection c = null;
              try
                   Driver dr = new oracle.jdbc.OracleDriver();
                   Properties props = new Properties();
                   props.put("user", "scott");
                   props.put("password", "tiger");
                   c = dr.connect("jdbc:oracle:thin:@SERVER_NAME:PORT:SID", props);
                   System.out.println("GOT A PLAIN CON" );
                   System.out.println("The driver is " + c.getMetaData().getDriverVersion() );
                   System.out.println("The DBMS is " + c.getMetaData().getDatabaseProductVersion() );
                   execute(c);
              catch (Exception e)
              e.printStackTrace();
              finally { try {c.close();} catch (Exception ign){} }
         private static String execute(Connection connection )
                   String procName = "TestOracleDriver";
                   CallableStatement cstmt=null;
                   ResultSet rs = null;
                   String returnedData = null;
                   try
                        cstmt = connection.prepareCall("{call " + procName+" (?)}");
                        cstmt.registerOutParameter(1,OracleTypes.VARCHAR);
                        cstmt.execute();
                        returnedData = cstmt.getString(1);
                        System.out.println("ProcTest ::execute --> Returned data is \n"+ returnedData);
                        return returnedData;
              catch (Exception e) {
                   System.out.println("ProcTest ::execute -->Error while executing "+procName);
                   e.printStackTrace();
                   return null;
              finally
                   try
                        connection.close();
                   catch (Exception e1)
                        System.out.println("ProcTest ::execute -->Error while closing connection ");
                             e1.printStackTrace();
                   }//end of catch
         }//end of finally
    }//End of execute method
    Regards,
    Hari
    Message was edited by:
    user553601
    Message was edited by:
    user553601

    Hari,
    If you think it is a bug, you can report it to Oracle Support via the MetaLink Web site.
    Good Luck,
    Avi.

  • Classes12.jar looking for ocijdbc8.dll instead of ocijdbc9.dll?

    I have installed the client portion of Oracle 9 release 2 and written an EJB that uses the oci JDBC driver. I have no other oracle installation on my machine, so I only have the ocijdbc9.dll in my %ORACLE_HOME%\bin directory, not the ocijdbc8.dll.
    The classes12.jar file (installed by the same installation mentioned above) is in my classpath.
    The code throws an "UnsatisfiedLinkError: no ocijdbc8 in java.library.path". This does not make sense to me because it should be trying to load ocijdbc9.dll.
    Please assist.
    Andreas

    Hi,
    Thank you for your response, but I guess I should have been a little bit more specific. As mentioned, I installed oracle 9 release 2 client only and have no other oracle installation on my machine. I am working on my laptop with Windows XP Professional. The application server hosting my EJB's is Weblogic Server version 7.0. So I am NOT using OC4J. I am accessing an Oracle Database on a Tru64 UNIX box.
    My EJB cannot create the connection because classes12.jar in my ORACLE_HOME\jdbc\lib which is in my classpath tries to load ocijdbc8.dll. Since I have only installed oracle9 release 2, should it not be looking for ocijdbc9.dll??? ocijdbc9.dll exists in ORACLE_HOME\bin. The classes12.jar was installed by the oracle9 release 2 client installation.
    Please help me....
    Regards,
    Andreas

  • Classes12.jar or ojdbc14.jar?

    Which oracle driver do I need? I am trying to connect to DB from my java program and I get "ClassNotFoundException: oracle.jdbc.driver.OracleDriver". I am able to ping/connect/execute sql from eclipse but when I run my java program, I get this exception. I have added ojdbc14.jar file to my classpath and from command prompt If I run "Java oracle.jdbc.driver.OracleDriver", I got the following:
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/driver/Or
    acleDriver
    Caused by: 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:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: oracle.jdbc.driver.OracleDriver. Program will ex
    it.
    My java version is "java version 1.6.0_14". Should I download classes12.jar and replace the ojdbc14.jar in classpath? Any suggestions?

    right click ur project and select properties. In Java Build Path add the ojdbc14.jar in the librariies tab.
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.html
    Edited by: user7361177 on Aug 1, 2009 10:19 PM

  • Orcale 11 g and classes12.jar problem

    Hello,
    I recently installed oracle 11g R2 on a windows 2003 server, I migrated a 10g (10.2.0.4) database into 11g successfully. However when I tried to install the corresponding application, I get the following message:
    "Could not find oracle jdbc library ( classes12.jar or nls_charset12.jar) in C:\oracle11\product\11.2.0\dbhome_1\jdbc\lib. Check whether the Oracle component is correctly installed".
    Could someone please advise how tis matter can be solved?? Is there a possibility the application is not supported in oracle 11g??

    You should check with your vendor to see if thier application is supported under Oracle 11g.
    While waiting for the vendor to respond you can copy the classes12.jar and nls_charset12.jar from another Oracle 10g installation to C:\oracle11\product\11.2.0\dbhome_1\jdbc\lib. If you do not have 10g install you can download the 10g JDBC drivers at the link below.
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc_10201.html

  • Help ,about classes12.jar

    hello, i have a question about our system.
    describe : the database version:9.0
    when the develop director includes the file of classes12.jar, i can't insert file into database to transform blob type. if i delete classes12.jar file in the WEB/WEB-INF/lib, it can't insert chinese languge into database.
    my classes12.jar file is 9.0.2 version, is my classes12.jar file is too old ,? if it's true ,please give a link of the file to download ;if it's not ,please give me a method to deal with . thank you .

    Also, Oracle claims that you can use newer drivers, such as the 10g drivers, with older databases. See the Interoperability Matrix:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

  • 9.0.1 classes12.jar

    The Readme page for the 9.0.1 drivers mentions classes12.jar, but the file doesn't appear to be available for download.
    Anybody know if/when/how the jar versions might be available?
    Thanks
    null

    The main thing I'm looking for is the jar formatted archive, not the zip. I know that the classes are identical, and I know I can create a jar file from the zip. But since the readme mentions that the jar is available I'm wondering how to actually get it. Here's a copy of the link from the download page:
    http://download.oracle.com/otn/utilities_drivers/jdbc/901/classes12.zip
    BTW, I tried changing "zip" to "jar". No luck.
    Thanks for trying to be helpful.

  • Classes12.jar and nls_charset12.jar Version

    I am running a java application that talks to 9.2.0.1 Oracle database. I am using classes12.jar,ocrs12.jar and nls_charset12.jar and neither of the jars have a manifest file with a verson number. The classes in the classes12.jar and ocrs12.jar were compiled on 5/17/2001 and the classes in nls_charset12.jar were compiled on 7/13/2000. I need to know what version these jars are, is there any way for you to tell me based on the compilation dates. I tried looking on Oracle download sites for the 9.2.0.1 jdbc jars and they all had classes that were compiled on different dates.
    thank you very much

    You can find out the version of the JDBC driver you're using by creating a DatabaseMetaData object and querying it. The snippet below should work:
        DatabaseMetaData meta = conn.getMetaData();
        // gets driver info:
        System.out.println("\n=============\nDatabase Product Name is ... " +
                           meta.getDatabaseProductName());
        System.out.println("\nDatabase Product Version is " +
                           meta.getDatabaseProductVersion());
        System.out.println("\n=============\nJDBC Driver Name is ........ " +
                           meta.getDriverName());
        System.out.println("\nJDBC Driver Version is ..... " +
                           meta.getDriverVersion());
        System.out.println("\nJDBC Driver Major Version is " +
                           meta.getDriverMajorVersion());
        System.out.println("\nJDBC Driver Minor Version is " +
                           meta.getDriverMinorVersion());
        System.out.println("\n=============");I know of no way, however, to get this information based on the compilation dates of the files.
    Justin
    Distributed Database Consulting, Inc.
    www.ddbcinc.com/askDDBC

  • Unable to downloads classes12.jar

    Hi All,
    I have been trying to download the classes12.jar and ojdbc.jar from the OTN website but, the website seems to have some probs. I am not able to download and it forwards to the error page.
    Link: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc101020.html
    I am using
    Oracle 10g(10.1.0.2.0) verison.
    Java jdk1.6
    Can someone jus lemme know from where do i download these 2 jar files.
    Thanks,
    P

    Ohh !
    Thanks a lot for your reply !
    Do u know from what other link I can download.
    I am getting the following error in my java program:
    *java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []*
    From some forums I read that this I might have to download the classes12.jar and ojdbc.jar for Oracle 10g.
    If someone has any clue, please do lemme know !
    Thanks,
    P
    Edited by: Drink Up on Sep 19, 2008 12:19 PM

  • How to use the ConnectionPool in the Classes12.jar?

    Who can tell me ,how to use the ConnectionPool in the classes12.jar of oracle817?

    Hi 415234,
    Pardon me if I am stating the obvious here, but are you familiar with the acronym, "RTFM"? I believe it is applicable here. Please refer to chapter 15 ("Connection Pooling and Caching") of the "Oracle8i JDBC Developer's Guide and Reference".
    Thereis also a Connection Pooling Sample Application available at Oracle's OTN Web site.
    Good Luck,
    Avi.

Maybe you are looking for

  • Chiness bold characters in the PDF file is not apperaing

    Hi, facing the problem, when i went to PO Display (ME23N) - Message -> selecting the output message like NEUA , -> Edit -> Display Originals . This time the chiness characters are displaying in the PDF file, but not in the bold format. Define the cha

  • Creating PDF's with Central Pro Output Server for AS400 (iseries)

    Today we generate spool files on the AS400 (iSeries)using Central Pro Output Server on the AS400. The user now wants to create the spool files as PDF's and then email them as attachments with a password to open them. Can this be done ?

  • Validate cfgrid

    Could someone please help with the onvalidate in the cfgrid. I can't seem to get my validation to work. Does anyone have any examples???

  • Two separate queries in one report

    Hi Gurus, Is it possible to make two separate queries in the same worksheet (I need to have a column in my report from a different query from this report). As we can have more than one query in Oracle Reports, similarly, is it possible to have more t

  • Multiple selection and lead selection

    I have now multiple selection in my application via selectin mode 8. but i also want that the app reacts when i make one selection. the lead_selection argument does not work anymore with mode 8. Anyone nows how to manage that?