How to make MySQL JDBC Driver case-insensitive

Hi,
I'm porting a jdbc application from oracle to mysql. One of the problem is that oracle's column names are case insensitive, whereas CODE in mySql is different from code (see example posted below).
I know that I can change the source code to use always the same case. But is there a way to make the mysql jdbc driver case-insensitive ?
import java.sql.*;
/* getString(String) is case sensitive for org.gjt.mm.mysql.Driver driver */
mysql> describe currency;
+-----------------+----------------+------+-----+----------------+-------+
| Field           | Type           | Null | Key | Default        | Extra |
+-----------------+----------------+------+-----+----------------+-------+
| code            | char(3)        |      | PRI |                |       |
| name            | varchar(40)    |      | UNI |                |       |
| shortCode       | char(2)        | YES  | MUL | NULL           |       |
| exchangeRate    | decimal(19,12) |      |     | 0.000000000000 |       |
| changed         | decimal(1,0)   |      |     | 0              |       |
| markedFlag      | decimal(1,0)   |      |     | 0              |       |
| updateTimestamp | timestamp(14)  | YES  |     | NULL           |       |
+-----------------+----------------+------+-----+----------------+-------+
7 rows in set (0.00 sec)
getObject(1)=EUR
Trying code
getObject("code")=EUR
Trying Code
java.sql.SQLException: Column 'Code' not found.
     at org.gjt.mm.mysql.ResultSet.findColumn(ResultSet.java:1213)
     at org.gjt.mm.mysql.ResultSet.getObject(ResultSet.java:1188)
     at mySqlDemo.main(mySqlDemo.java:61)
getObject(1)=USD
Trying code
getObject("code")=USD
Trying Code
java.sql.SQLException: Column 'Code' not found.
     at org.gjt.mm.mysql.ResultSet.findColumn(ResultSet.java:1213)
     at org.gjt.mm.mysql.ResultSet.getObject(ResultSet.java:1188)
     at mySqlDemo.main(mySqlDemo.java:61)
