Configure OC4J with other JDBC Drivers

I want to add ability for OC4J to use mySQL JDBC drivers.
Normally in the J2EE RI you would copy the driver and then use the j2eeadmin tool.
Does anyone have info on getting this to work in OC4J (so I can test EJBs that use that DB).
Note: I did get mySQL working for the JDeveloper9i IDE to get it to work in the IDE I just added a line to C:\jdev9i_902\jdev\binjdev.conf:
AddJavaLibFile C:/mm.mysql-2.0.14/mm.mysql-2.0.14-bin.jar
Thanks

Check out the following doc
http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a95879/ds.htm#1004903
you can post OC4J configuration questions in the J2EE forum
raghu
JDev Team

Similar Messages

  • Error with Download JDBC Drivers page

    There appears to be an error with the JDBC Drivers download page. When navigating from the top-level download page, all I'm seeing is '<SCRIPT LANGUAGE="javascri'. Is there another page from which I can download the driver?
    Guy Heathcote
    Ordnance Survey
    UK

    The 10g and later drivers trade memory for performance. They use much more memory than the 9i drivers, but are much faster. If you look at the JDBC FAQ here on OTN there is some more info on where the memory is going. The stack trace you posted is what I would expect to see from buffer allocation described in the FAQ.
    Douglas

  • Configuring OC4J with webcache

    Hi All,
    I have requirement of configuring OC4J with webcache.
    I got an OC4J903 standalone server and webcache is seperately installed.
    I am able to get the webchacheadmin screen and i am now stuck with how to go ahead.
    looking forward for help.
    thanks in advance,
    Sudha

    I assume the Web Cache you have is the 9.0.2.0 standalone. First of all, patch your Web Cache 9.0.2.0 standalone to the latest level you can find on Metalink. This is currently 9.0.2.2bp1 (on Solaris).
    (You can use Web Cache 9.0.2.x with OC4J 9.0.3.x.)
    Next, follow the steps in the Oracle9iAS Web Cache Administration and Deployment Guide, accessible from OTN. Chapter 6 of this guide is a good place to start, although Parts I and II are useful in their entirety.
    Your basic steps are going to be:
    - access the Web Cache Manager admin UI (hostname:4000 is the default); default uname/pwd is administrator/administrator
    - make sure Web Cache is listening on the desired port(s)
    - define a site
    - configure application web server settings (in this case, your OC4J standalone) from which to fetch fresh content
    - configure site-to-server mappings; you can map more than one application server to a site (enables load balancing)
    - configure caching, compression and expiration rules and/or modify your application to use ESI
    - don't forget to apply changes and restart
    Still, I would really advise using the manual and online help to get started. It's easy once you grasp the concepts described in the manual.

  • Jdev 10g really going to work with other jdbc database ?

    Just making my jdev sample (struts - adf - binding list with navigation buttons) working fine with firebird jdbc driver, As soon as I change my wiewiterator rangesize property from -1 to 10 and I see an ugly message :
    JBO-27122: SQL error during statement preparation. Statement: SELECT count(1) FROM (SELECT VIndividuCodeAdh.IN_CODE, VIndividuCodeAdh.IN_NOM, VIndividuCodeAdh.IN_PRENOM, VIndividuCodeAdh.IN_TITRE, VIndividuCodeAdh.AO_CODE, VIndividuCodeAdh.AO_CLOTURE, VIndividuCodeAdh.STATUS FROM V_INDIVIDU_CODE_ADH VIndividuCodeAdh) ESTCOUNT
    GDS Exception. Dynamic SQL Error SQL error code = -104 Token unknown - line 1, char 23 SELECT
    JDev team, do you really think that standard sql db will support that kind of syntax : select x from (select ...) ?

    Hello, the one site you have to visit is www.ibphoenix.com, they have everything you need about firebird sql db.
    Coming back to my pb, what is strange, is that I have check in AppModule->Configuration and jdb.SQLBuilder is set to SQL92 and jbo.TypeMap is set to java, and even though JDev generates that specific SQL.
    select count(1) from (select xxxx from table) is definitly not SQL 92. The wizard for business components from table doesn't retrieve the tables or views from firebird, I had to do it manually with New..->EntityObject. Is there another place where the sql 92 parameter are defined ?
    Olivier

  • Trouble configuring OC4J with JDeveloper

    Hello:
    I have installed OC4J 10.1.3 and I want to get JDeveloper 10.1.3.3 to deploy to it. I completed to Application Server wizard using localhost and port 8888 as my settings. When I try to deploy a web app, the deployment pauses indefinitely with just the messages:
    ---- Deployment started. ---- Feb 18, 2008 11:20:54 AM
    Target platform is Standalone OC4J 10g 10.1.3 (OC4J101300).
    Wrote WAR file to C:\jdev10133\jdev\mywork\Experiments\A3\deploy\webapp.war
    Wrote EAR file to C:\jdev10133\jdev\mywork\Experiments\A3\deploy\webapp.ear
    I when I test the connection in the App Server properties it runs forever, too. I tried reading the online documentation to no avail. Is it the localhost and/or port 8888 causing the trouble? How can I find out the correct settings?
    Thanks.
    Eric

    Hi,
    have you tried deploying using the Enterprise manager Console?
    http://localhost:8888/em
    Brenden

  • Does wls8.1 install with oracle jdbc drivers in the classpath by default?

    I just went through the 8.1 install tonight and it looks to me like the
    oracle jars are in the default weblogic classpath.
    set
    WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_s
    p.jar;%WL_HOME%\server\lib\weblogic.jar;%WL_HOME%\server\lib\ojdbc14.jar
    Why is that? I don't have oracle, and with just learning how to use wls, it
    took me a bit of time to finally figure this piece out (trying to get MySQL
    drivers loaded). Not everyone has Oracle installed, so why put it on the
    classpath for all servers/domains when they startup?
    Thanks.

    I'm not sure what the best practice is.
    The Oracle driver is set in
    bea/weblogic81/common/commEnv.cmd or commEnv.sh.
    There is a WEBLOGIC_CLASSPATH that has the jars in it and I always
    put my stuff at the beginning.
    I suspect that the preferred way of doing this is to update
    /bea/weblogic81/samples/domains/examples/startExamplesServer.cmd
    or whatever script is used to start the server.
    "Flip" <[remove][email protected]> wrote in message news:[email protected]...
    Hey Stephen, thanks for the reply.
    You got it to work without probs? COOL! :> Where did you stick the driver
    and where did you put the jar reference (in which cmd/sh file and where
    abouts in the file)? Inquiring minds want to know! :>>>> I tried looking
    on the web, but I was referenced to some PRE_CLASSPATH params, as well, as
    putting it into my own directories... I'm just looking to find out what dir
    is the best practise to dump the jar file into and where to put the
    reference in a classpath.
    One small note, I do dev in WIN and run production on linux (that might
    change soon, but that's another question, and another server :>).
    Thanks.
    PS BEA, nice domain config wizard with 8.1! Very sweet, I like the
    integrated connection pool and datasource creation!
    "Stephen Felts" <[email protected]> wrote in message
    news:[email protected]...
    The Oracle driver (client jar) is shipped in the box. Having it in theCLASSPATH makes it easier
    for customers that use it.
    If you don't use it and you want to use another driver, it won't get inthe way
    since your alternate driver will have a different classname.
    I installed and ran MySQL with no problems.
    "Flip" <[email protected]> wrote in message
    news:[email protected]...
    I just went through the 8.1 install tonight and it looks to me like the
    oracle jars are in the default weblogic classpath.
    set
    WEBLOGIC_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_s
    p.jar;%WL_HOME%\server\lib\weblogic.jar;%WL_HOME%\server\lib\ojdbc14.jar
    Why is that? I don't have oracle, and with just learning how to usewls, it
    took me a bit of time to finally figure this piece out (trying to getMySQL
    drivers loaded). Not everyone has Oracle installed, so why put it onthe
    classpath for all servers/domains when they startup?
    Thanks.

  • Configuring Listener with other name

    Hello Friends,
    I am trying to configure a listener which will run at any port ( could be 1521 also) but with a name other than default ( LISTENER). The database is in 11gR2. I have created listener.ora file and modified the init.ora file with LOCAL_LISTENER=MYLISTENER. Whenever I am trying to connect to the database by TCP It is giving me error ORA-12514:..
    Also when I am trying to boot my database with pfile It is giving me following error :
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'MYLISTENER'
    Then Listener.ora file is like below:
    MYLISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = TESTDB)
    (ORACLE_HOME = /u01/oracle/oraapp)
    ADR_BASE_LISTENER = /u01/oracle
    TNSNAMES.ora file is like below:
    $ cat /u01/oracle/oraapp/network/admin/tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/oracle/oraapp/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    TESTDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TESTDB)
    Please help me with proper solution.
    -Regards,
    Saha
    Edited by: j_DBA_saha on Nov 16, 2012 7:58 AM

    j_DBA_saha wrote:
    Hello Friends,
    I am trying to configure a listener which will run at any port ( could be 1521 also) but with a name other than default ( LISTENER). WHY?
    What problem does this solve?
    I fear you have a fundamental mis-understanding of what a listener is and how it works, and you are starting down the road to DBA Hell.
    If you describe your real, business problem instead of problems encountered trying to implement an ill-advised solution, you will get better information. Ask the wrong question, get bad information.
    The database is in 11gR2. I have created listener.ora file and modified the init.ora file with LOCAL_LISTENER=MYLISTENER. Whenever I am trying to connect to the database by TCP It is giving me error ORA-12514:..
    Also when I am trying to boot my database with pfile It is giving me following error :
    ORA-00119: invalid specification for system parameter LOCAL_LISTENER
    ORA-00132: syntax error or unresolved network name 'MYLISTENER'
    Then Listener.ora file is like below:
    MYLISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = TESTDB)
    (ORACLE_HOME = /u01/oracle/oraapp)
    ADR_BASE_LISTENER = /u01/oracle
    TNSNAMES.ora file is like below:
    $ cat /u01/oracle/oraapp/network/admin/tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/oracle/oraapp/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    TESTDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TESTDB)
    Please help me with proper solution.
    -Regards,
    Saha
    Edited by: j_DBA_saha on Nov 16, 2012 7:58 AM

  • Configuring OC4j with Apache HTTPD server

    I want to use OC4j as servlet container and Apache Server as a
    Http server handling all static requests. Now as per the OC4j
    documentation I created a OC4j.conf file and included the same
    in the main httpd.conf file.
    However I could not get my servlets running.I get the page not
    found error.Can you suggest a way out.

    Hi,
    Try this step.
    Comment the following statements from your Jserv.conf file in
    <oracle_home>/Apache/Jserv/conf :-
    ApJServMount /servlets /root
    ApJServMount /servlet /root
    Still not working, reply.
    Regards,
    Yoga

  • Request sample:XSQL with other JDBC Driver

    I hope anyone send me a response status:200 OK

    You might find some useful examples on the OTN Sample Code page.
    Regards,
    -rh
    null

  • Oracle JDBC Drivers with Tomcat

    I try to connect to Oracle DB with the JDBC Drivers throught Tomcat JNDI access.
    I've tried with the oracle.jdbc.driver.OracleDriver and I have an UnsupportedOperationException when calling the getConnection() method on ma dataSource ref.
    So I've tried with the oracle.jdbc.pool.OracleConnectionPoolDataSource and I have an java.sql.SQLException:
    Cannot create JDBC driver of class
    'oracle.jdbc.pool.OracleConnectionPoolDataSource' for connect URL
    'jdbc:oracle:thin:@(description=(address=(host=meditws322)(protocol=tcp)(port=1521)
    )(connect_data=(sid=HABILLE)))'
    Please help I'm about to break down

    Thanks for your reply. I use Oracle JDBC driver. The XSQLConfig.xml was changed to have the following setting:
    <connection-manager>
    <factory>oracle.xml.xsql.XSQLOracleDatasourceConnectionManager</factory>
    </connection-manager>
    I'm using Tomcat 4.1.x and Apache Commons DBCP Datasources with org.apache.commons.dbcp.BasicDataSourceFactory. The configuration file does set driverClassName to oracle.jdbc.driver.OracleDriver. All other queries embedded in .xsql files work great, I only have issues with queries containing CURSOR() statements. If I switch back to built-in database connectivity, by changing XSQLConfig.xml and connection parameters in .xsql files everything is working again. When I attempt to use DataSources, I get things like this "oracle.jdbc.driver.OracleResultSetImpl@15780d9" instead of nested XML. The non-nested portion of XML looks fine also, so it is retrieving the data from the database properly. Please let me know if I can provide any additional information that could help in resolving this. Thanks in advance!
    -M-

  • JDBC Drivers Issue.

    Hi All,
    I am working on PI 7.0 with JDK version 1.4.2.12 for a File to JDBC scenario.
    Here our destination Database is Oracle 8.1.7
    Now while deploying the drivers for the JDBC drivers from the following Oracle site:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    we are having following Issues:
    1. The Drivers for the Oracle database i.e availaible on the Oracle site for Oracle 8.1.7 supports only JDK version 1.2 and 1.3. So is it advisable to use these drivers?
    2. If we use any higher version of driver say 10.2.0.1.0 (Currently we are using the same) that supports the JDK version 1.4 will it be downward compatible to Oracle 8.1.7 ?
    3. Can we have two different JDK versions for the same XI servers ? Here I mean to say that can we have JDK 1.2 as well as JDK 1.4 for same XI server and if so please share the proper procedure.
    Actually all these issues arised because we are using JDBC driver 10.2.0.1.0 but we are getting problems as below:
    After every sometime say around an hour the XI server restarts automatically, but JDBC adapter services stop and do not start with the start of XI server, we have to start the services manually. So here we are considering that there could be some problem with the JDBC drivers.
    Plz provide your valuable information in these issues.
    Regards,
    Rookie.

    1. The Drivers for the Oracle database i.e availaible on the Oracle site for Oracle 8.1.7 supports only JDK version 1.2 and 1.3. So is it advisable to use these drivers?
    *If you use Oracle8.1.7 You should have Classes12.jar driver in visual admin *
    JDBC Driver: oracle.jdbc.driver.OracleDriver
    Connection: jdbc:oracle:thin:@<server IP>:<port>:<DataSource name>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bdd6a690-0201-0010-238a-9c95a5fb6f6c
    2. If we use any higher version of driver say 10.2.0.1.0 (Currently we are using the same) that supports the JDK version 1.4 will it be downward compatible to Oracle 8.1.7 ?
    You should have OJDBC14.jar driver in visual admin if you use Oracle 10
    JDBC Driver: oracle.jdbc.driver.OracleDriver
    Connection: jdbc:oracle:thin:@<server IP>:<port>:<DataSource name>
    3. Can we have two different JDK versions for the same XI servers ? Here I mean to say that can we have JDK 1.2 as well as JDK 1.4 for same XI server and if so please share the proper procedure
    No you should have only one JDK version for same XI server.
    Also check bhavesh reply
    Re: Different Version Oracle in a SLD

  • Oracle10g Jdbc Drivers issue with EJB on Weblogic 7

    Hi there,
    We are facing a critical issue on production environment related to Oracle jdbc drivers.
    We have a J2EE application with swing client. We are using MVC framework where client calls go to stateless session bean which redirect it to specific POJO which then uses Entity Beans for persistence.
    We have following environment.
    JDK1.4.2, Weblogic 7 with SP5, Oracle10g on AIX 5.2
    Now the problem is that we were using Oracle 8 jdbc driver classes12.zip for our application. Everything was working smoothly. Recently we moved our weblogic and oracle Servers machines locations, after that movement we started to get an exception when weblogic initializing connection pool that makes connection to a different oracle10g database. Oracle supports ask us to upgrade the jdbc driver. So we moved to 10g driver ojdbc14.jar but during testing one functionality is failing with a exception where rest of application seems to be working fine. The exception occurs when we try to post a record and during the creation of a child entity bean the transactions rollback for some unknown reasons. Using the old oracle8 classes12.zip driver the same code working fine again. We have also tried the classes12.zip driver of Oracle10g but error persist. I have checked the code and deployment descriptors but they seems fine. If i comment the creation of that particular entity bean the parent bean get created successfully and transaction commit successfully. Please also note that we have not created any relation b/w both entity beans not even in the database. They both are sort of independent.
    Can any one having any idea why Oracle10g driver not working or what might be the problem with our configuration. Any help will be highly appreciated. Please see the Exception below.
    <Jan 29, 2008 6:03:10 PM PKT> <Info> <EJB> <010036> <Exception from ejbStore: javax.ejb.NoSuchEntityException: Instance
    of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setup.security.ratinghistory.SecurityRatingHist
    oryEntityPK@93e447fa' not found.
    javax.ejb.NoSuchEntityException: Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setup
    .security.ratinghistory.SecurityRatingHistoryEntityPK@93e447fa' not found.
    at com.cdc.fms.server.setup.security.ratinghistory.SecurityRatingHistoryEntityBean_7x4361__WebLogic_CMP_RDBMS.__
    WL_store(SecurityRatingHistoryEntityBean_7x4361__WebLogic_CMP_RDBMS.java:2208)
    at com.cdc.fms.server.setup.security.ratinghistory.SecurityRatingHistoryEntityBean_7x4361__WebLogic_CMP_RDBMS.ej
    bStore(SecurityRatingHistoryEntityBean_7x4361__WebLogic_CMP_RDBMS.java:2012)
    at weblogic.ejb20.manager.DBManager.storeBean(DBManager.java(Compiled Code))
    at weblogic.ejb20.manager.DBManager.beforeCompletion(DBManager.java(Compiled Code))
    at weblogic.ejb20.internal.TxManager$TxListener.beforeCompletion(TxManager.java(Compiled Code))
    at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(ServerSCInfo.java(Compiled Code))
    --------------- nested within: ------------------
    weblogic.transaction.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb20.internal.TxManager
    $TxListener@44a824cd
    Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setup.security.ratinghistory.SecurityR
    atingHistoryEntityPK@93e447fa' not found. - with nested exception:
    [javax.ejb.NoSuchEntityException: Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setu
    p.security.ratinghistory.SecurityRatingHistoryEntityPK@93e447fa' not found.]
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java(Compiled Code))
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java(Compiled Code))
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java(Compiled Code))
    at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke(BaseEJBLocalObject.java(Compiled Code))
    at com.cdc.fms.server.common.ConsolidatorSessionBean_fz4673_ELOImpl.processRequest(ConsolidatorSessionBean_fz467
    3_ELOImpl.java:57)
    at com.cdc.fms.server.common.GatewaySessionBean.processRequest(Unknown Source)
    at com.cdc.fms.server.common.GatewaySessionBean_oehtlw_EOImpl.processRequest(GatewaySessionBean_oehtlw_EOImpl.ja
    va:407)
    at com.cdc.fms.server.common.GatewaySessionBean_oehtlw_EOImpl_WLSkel.invoke(Unknown Source)
    <Jan 29, 2008 6:03:10 PM PKT> <Info> <EJB> <010051> <EJB Exception during invocation from home: com.cdc.fms.server.commo
    n.GatewaySessionBean_oehtlw_HomeImpl@3e13a4aa threw exception: javax.ejb.EJBException: nested exception is: weblogic.tra
    nsaction.RollbackException: Unexpected exception in beforeCompletion: sync=weblogic.ejb20.internal.TxManager$TxListener@
    44a824cd
    Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setup.security.ratinghistory.SecurityR
    atingHistoryEntityPK@93e447fa' not found. - with nested exception:
    [javax.ejb.NoSuchEntityException: Instance of bean 'SecurityRatingHistoryPost' with primary key 'com.cdc.fms.server.setu
    p.security.ratinghistory.SecurityRatingHistoryEntityPK@93e447fa' not found.]
    javax.ejb.EJBException: nested exception is: weblogic.transaction.RollbackException: Unexpected exception in beforeCompl
    etion: sync=weblogic.ejb20.internal.TxManager$TxListener@44a824cd
    ##################################################################

    weblogic 7? when the current production version is 10.2?
    don't play yourself. fund a project to upgrade your weblogic version.
    can't tell based on what you've posted, and I fear that the stuff you'll have to post to get an answer here will be too much. this isn't a good place to come for an answer.
    %

  • Configuration of JDBC drivers for ocnnecting from BOE to Oracle

    HI all,
    I am trying to configure jbdc drivers in solaris for connecting BOE 3.1 sP2 to oracle 10g database.
    issue is not able to create connection in universe designer using jdbc drivers
    i couldnt get the exact info on this, please provide me the steps for connecting to oracle through jbdc drivers, Thanks,
    Thanks
    Ram

    I am now up and running.  Several tips were found on both Adobe and Oracle sites that were helpful. Here is a brief summary of the steps:
    Step 1, download* the Oracle Database11G release 2 Client for Microsoft Windows x64. (not the Instant Client). Follow the instructions provided on the download site. Select just the items you need from the custom install form.
    Step 2, add your datasources using the Oracle Net Configuration Assistant**.  Select Local Net Service Name Config. Follow the prompts, answer the questions.
    Step 3, add your datasources on Windows 2008 Server with Administrative Tools Datasources. Similar to step 2.
    Step 4, in CF10 Administrator set up your datasources. The first thing to do is set your Class Path to the location of the jdbc .jar files.  When you configured the Oracle installation you specified the location of the files. Go there and look for the\jdbc\lib folder. It contains the jar files for your drivers. Example:  C:\\Oracle\home\jdbc\lib\.  Now add your datasources. Select Other from the drivers drop-down list. This may be the tricky part. You will need the database information for connecting, such as host name, port, user, password, etc.  The connect url will look like: jdbc:oracle:thin@hostname:portnumber:servicename. Class: oracle.jdbc.OracleDriver  Name: whatever
    * download from:  oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html
    ** This utility should be selected as an item to install from step 1.

  • Problems with jdbc drivers

    I'm having problems registering jdbc drivers. I've been trying to register the microsoft Sql Server 2000 jdbc driver so that I can create a connection in my code rather than using entity beans. I've set the CLASSPATH variable to point to the driver's .jar files in the install directory with no success.
    I've connected to the database using the driver via the IDE' s Runtime and it tests ok and allows me to create a database schema ok. (I had to copy the driver files to the sun/studio5u1_se/lib/ext dir to enable this) Is there a location I can unpack the drivers .jar files which will make the driver available?
    I have also tried setting the CLASSPATH variable to point to the above mentioned directory..but that didn't work either. Can anyone help?
    These are the exception messages that I get
    java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at Portfolio.DriverTest.getConnection(DriverTest.java:43)
    at Portfolio.DriverTest.main(DriverTest.java:102)
    Error Trace in getConnection() : com.pointbase.jdbc.jdbcUniversalDriver

    If u type in command line
    java -classpath .;<directory containing the driver>
    it executes your class file properly
    note that <directory containing the driver> is the full path to your driver. I mean, the directory that contains your driver\drivername
    eg:
    java -classpath .;c:/driver/drivername
    don�t forget to put the "dot" before semicolon. If u forget it, java won�t find your class file. your class file must be at the directory you�re executing the command
    I need to configure my sun studo ent. to locate my jdbc driver for mySQL. I don�t know where this can be made. If any of you know. please report me

  • How do I get JDBC Logging with IBM Informix drivers?

    I am trying to get JDBC logging working with IBM Informix drivers.
    I am using the _g jar files; I have specified TRACE, TRACEFILE,
    PROTOCOLTRACE, and PROTOCOLTRACEFILE as properties;
    I have enabled JDBC logging and specified a JDBC log file in the
    WLS console. Regardless of all these machinations, no logging is
    produced.
    What else need I do? Thanks for any advice!
    : jay

    So... a couple weeks later and I've managed to find
    out a bit more. My simple program works and produces
    output, so the debug drivers are doing their thing.
    So, in my simple program, I was using the standard
    informix driver. But, with WebLogic, my connection
    pool is using the XA datasource which is configured
    slightly differently than the driver; in particular,
    the URL is left blank as described in
    http://e-docs.bea.com/wls/docs70/jdbc/thirdparty.html.
    I've actually created another connection pool which
    uses the standard driver, and I do get loggging when
    I use that pool, so the problem seems to be with the
    XA Datasource.
    I'm trying to revise my test program to use the
    datasource, and we'll go from there. Any thoughts
    you have would be appreciated, of course.
    : jay
    Joe Weinstein wrote:
    >
    >
    Jay Schmidgall wrote:
    "Joe Weinstein" <[email protected]> wrote in message
    news:[email protected]..
    Jay Schmidgall wrote:
    I am using the _g jar files; I have specified TRACE, TRACEFILE,
    PROTOCOLTRACE, and PROTOCOLTRACEFILE as properties;Odd. Would you please show me a small java program that
    sets the properties for the connection so you get your
    logging output, and then I'll know what I need for weblogic to do it:I am setting the properties in the weblogic console via the properties
    field
    on the general configuration tab for the connection pool. That's where I
    set all the other properties, so that's where I thought I should set
    these.
    I've tried it with those properties set individually and as part of
    the URL
    property.Oh, yes that's where you should be doing it, but a standalone program
    will prove exactly what properties are needed by the driver per se.
    Ie: the first step is to prove the jdbc driver alone does what we
    want, and then we can know how to get weblogic to get the driver to do
    the same for it.
    Joe
    I'll try to cruft up a small program that does this manually, though.
    : jay

Maybe you are looking for