public class mySqlDemo {
     public final static void main(String[] args) {
          try {
               /*== database constants ==*/
               String DBHOST = "localhost";
               String DBNAME = "test";
               String DBUSER = "test";
               String DBPASS = "";
               String DBDRIVER = "org.gjt.mm.mysql.Driver";
               /*== setup database driver and connect ==*/
               Class.forName(DBDRIVER).newInstance();
               String conurl = "jdbc:mysql://"+DBHOST+"/"+DBNAME;
               Connection db = DriverManager.getConnection(conurl,DBUSER,DBPASS);
               /*== create sql query and execute ==*/
               //String sql = "select code from currency";
               String sql = "select Currency.code, Currency.name, Currency.shortCode, Currency.exchangeRate, Currency.changed, Currency.markedFlag, Currency.updateTimestamp from Currency order by code";
               Statement stmnt = db.createStatement();
               ResultSet rs = stmnt.executeQuery(sql);
               /*== display results ==*/
               while(rs.next()) {
                      System.out.println("getObject(1)=" + rs.getObject(1));
                      // works, because "Currency.code" has been selected
                      System.out.println("Trying code");
                      try {
                             System.out.println("getObject(\"code\")=" + rs.getObject("code"));
                      } catch(SQLException ex) {
                           ex.printStackTrace();
                     // case sensitive !
                      // does not work, because "Currency.code" has been selected
                      // "code" != "Code"
                      System.out.println("Trying Code");
                      try {
                             System.out.println("getObject(\"Code\")=" + rs.getObject("Code"));
                      } catch(SQLException ex) {
                           ex.printStackTrace();
          } catch(Throwable t) {
               t.printStackTrace();
}

One of the problem is that oracle's column names are
case insensitive, whereas CODE in mySql is different from code (see example posted below).I doubt that.
SQL standards are rather specific that columns names are case insensitive unless quoted identifiers are used. And presumably you are doing that.
What you are seeing is a difference in drivers not databases.
I would guess that the only way to change the behaviour is to modify your code. If you uppercase everything it should work. Or you could use positional rather than named column extraction.

Similar Messages

  • How to register MySQL JDBC Driver in OC4J

    Does anyone know how to register the MySQL JDBC driver in OC4J ?

    When your application must connect to heterogeneous databases, use DataDirect JDBC drivers. DataDirect JDBC drivers are not meant to be used with an Oracle database but for connecting to non-Oracle databases, such as Microsoft, SQLServer, Sybase and DB2. If you want to use DataDirect drivers with OC4J, add corresponding entries for each database in the data-sources.xml file.
    Please see the DataDirect documentation for information on installing the DataDirect JDBC drivers.
    The following is an example of a data source entry for SQLServer. For more detailed information, see the DataDirect Connect JDBC User's Guide and Reference.
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantCoreSSDS"
    xa-location="jdbc/xa/MerantSSXADS"
    ejb-location="jdbc/MerantSSDS"
    connection-driver="com.merant.datadirect.jdbc.sqlserver.SQLServerDriver"
    username="test"
    password="secret"
    url="jdbc:sqlserver//hostname:port;User=test;Password=secret"
    inactivity-timeout="30"
    />
    For a DB2 database, here is a data source configuration sample:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantDB2DS"
    xa-location="jdbc/xa/MerantDB2XADS"
    ejb-location="jdbc/MerantDB2DS"
    connection-driver="com.merant.datadirect.jdbc.db2.DB2Driver"
    username="test"
    password="secret"
    url="jdbc:sqlserver//hostname:port;LocationName=jdbc;CollectionId=default;
    inactivity-timeout="30"
    />
    For a Sybase database, here is a data source configuration sample:
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="MerantDS"
    location="jdbc/MerantCoreSybaseDS"
    xa-location="jdbc/xa/MerantSybaseXADS"
    ejb-location="jdbc/MerantSybaseDS"
    connection-driver="com.merant.datadirect.jdbc.sybase.SybaseDriver"
    username="test"
    password="secret"
    url="jdbc:sqlserver//hostname:port;User=test;Password=secret"
    inactivity-timeout="30"
    />
    please link: http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97690/ds3.htm#100612

  • How do I make my hard drive case insensitive?

    I have recently tried to purchase Adobe Acrobat XI, an upgrade from Acrobat Pro 9, which ran just fine on my MacBook Pro. When I try to install XI, I get the following message: "The installation cannot proceed, because the operating system is running on a case sensitive volume."
    How can I resolve this issue so I can run Acrobat XI on my MacBook Pro?

    You can't without backing up your drive, and making your HD NON mac osx case sensitive file system and moving all data back onto your drive
    http://superuser.com/questions/380330/mac-convert-from-case-sensitive-to-case-in sensitive-file-system
    You could also make a small partition that is not case sensitive and install it from there

  • How to make a regular expression case insensitive?

    Hi,
    I am using SAP UI5 .
    I am validating the user input using a regular expression to make sure user dose not enter a keyword which is reserved.
    var regexAppID = /^(?=^(?:(?!(^Admin$|^AdminData$|^Push$|^smp_cloud$|^resource$|^test-resources$|^resources$|^Scheduler$|^odata$|^applications$|^Connections$|^public|^Public$|[\.]{2,}|^[\.])).)*$)(?=^[a-zA-Z]+[a-zA-Z0-9_\.]*$).*$/;
    textField.mBindingInfos.value.type.oConstraints.search = regexAppID;
    The regex blocks the user from entering the keywords Admin,AdminData etc.
    It works fine if the user enters the value as it is given in regex (ie case sensitive example "Admin").
    But when user enters "admin" or "aDmin" etc the regex is not catching it and my server crashes as it bypasses these keywords.

    Can't you use this expression?
    ^/(?!ignoreme$)(?!ignoreme2$)[a-z0-9]+$
    Then you will have only a match when the word is something else then "ignoreme" or "ignorme2".
    Why don't you just check it in an IF statement? if(input==="ignoreme" or ... ) ? It's both static.. or you could put all options in an array and use the statement indexOf to find if it is in the array.
    JavaScript Array indexOf() Method
    Kind regards,
    Wouter

  • MySQL "JDBC" driver

    Hi all,
    I am trying to configure a MySQL Database Resource on IDM.
    I keep getting the error : "*suitable driver not found for MySQL*.........blah blah."
    From previous postings on this forum, some people suggest removing any other drivers which may exist in the "*WSHOME/idm/WEBINFO/lib*" folder.
    But, this does not make much sense to me. I already have another driver there (the "*sqljdbc*" driver for my MS-SQL database, which acts as the Repository for my IDM). If I remove this driver, won't this affect the connection to my Repository?
    Any tips would be greatly appreciated, thanks.

    Wow this makes me cringe...
    Please... for security's sake, don't download and install binaries you intend on running in production from random strangers. Even from a .edu address. Get the drivers you need from the vendor, that is the MySQL web site. (FYI the official site is here .) This is identity data you're dealing with here!
    See the documentation on configuring and using the MySQL JDBC driver: [http://docs.sun.com/app/docs/doc/820-5594/ghmbe?l=en&a=view|http://docs.sun.com/app/docs/doc/820-5594/ghmbe?l=en&a=view]
    For the record the mysql-connector-java-5.1.5.jar file is the JDBC driver you need. All you needed to do is rename it and even that's not strictly required. You do not need two copies of the file in WEB-INF/lib.
    Finally, as for the root problem: suitable driver not found... I've generally found that when I encounter that issue it's a Java version mismatch between what version of the JVM I'm running and what version the driver was compiled for. Eg. 1.4 driver for a 1.5 JVM. That's not 100% true in all cases and nailing down the suitable version error is a bit tough.

  • How can i install jdbc driver

    Hi
    i install websphere 5 and try to connect to my sql server but cannot find jdbc driver class path and can not find any jdbc driver
    pls tell me how can i install jdbc driver in my websphere
    with regards

    You may get a better response posting this question in a WebSphere specific forum. Maybe this will help, the following link shows the command you need to execute to install a JDBC driver in websphere 5.0.
    http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?tab=search&searchWord=mysql+driver&maxHits=50

  • How to use a jdbc driver in caf

    Hi, all.
         I tried to make a ws to access DB with CAF, but I had no idea how to use a jdbc driver(.jar).
        Can anyone do me a favor? Thx 
        PS: my server is ce7.1
    Edited by: Louis HUANG on Jul 27, 2009 1:09 PM

    hi
    If you want to interact with db tables in caf,try like this.
    it may work..
    Using EJB call database tables using jdbc driver.
    Expose EJB as webservice.
    and using External service option of caf utilise this webservice in caf,do the necessary mappings..
    you can search in sdn,how to call DB tables in EJB..
    Regards
    sowmya.

  • Com.mysql.jdbc.driver and jdbc:odbc bridge driver

    Hi All,
    I want to update mysql database from data in hashtable. My application already uses JDBC:OBDC bridge driver for retrieving data from excel sheet and putting in hashtable.
    For connecting to mysql i need to use com.mysql.jdbc.driver too in the same code.
    How to do that?
    my code uses.
    Read(String strFilePath,String strFileName)
               filepath = strFilePath;
               filename = strFileName;
                strDriver= "jdbc:odbc:Driver={MicroSoft Excel Driver (*.xls)}";Thanks

    Please stay with one thread:
    http://forum.java.sun.com/thread.jspa?threadID=5145466&tstart=0
    Please don't cross-post this way.

  • Difficulty Installing the MySQL JDBC Driver

    I am trying to install mySQL JDBC driver "mysql-connector-java-2.0.14.tar.gz" to link up with the mySQL server on a Windows XP OS.
    The error is:
    Cannot find database driver classes
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    I have read the USAGE AND INSTALLATION in the README file, but it can not seem to find these drivers still. I added the location to my PATH variable in the environment variables, and set CLASSPATH= ... as well and still can not find them
    Paths i added to PATH and CLASSPATH variables
    C:\j2sdk1.4.0_01\mysqlconnector.tar
    C:\j2sdk1.4.0_01\JDBC
    I did both methods it suggested, within the JDBC folder are the com and org folders. Anyone offer some suggestions.
    I know some smart person is going to say just use linux, but it is needed for my father and he can barely use MS Windows.
    Cheers for any help

    Dear Java Newsgroup User
    I would like to understand more around the Java and MySQLJDBC Configuration. Because I have some problem trying to install and Testing the MySQL JDBC Connector Driver.
    I use Windows XP Professional.
    I Downloaded and Intalled Sun One Studio to start learning JAVA and Features. This SDK Package make 3 Packages (directories):
    Directory No1 C:\JSDK4\j2sdk1.4.1_02 (JAVA_HOME)
    Directory No2 C:\JSDK4\s1studio (Source Examples ...)
    Directory No3 C:\Archivos de programa\Java\j2re1.4.1_02 (Java R. Env.)
    In the WINDOWS XP PANNEL CONTROL apper Java Plugins Control Pannel also
    when I press or click this icon apper a Java Screen where i can see the following Configuration in the Advanced Option:
    Java RuntTime Enviroment:
    Use Java Plugin Default
    JRE 1.4.1_02 in C:\Archivos de programa\Java\j2re1.4.1_02
    SDK 1.4.1_02 in C:\JSDK4\j2sdk1.4.1_02
    MySQL Driver Confiration and Version:
    This is my Un-ziped MySQL JDBC connector Path:
    C:\JSDK4\j2sdk1.4.1_02\mysql-connector-java-3.0.8-stable
    Into mysql-connector-java-3.0.8-stable directory exist an directory called [testsuite] that have some jar, java and class files.
    Testing MySQL JDBC Connecto Driver and Error Message:
    When i try to run the BaseTestCase.class file the system give me the following ERROR Message:
    C:\JSDK4\j2sdk1.4.1_02\mysql-connector-java-3.0.8-stable\testsuite>java BaseTestCase
    Exception in thread "main" java.lang.NoClassDefFoundError: BaseTestCase (
    ame: testsuite/BaseTestCase)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
    My Question are the following:
    1- What is the meaning of this message error?
    2- What i need to do to solve this problem?
    3- What is the function specificly of the JRE 1.4.1_02 in C:\Archivos de programa\Java\j2re1.4.1_02 Directory in My JAVA Instalation.
    I you need more detail of my instalation please write me and i write back a soon as possible.
    Dear Users:
    Please Help Me! to continue with the next steps ...
    Best Regards and Than's so much for read this message
    From Panama City
    VanyRon

  • Help with com.mysql.jdbc.Driver

    Hi all
    I am new to working with java. I am working off of my laptop (pc -vista) and
    am trying to connect to a database on a server I have, mac osx 10.x.
    First question: I would install com.mysql.jdbc.Driver on the same server as
    the MySql server correct?
    Second and more important question: I have multiple pages
    printed out on installing this driver but I just cannot follow it. I am not
    very good in terminal(mac) and the install seems terminal based.
    Can someone please try to explain to me in laymen terms what needs to
    be done?
    thanks alot
    Marcus

    marcusam wrote:
    sorry for my lack of knowledge
    client code = all on one machine?No, client code = the code you use to access your DB server.
    >
    I wanted to access a database that was on a totally different machine, with a java application.
    is this not very doable - or realistic?
    It's completely doable.
    i found enviroment variables for CLASSPATH that are pointing inside 'jre1.6.0_07'
    but i also have 'jdk1.6.0_07' - should the development kit be the one i use? - sorry
    back to original question - so would i just move the .jar file into
    \jre1.6.0_02\lib\ext\ or something of that sort
    thanks alot
    MarcusYes, you can move the jar into the ext directory if you wish. How are you running your java application? What are you typing/clicking on?

  • Help! JSP w/ struts can't find Class.forName("com.mysql.jdbc.Driver")

    I think this is just a directory structure issue but I can't figure it out. I am writing a JSP / Struts / MYSQL web application which uses the mysql JDBC connector. The connector (mysql-connector-java-5.1.6-bin.jar) is in the referenced libraries. If I write the line of code:
    Class.forName("com.mysql.jdbc.Driver");
    To load up the driver, it works in JSP files in the folder /projectname/webroot/web-inf just fine and I can go on to execute MySQL queries. However, I need to load up the driver in an action (.java action) with the directory structure /projectname/src/action and it throws the exception "class not found", I believe, it can no longer seem to get to the driver. Can anyone tell me how to resolve this problem?
    Thanks in advance, I hope this is the correct place (I have done my best to find the right one).
    Edited by: Arkanin on Apr 24, 2008 4:39 PM

    Arkanin wrote:
    I think this is just a directory structure issue but I can't figure it out. I am writing a JSP / Struts / MYSQL web application which uses the mysql JDBC connector. The connector (mysql-connector-java-5.1.6-bin.jar) is in the referenced libraries. Nope, it's not. I don't know what "referenced libraries" means. It has to be in CLASSPATH, and that isn't an environment variable.
    If I write the line of code:
    Class.forName("com.mysql.jdbc.Driver"); No, wrong.
    The JAR file for the Driver class might go in the WEB-INF/lib of your web app. If you're using Tomcat 5.5.26, put it in common/lib.
    %

  • Setting options to mysql jdbc driver

    Hello All
    Well According to MYSQL setting the CLIENT_MULTI_STATEMENTS flag onto a
    connection should allow multi statements (eg more than one query pr call)
    But I have no idea how to configure BEA to call mysql with the optional
    parameters?
    (btw tried opt_flags=CLIENT_MULTI_STATEMENTS)
    Oliver Billing

    Joe Weinstein skrev:
    [email protected] wrote:
    Hello All
    Well According to MYSQL setting the CLIENT_MULTI_STATEMENTS flag onto a
    connection should allow multi statements (eg more than one query pr call)
    But I have no idea how to configure BEA to call mysql with the optional
    parameters?
    (btw tried opt_flags=CLIENT_MULTI_STATEMENTS)
    Oliver BillingHi. I assume you're using our connection pools, with the mysql driver.
    You would add the property and it's value to the driver properties list.
    JoeHey Joe
    I did
    CLIENT_MULTI_STATEMENTS = true (looked it up under mysql JDBC driver)
    Doesent work though.
    Thanks anyway

  • IDM 8.0 would not pick up MySQL jdbc driver.

    I am trying to create database table using "create new resources" in IDM.
    With orcale, I have no issue. I copy a jdbc driver to C:\idm8\WEB-INF\lib and rename it
    oraclejdbc.jar.
    However, after I copyed mysql-connector-java-5.1.5-bin.jar ( which works with netbean and MySQL server on
    my PC) into the same C:\idm8\WEB-INF\lib directory ( and i tried rename it mysqljdbc.jar too),
    Database Type: MySQL
    JDBC Driver: com.mysql.jdbc.Driver
    JDBC URL TEmplate: jdbc:mysql://localhost:3306/test
    Host:     localhost
    TCP Port: 3306
    Database: test
    I got an error:
    XPRESS <invoke> exception:
    Can't call method getTableData on class com.waveset.ui.web.resources.wizard.DBTableUtil
    ==> com.waveset.util.WavesetException: ==> java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/test
    Then I tried the case where I replace localhost with IP Address and th ecase I use Fully qulified
    PC name, I got the same error.
    I know that the driver works because it is being used in NetBeans6.1
    I also tried mysql-connector-java-5.1.6-bin.jar with the same results.
    Does anyone have any ideas?
    Thanks!

    Could your issue be with this line here:
    JDBC URL Template: jdbc:mysql://localhost:3306/testI believe it should be something like this: (As chapo pointed out)
    JDBC URL template: jdbc:mysql://%h:%p/%dThe template is exactly that, a template.. The values are filled in by the next three entries

  • Unable to create : com.mysql.jdbc.Driver error with JDeveloper 10.1.3

    Hi all,
    I got this error when I tried to execute a simple JSF app. I am using JDeveloper 10.1.3 release edition. Please advice
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    C:\JDeveloper10g\jdk\bin\javaw.exe -ojvm -classpath C:\JDeveloper10g\j2ee\home\oc4j.jar;C:\JDeveloper10g\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    2006-01-31 21:40:47.062 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war...
    2006-01-31 21:40:47.093 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms
    2006-01-31 21:40:47.093 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\dms.war
    2006-01-31 21:40:47.156 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar...
    2006-01-31 21:40:47.156 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources
    2006-01-31 21:40:47.171 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\connectors\datasources\datasources.rar
    2006-01-31 21:40:47.218 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear...
    2006-01-31 21:40:47.281 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j
    2006-01-31 21:40:47.359 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j.ear
    2006-01-31 21:40:47.375 NOTIFICATION Auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war...
    2006-01-31 21:40:47.375 NOTIFICATION Unjar C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war in C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp
    2006-01-31 21:40:59.296 NOTIFICATION Finished auto-unpacking C:\JDeveloper10g\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\applications\bc4j\webapp.war
    2006-01-31 21:41:08.421 WARNING J2EE OJR0107 Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    06/01/31 21:41:08 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Jan 31, 2006 9:41:08 PM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    06/01/31 21:41:08 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
         at com.evermind.server.Application.setConfig(Application.java:391)
         at com.evermind.server.Application.setConfig(Application.java:309)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: com.mysql.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/JDeveloper10g/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\JDeveloper10g\j2ee\home\oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
         ... 15 more
    Jan 31, 2006 9:41:08 PM com.evermind.server.ApplicationStateRunning initConnector
    SEVERE: Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2016)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:1961)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1220)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:356)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:208)
         at com.evermind.server.Application.setConfig(Application.java:391)
         at com.evermind.server.Application.setConfig(Application.java:309)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1771)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1532)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:939)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:322)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:1997)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:247)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:107)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: com.mysql.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/JDeveloper10g/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\JDeveloper10g\j2ee\home\oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2061)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1665)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1621)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1606)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:244)
         ... 15 more
    06/01/31 21:41:08 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Jan 31, 2006 9:41:08 PM com.evermind.server.Application setConfig
    WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    2006-01-31 21:41:08.531 WARNING J2EE 0JR0013 Exception initializing deployed application: current-workspace-app. Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 29125 ms.

    I did what Manu suggested with no success. Alternatively, I registered the driver jar with embedded OC4J preferences > global > libraries. Still does not work. Please, note, that when I run JUnit tests against my BC4J application modules with JDBC URL as connection type, everything works just fine. The problem comes while running the JSF application when the application module is using JDBC DataSource as connection type.

  • HT203909 Why can't you provide specific instructions here about how to make the USB drive bootable?  The article referenced is not dedicated to Bootcamp--too long, too many options.  How do you make it bootable?

    Why can't you provide specific instructions here in HT203909 (Boot Camp: Creating an ISO image from a Windows installation DVD) about how to make the USB drive bootable?  The article referenced for partitioning the drive is not dedicated to Bootcamp--too long, too many options.  How do you make it bootable?

    If your BC Assistant shows the option to create a USB Installer, it automatically is marked as bootable. There is no need to have manual intervention to make a bootable USB. Once the process is manually modified, it is supported by the person modifying it.
    You have two or three options (depending on your Mac Model).
    1. Create USB... - Use a USB2 flash drive, which is erased and formatted. If your Mac supports ISOs then BCA will prompt for the Media. Any Mac which does not have a built-in Optical drive will support an ISO. There are specific Mac models which support both, DVD and USB based installation.
    2. Download Software from Apple servers...
    3. Install Windows...
    Are any additional instructions really necessary?

Maybe you are looking for

  • Error on SSO

    Oracle SSO Failure - Unable to process request Either the requested URL was not specified in terms of a fully-qualified host name or OHS single sign-on is incorrectly configured. Please notify your administrator. I followed the instructions and on th

  • Image processing with BLOBS: how to write BufferedImage to a BLOB

    Hi everybody - thanks in advance for any input on that topic. I'm doing image processing using AWT and 2D. Images are stored in a RDBMS as BLOB Type, which I get using JDBC and convert to a BufferedImage using a JDBCImageDecoder. Now, I have my Buffe

  • Questions on Forms 6i

    Hi All, My company needs to install Oracle forms. I am a DBA, so I have no experience with forms. I was hoping someone could answer come questions for me. We are running Oracle 8i, so from what it looks like, I'm looking at Forms 6i? I downloaded som

  • Selection screen  to  Mainwindow in smartforms

    Hi experts , I got a selection - screen  where i have to enter a  Record so that it should be reflected in the main window  i.e ( column of the table) of the smartform, can any one tell me. Regards, Reddy

  • How can I extend the time I am timed out on the new Firefox version?

    The new version of Firefox which I recently installed times me out after a very short period of time. I can I extend the time that Firefox times me out to at least one hour of inactivity. == This happened == Every time Firefox opened == right after I